Add ability to set settings from environment variables
Bug #1399585 reported by
Guilhem Lettron
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
To ease deployment and configuration, we want to being able to use environment variables as settings from horizon django app.
A use case can be, for example, to set `SECRET_KEY` in a uwsgi configuration file provisioned by chef/puppet...
With env variables, cfg software doesn't have to know very much about horizon (and its update) and can add specific settings.
Another use case is for packaging to set STATIC_ROOT (and push files in there own package) without having to change a file.
description: | updated |
Changed in horizon: | |
assignee: | nobody → Guilhem Lettron (guilhem-fr) |
status: | New → In Progress |
Changed in horizon: | |
status: | In Progress → Invalid |
Changed in horizon: | |
status: | Invalid → In Progress |
tags: | added: kilo-backport-potential |
To post a comment you must log in.
The solution is the same as in bug 1399580: just pull values out of environment variables in your local_settings - then it will be imported into settings.py.