Check out the instructions and proposal for more details. There is also a license. Completed by Nolan Kovacik.
- Fork or clone this project from GitHub.
cd
into the downloaded project root directory.- Run
python manage.py runserver
.
python manage.py test <app>
- Run
python manage.py migrate
. - Make your changes to the database models.
- These can usually be found in a
models.py
file.
- These can usually be found in a
- Run
python manage.py makemigrations <app>
- One example of
<app>
ispolls
.
- One example of
- Run
python manage.py migrate
again.
*NOTE: If you are going to make changes to the database more than once, step 1 may be superfluous.
If you have trouble remembering which command does what, this tidbit from Stack Overflow may help you…
python manage.py makemigrations <app>
: Create the migrations (generate the SQL commands).python manage.py migrate
: Run the migrations (execute the SQL commands).
python manage.py shell
: Run the Django Shell.python manage.py createsuperuser
: Create a new superuser.
Many thanks to the Django team, their tutorial, and their great documentation. Thanks also to @Dani from Make School, and her team.