Created
May 6, 2015 16:06
-
-
Save chrisgeo/5a2b10d7bd39a9c40fbc to your computer and use it in GitHub Desktop.
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
# Conf init file | |
import os | |
import importlib | |
ENVIRONMENT_VARIABLE ='APP_SETTINGS' | |
SETTINGS_MODULE = os.environ.get(ENVIRONMENT_VARIABLE) | |
if not SETTINGS_MODULE: | |
raise RuntimeError("%s needs to be set!" % SETTINGS_MODULE) | |
settings = importlib.import_module(SETTINGS_MODULE) |
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
import os | |
from foobar.conf.base import * | |
DEBUG = True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment