marcanuy / django-architecture-example

Django Configuration and environment isolation example

Home Page:https://simpleit.rocks/python/django/custom-django-configurations-for-different-servers/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

django-architecture-example

Django Configuration and environment isolation example

Full explanation at https://simpleit.rocks/python/django/custom-django-configurations-for-different-servers/

Directory tree

myapp/
├── _env
├── Makefile
├── manage.py
├── myapp
│   ├── __init__.py
│   ├── settings
│   │   ├── base.py
│   │   ├── __init__.py
│   │   ├── local.py
│   │   ├── production.py
│   │   ├── staging.py
│   │   └── testing.py
│   ├── urls.py
│   └── wsgi.py
├── requirements
│   ├── base.txt
│   ├── dev.txt
│   └── production.txt
└── requirements.txt

Notes

To test this setup locally, put the development environment variables at myapp/_env in a dot env file like: myapp/.env

In production they should be environment variables, never put them in a settings file.

About

Django Configuration and environment isolation example

https://simpleit.rocks/python/django/custom-django-configurations-for-different-servers/

License:MIT License


Languages

Language:Python 97.9%Language:Makefile 2.1%