learningequality/ka-lite — pull request #1703 by bcipolli (2014-03-10 03:58:43+00:00)
Title: Separate settings.py by app

This required quite a bit of work, mostly due to the fact that Django doesn't easily support this thing :) What I came up with is from an existing suggestion, due to an issue with our app that could be addressed later.

Changes:
* Broke `settings.py` into multiple files, associating specific settings with specific modules.
* Removed cross-app dependencies of settings
* Created an import function that allows settings to be globally expressed in `__init__.py` files (bad, but true) while `settings.py` being imported from each app (good).
* Removed unnecessary dependencies (of the `testing` app) in release mode.
* Refactored the `LOCKDOWN` code (has to do with settings.....)

Testing was literally starting the server and seeing that it would run, in `DEBUG=False` && `DEBUG=True` modes.