Created
February 10, 2018 10:05
-
-
Save danleyb2/6f185f4ffb4eaddb216569cf11966fae to your computer and use it in GitHub Desktop.
Danleyb2 Django Local Settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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': '', | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@m-root