Skip to content

Instantly share code, notes, and snippets.

@santoshpy
Last active March 4, 2020 16:08
Show Gist options
  • Save santoshpy/364d88829ee6934c8275589d5b4e660b to your computer and use it in GitHub Desktop.
Save santoshpy/364d88829ee6934c8275589d5b4e660b to your computer and use it in GitHub Desktop.
Django Project Directory Structure
  • <virtualenv_name>
  • bin
  • include
  • lib
  • src
  • documents
  • requirements
    • base.txt
    • development.txt
    • production.txt
    • manage.py
  • media
  • tools
  • <project_name>
    • urls.py
    • wsgi.py
  • settings
    • __ init __ .py
    • base.py
    • devlopment.py
    • production.py
    • test.py
  • apps ( mkdir /server/appname then ./manage.py startapp appname ./server/appname)
  • <app_name_1>
    • __ init __ .py
  • migrations
    • __ init __ .py
    • admin.py
    • apps.py
    • forms.py
    • models.py
    • tests.py
    • urls.py
    • views.py
  • api
  • 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