Follow along with the official django tutorial for version 3.1, parts 1-7; Part 1. I wrote some additional comments explaining certain files.
-
Install the required packages
pip install -r requirements.txt
-
Create the database
python manage.py migrate
-
Create an admin account
python manage.py createsuperuser
-
Run the application
python manage.py runserver
-
Login to the admin page and create some polls:
http://127.0.0.1:8000/admin/polls/question/add/
-
View available polls:
http://127.0.0.1:8000/polls/