Skip to content

Instantly share code, notes, and snippets.

@MichelleGlauser
Created May 7, 2014 02:28
Show Gist options
  • Save MichelleGlauser/fc4dacfa7ba615babbb3 to your computer and use it in GitHub Desktop.
Save MichelleGlauser/fc4dacfa7ba615babbb3 to your computer and use it in GitHub Desktop.
if ENVIRONMENT == 'dev':
APP_BASE_LINK = 'http://127.0.0.1:5000'
DEBUG = True
DEBUG_TOOLBAR = True
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'chishenma',
'HOST': 'localhost',
'PORT': '5432',
}
elif ENVIRONMENT == 'production':
import dj_database_url DATABASES['default'] = dj_database_url.config()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment