daltonmatos/wsgid — Issue #18: Load aditional django configs from a separated file
Author: daltonmatos
Created: 2011-10-13 13:18:48+00:00
State: open
Labels: -next, feature

Currently wsgid just loads your django application. This is great for applications that does not have different `settings.py` for productions and development environments.

One example fot this difference is when your applications uses a database. Not always you want to save these information together with the original `settings.py`.

So this issue is here to add the ability to DjangoAppLoader to load aditional config values to you app, when loading it. Currently DjangoAppLoad just finds out the name of you app and sets DJANGO_SETTINGS_MODULE accordingly.

The new way will be to use `django.conf.settings` object and then configure the applications manyally, calling `settings.configure()`.

This extra config file will be a JSON file with values that maps exactly to the options that we want to overwrite, eg:

{
"DATABASES": {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": "mydatabase"
}
}
}