/django-project-template

A flexible template for your Django 2.2 projects.

Primary LanguagePython

Django Project Template

Settings folder

Settings for different environments have been isolated in different files, which inherit from 'base.py', another file that contains shared settings.

Manage.py will import development.py by default, but this behavior can be customized by specifying which module to import through the 'DJANGO_SETTINGS_MODULE' environment variable.

Example Project Structure

  • apps
    • inventory
      • __init__.py
      • admin.py
      • apps.py
      • models.py
      • test.py
      • views.py
    • customers
    • billing
  • project
    • __init__.py
    • urls.py
    • wsgi.py
  • settings
    • __init__.py
    • base.py
    • development.py
    • staging.py
    • production.py
  • templates
    • base.html
    • ...
  • static
    • css
    • js
    • ...
  • media