Skip to content

Instantly share code, notes, and snippets.

@dmukhg
Created August 4, 2012 19:32
Show Gist options
  • Save dmukhg/3259492 to your computer and use it in GitHub Desktop.
Save dmukhg/3259492 to your computer and use it in GitHub Desktop.
Parsing settings from envvars.
DEBUG = bool(os.environ.get('DJ_DEBUG'))
DATABASE_ENGINE = str(os.environ.get('DJ_DATABASE_ENGINE'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment