1pip install Django
2django-admin startproject mysite
3cd mysite
4python manage.py runserver
1pip install django # Install Django Packages
2django-admin startproject project_name # Create a Project
3cd project_name
4python manage.py makemigrations # Create new migrations
5python manage.py migrate # Apply Migrations
6python manage.py createsuperuser # Create User for admin
7python manage.py runserver # Start Server
8
9python manage.py startapp sub_module # Create a sub app
1# Start a Project.
2django-admin startproject <project name>
3
4# cd into <project name>
5
6# Create the application
7python manage.py startapp <app name>
8
9# Start using the files.
1from django.http import HttpResponse
2
3
4def index(request):
5 return HttpResponse("Hello, world. You're at the polls index.")
6