A simple polls app built with django.
py manage.py runserver
// run server
python manage.py test polls
// run tests
python -m pip install <dependency>
// install dependencies
python manage.py makemigrations <app_name>
// create migrations
python manage.py migrate
// apply changes
python manage.py sqlmigrate <app_name> <number>
// view migration
python manage.py check
// check for issues
py manage.py check --deploy
// check for security issues
python manage.py shell
// open python shell (exit() to close)
Set them in .env or like so:
set "SECRET_KEY=<key>" && set IS_PRODUCTION_ENVIRONMENT=true
(Windows) ||
export SECRET_KEY='<key>' IS_PRODUCTION_ENVIRONMENT=true
(Linux)