Project structure

pre-requisites

Create django project

  • Run the below command to create new django project
django-admin startproject my_project
  • The project structure looks like below.
.
├── db.sqlite3
├── manage.py
└── my_project
    ├── __init__.py
    ├── asgi.py
    ├── settings.py
    ├── urls.py
    └── wsgi.py

project structure - details

  • manage.py
    • used to execute management commands.
    • Try python manage.py --help to see available commands.
  • my_project/ - contains project config files
    • __init__.py - python package initializer
    • asgi.py - Asynchronous Server Gateway Interface
    • settings.py - It contains the project configuration
    • urls.py - root url config of the django app
    • wsgi.py - Web Server Gateway Interface