forked from mozilla/pontoon
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consolidate settings and use env vars.
settings/local.py can still be used for complex setting overrides but environment variables is the preferred way to configure settings.
- Loading branch information
Michael Kelly
committed
Apr 9, 2015
1 parent
d5dbecd
commit fa5c9e5
Showing
6 changed files
with
343 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,4 @@ tmp/* | |
.vagrant | ||
/env/ | ||
/static/ | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
from .base import * | ||
|
||
# Import local settings if they exist (usually only in development). | ||
try: | ||
from .local import * | ||
except ImportError, exc: | ||
exc.args = tuple(['%s (did you rename settings/local.py-dist?)' % exc.args[0]]) | ||
raise exc | ||
pass |
Oops, something went wrong.