django-configurations/docs
Daniel Hahler 07fecd7ad2 Add configurations.autosetup
This will automatically import and call `setup()`.

It is useful to keep the boilerplate with using django-configurations to
a minimum, and also play nice with helpers like "isort" that would tear
the "import" and calling of "configurations.setup()" apart - which is
understandable.

The downside obviously is that importing this module _will_ have
side-effects, which is considered to be bad in general [1].

So this is open for discussion/feedback.
I could imagine doing the automatic call to `setup()` only when Django
is detected for example.

1: http://chrismorgan.info/blog/say-no-to-import-side-effects-in-python.html
2016-01-20 02:10:30 +01:00
..
changes.rst Add stub release note for v1.0.1 2016-01-05 10:26:08 +01:00
conf.py Happy New Year! 2014-01-16 19:00:40 +01:00
cookbook.rst Add configurations.autosetup 2016-01-20 02:10:30 +01:00
index.rst Moved to Jazzband. 2015-12-17 10:22:38 +01:00
make.bat Initial version. 2012-07-21 15:56:04 +02:00
Makefile Initial version. 2012-07-21 15:56:04 +02:00
patterns.rst Handle example usage for Django 1.9 2016-01-08 18:27:30 -02:00
values.rst Introduced environ_required parameter for Value class. Refs #118. 2015-08-09 14:54:55 +02:00