-
Create a project:
$ django-admin startproject mysite -
The deployment runserver:
$ python manage.py runserver -
Creating the Polls app:
$ python manage.py startapp polls -
Write View:
(1) mysite/urls.py, polls/urls.py
(2) polls/views.py -
Database setup:
$ python manage.py migrate -
Creating models:
-
Activating models:
(1) Edit the mysite/settings.py file and add that dotted path to the INSTALLED_APPS setting:
INSTALLED_APPS = [
‘polls.apps.PollsConfig’,
(2) $ python manage.py makemigrations polls -
Playing with the API:
$ python manage.py shell -
Creating an admin user:
$ python manage.py createsuperuser -
Write template: