Skip to content

Instantly share code, notes, and snippets.

@danleyb2
Created February 10, 2018 10:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danleyb2/6f185f4ffb4eaddb216569cf11966fae to your computer and use it in GitHub Desktop.
Save danleyb2/6f185f4ffb4eaddb216569cf11966fae to your computer and use it in GitHub Desktop.
Danleyb2 Django Local Settings
import os
# Helper settings for prj.settings
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
INSTANCE = '/tmp/mapping_app_instance/'
MEDIA_UPLOAD_ROOT = os.path.join(INSTANCE,'media')
# this import NEVER move to the top
from prj.settings import *
# Settings that Override prj.settings
# Database
# https://docs.djangoproject.com/en/1.9/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'mapping',
'USER': 'mapping',
'PASSWORD': 'mapping',
'HOST': 'localhost',
'PORT': '',
}
}
@danleyb2
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment