__init__.py will be a blank script similar to our project file.
We can register our models in the admin.py for interfacing.
Application specific configurations are placed in apps.py.
The data models for applications are stored in models.py.
Test cases for our application can be made available in tests.py.
Views.py 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.
To activate the virtual environments on Windows is slightly different. You can do that as mentioned in Hitchhikers Python guide as C:UsersSomeUserproject_folder> venvScriptsactivate.
End of Day 9.