Articles in this series
To install Django package with pip on Windows:
Inside cmd, we can write:py -m pip install Django
You can tell Django is installed and which...
From the command line, cd into a directory where you’d like to store your code, for example, "Desktop"
Then run the following command to...
Change directory to: "PollProject" folder, where manage.py exists.
To create our app, we type this command:
Open the file polls/views.py
For example, we open "Sublime Text" software.
From File>New Folder> we select: PollProject floder
Then put the following...
Open up PollProject/settings.py. By default, the configuration uses SQLite.
Inside PollProject/settings.py, set TIME_ZONE to your time zone.
In our poll app, we’ll create two models: Question and Choice.
Edit the polls/models.py file so it looks like this:
from django.db import...