allow for CONTENT_ROOT to be set with an environment variable,#5189
allow for CONTENT_ROOT to be set with an environment variable,#5189benjaoming merged 1 commit intolearningequality:masterfrom
Conversation
We use this at endlessm.com to allow sharing content whilst keeping the databases separate (we merge them on launch). Signed-off-by: Niv Sardi <xaiki@evilgiggle.com>
|
Related to #5144 I guess -- and thanks for another contribution. It seems reasonable, but if you want more, I would suggest a custom settings module, that scales much better than having to do a PR everytime ;) Since KA Lite's settings are generally unmanagable, hardly documented and scattered, it seems like adding to worse by wrapping oddly chosen stuff in |
|
Btw. because of the way settings are derived from CONTENT_ROOT, then there is some idea to setting it in an env var. The method using a settings module is somewhat described in the docs, namely by explicitly setting all the derived settings as well! :) |
|
Oh sorry, didn't see this was going into |
|
@xaiki - you have to make the PR for the branch named |
Summary
allow for CONTENT_ROOT to be set with an environment variable
TODO
If not all TODOs are marked, this PR is considered WIP (work in progress)
Reviewer guidance
If you PR has a significant size, give the reviewer some helpful remarks
Issues addressed
List the issues solved or partly solved by the PR
Documentation
If the PR has documentation, link the file here (either .rst in your repo or if built on Read The Docs)
Screenshots (if appropriate)
They're nice. :)
We use this at endlessm.com to allow sharing content whilst keeping the databases separate (we merge them on launch).
Signed-off-by: Niv Sardi xaiki@evilgiggle.com