Skip to content

Instantly share code, notes, and snippets.

@santoshpy
Last active September 15, 2023 06:11
Show Gist options
  • Save santoshpy/954172c49375229bed2180c796862d2f to your computer and use it in GitHub Desktop.
Save santoshpy/954172c49375229bed2180c796862d2f to your computer and use it in GitHub Desktop.
# Django Project Directory Structure

Django Project Structure

  • <virtualenv_name>
  • bin
  • include
  • lib
  • src
  • documents
  • requirements
    • base.txt
    • development.txt
    • production.txt
    • manage.py
  • media
  • tools
  • <project_name>
    • __ init __ .py
    • base.py
    • devlopment.py
    • production.py
    • test.py
  • apps
  • <app_name_1>
    • __ init __ .py
  • migrations
    • __ init __ .py
    • admin.py
    • apps.py
    • forms.py
    • models.py
    • tests.py
    • tasks.py (Only If Celery Is Used)
    • urls.py
    • views.py
  • api
    • __ init __ .py
    • serializers.py
    • urls.py
    • view.py
    • __ init __ .py
    • bindings.py
    • channels.py
    • routing.py
  • templates
  • <app_name_1>
  • admin
  • static
  • css
  • js
  • <app_name_2>
  • <app_name_3>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment