Skip to content

Instantly share code, notes, and snippets.

@chrisgeo
Created May 6, 2015 16:06
Show Gist options
  • Save chrisgeo/5a2b10d7bd39a9c40fbc to your computer and use it in GitHub Desktop.
Save chrisgeo/5a2b10d7bd39a9c40fbc to your computer and use it in GitHub Desktop.
# 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)
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