Skip to main content

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.

Metadata

Release files for django-flexisettings 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-flexisettings 0.3.1
File Size Uploaded Provenance
django-flexisettings-0.3.1.tar.gz 16.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-flexisettings 0.3.1
File Interpreter ABI Platform
django_flexisettings-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 22.7 kB

Release files / django-flexisettings-0.3.1.tar.gz

Download URL django-flexisettings-0.3.1.tar.gz
Size 16.4 kB
Tags Source
SHA-256 checksum
How to use checksums
eb0765aaf98aee683cd0165360c72c29f47e0bc65d11e86778fa590b1624410f
BLAKE2b-256 checksum
How to use checksums
4ac1ae82e0a04a9afa76e6254f461058b2e0c948eef17cb4f06ee73aa8a51372
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / django_flexisettings-0.3.1-py3-none-any.whl

Download URL django_flexisettings-0.3.1-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c6feb709953255df20f7d64c88400eea42c3716a2cb5517b0af0bb6fb33bde0
BLAKE2b-256 checksum
How to use checksums
0515ad6fb1d4ef0e7c467a4ff6bfe49ed29d4378507267a365ddde03b2e636d1
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for django-flexisettings 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page