python3 manage.py runserver
createdb
python3 manage.py makemigrations
python3 manage.py migrate
python manage.py showmigrations
django-admin startproject
python3 manage.py startapp main_app
python3 manage.py createsuperuser
python3 manage.py shell
from <app_name>.models import *
c = Cat.objects.get(id=3) # return one
Cat.objects.filter(id=3) # return QuerySet
Question.objects.filter(question_text__startswith='What')
Cat.objects.all()
Cat.objects.first()
q = Question(question_text="What's new?", pub_date=timezone.now())
q.save()
# display all Choices (from Choice model) related to Question
Question.objects.last().choice_set.all()
# How many questions are in the questions table?
Question.objects.all().count()
c.delete()