django-flexisettings 0.2.5

Django flexible settings with running environment support, separate security files and project layout detection.

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

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.

3-clause BSD licence, see LICENCE.txt

Author

LeDaPei

Pip

django-flexisettings==0.2.5

Classifiers

  • Topic :: Internet :: WWW/HTTP :: Dynamic Content
  • Topic :: Internet :: WWW/HTTP
  • Programming Language :: Python :: 2.6
  • Programming Language :: Python
  • Operating System :: OS Independent
  • License :: OSI Approved :: BSD License
  • Intended Audience :: Developers
  • Framework :: Django
  • Environment :: Web Environment
File Type Python Version Uploaded On Downloads
django-flexisettings-0.2.5.tar.gz Source April 12, 2013 1,820
Version Release Date
0.2.5 April 12, 2013
0.2.4 April 11, 2013
0.2.3 April 11, 2013
0.2.2 April 10, 2013
0.2 April 8, 2013
Date Package Version Action
Nov. 4, 2014, 1:13 p.m. django-flexisettings 0.2 Release Created
Nov. 4, 2014, 1:13 p.m. django-flexisettings 0.2.2 Release Created
Nov. 4, 2014, 1:13 p.m. django-flexisettings 0.2.3 Release Created
Nov. 4, 2014, 1:13 p.m. django-flexisettings 0.2.4 Release Created
Nov. 4, 2014, 1:13 p.m. django-flexisettings 0.2.5 Release Created
Nov. 4, 2014, 1:13 p.m. django-flexisettings Package Created