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
1from django.http import HttpResponse
2
3
4def index(request):
5 return HttpResponse("Hello, world. You're at the polls index.")
6
1Conflicting 'dcalyyrestaurantadditionalcontacts' models in application 'panel': <class 'panel.models.DcalyyRestaurantAdditionalContacts'> and <class 'panel.DCALYY_models.DCALYYRestaurantAdditionalContacts'>.