Skip to content

Instantly share code, notes, and snippets.

@phalt
Created December 9, 2014 14:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phalt/a4fa497084c342240a00 to your computer and use it in GitHub Desktop.
Save phalt/a4fa497084c342240a00 to your computer and use it in GitHub Desktop.
Secret key
# Change your settings file to this:
SECRET_KEY = os.environ.get('SECRET_KEY', 'MY_DEFAULT_KEY')
# Export the SECRET_KEY variable like in the terminal like so:
$ export SECRET_KEY=my_secret_key_here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment