Day 9: Exploring Python with Projects

We ran lot of commands on Day 8, let us see what they mean. A quick review of files created in the process is listed at ““Hello World” Using Django (First App)”: will be a blank script similar to our project file.

We can register our models in the for interfacing.

Application specific configurations are placed in

The data models for applications are stored in

Test cases for our application can be made available in consists of functions which handle requests and return responses.

Migrations contain database-model specific information.

Another basic concept which needs to clear by now is usage of the Virtualenv tool.  Here is a wonderfully frank admission by Jason on why Virtualenv can be pain for beginners:

For my first several dozen attempts at using virtual environments, I managed to get something horribly wrong. They never worked. I hate to admit it, but I don’t even know what I did anymore! Ever since I’ve learned how virtual environments worked, I haven’t had a single problem with them.

Read more on Virtualenv  here.

A tip from “All you need to know about python virtual environments”:

To activate the virtual environments on Windows is slightly different. You can do that as mentioned in Hitchhikers Python guide as C:\Users\SomeUser\project_folder> venv\Scripts\activate.

If all this is clear, then when you run all the steps listed till Day 8, then entering “” on your browser should yield:

“Hello World”

End of Day  9.

One thought on “Day 9: Exploring Python with Projects

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s