Django flexible settings with running environment support, separate security files and project layout detection.
Project description
Django flexible settings with running environment support, separate security files and project layout detection.
- Features:
get security configuration (passwords, secret key, API keys, etc) out of the main settings file
support multiple environments in a flexible way
automatic discovery and configuration of common project layouts
- Information:
v0.2.5 is the last version which supports python 2.7
Installation
$ pip install django-flexisettings
No need to declare flexisettings in INSTALLED_APPS.
Quickstart
Development
Edit manage.py, modify the value of DJANGO_SETTINGS_MODULE to point at flexisettings.settings and add FLEXI_WRAPPED_MODULE to point at your project’s settings:
[...] if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "flexisettings.settings") os.environ.setdefault("FLEXI_WRAPPED_MODULE", "myproject.settings") [...]
WSGI application
Edit myproject/wsgi.py, modify the value of DJANGO_SETTINGS_MODULE to point at flexisettings.settings and add FLEXI_WRAPPED_MODULE to point at your project’s settings:
[...] import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "flexisettings.settings") os.environ.setdefault("FLEXI_WRAPPED_MODULE", "myproject.settings") [...]
What now?
This is all you need to get flexisettings to run your settings. At this stage, nothing in the configuration object is changed, it is simply wrapped in flexisettings proxy object.
Read the docs for more powerful features of flexisettings.
License
django-flexisettings is published under a 3-clause BSD license, see the LICENSE file included in the project.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-flexisettings-0.3.1.tar.gz
.
File metadata
- Download URL: django-flexisettings-0.3.1.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb0765aaf98aee683cd0165360c72c29f47e0bc65d11e86778fa590b1624410f |
|
MD5 | 934f66f834fe1e28aed9daf424fcef6a |
|
BLAKE2b-256 | 4ac1ae82e0a04a9afa76e6254f461058b2e0c948eef17cb4f06ee73aa8a51372 |
File details
Details for the file django_flexisettings-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: django_flexisettings-0.3.1-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c6feb709953255df20f7d64c88400eea42c3716a2cb5517b0af0bb6fb33bde0 |
|
MD5 | e6fa787c3e5e70d09b7d6fb2e02c54b8 |
|
BLAKE2b-256 | 0515ad6fb1d4ef0e7c467a4ff6bfe49ed29d4378507267a365ddde03b2e636d1 |