Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: dc5bcde439
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (17 sloc) 0.557 kb
"""
settings.py
Configuration for Flask app
Important: Place your keys in the secret_keys.py module,
which should be kept out of version control.
"""
import os
from secret_keys import CSRF_SECRET_KEY, SESSION_KEY
DEBUG_MODE = False
# Auto-set debug mode based on App Engine dev environ
if 'SERVER_SOFTWARE' in os.environ and os.environ['SERVER_SOFTWARE'].startswith('Dev'):
DEBUG_MODE = True
DEBUG = DEBUG_MODE
# Set secret keys for CSRF protection
SECRET_KEY = CSRF_SECRET_KEY
CSRF_SESSION_KEY = SESSION_KEY
CSRF_ENABLED = True
Jump to Line
Something went wrong with that request. Please try again.