Created
March 20, 2015 19:04
-
-
Save goloveychuk/8250f3f6c5476988e33a to your computer and use it in GitHub Desktop.
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 | |
def rel(*x): | |
return os.path.join(os.path.abspath(os.path.dirname(__file__)), os.pardir, *x) | |
env = { | |
'DJANGO_SECRET_KEY': 'sakdfj;adlskfjs;alkdjf;lsdkajflksaddsfadf', | |
'DATABASE_NAME': 'donut_clubs', | |
'DATABASE_USER': 'badim', | |
'DATABASE_PASSWORD': '', | |
'DJANGO_LOGGING_DIR': rel('logs') | |
} | |
os.environ.update(env) | |
from base import * | |
SESSION_COOKIE_SECURE = False | |
CSRF_COOKIE_SECURE = False | |
DEBUG = TEMPLATE_DEBUG = True | |
# EMAIL_PORT = 1025 | |
# DATABASES = { | |
# 'default': { | |
# 'ENGINE': 'django.db.backends.postgresql_psycopg2', | |
# 'NAME': 'donut_clubs', | |
# 'USER': 'badim', | |
# 'PASSWORD': '', | |
# 'HOST': 'localhost', | |
# } | |
# } | |
STATIC_ROOT = None | |
STATICFILES_DIRS = ( | |
rel('static'), | |
) | |
INSTALLED_APPS = list(INSTALLED_APPS) | |
# INSTALLED_APPS.append('debug_toolbar') | |
LOGGING = { | |
'version': 1, | |
'disable_existing_loggers': False, | |
'handlers': { | |
'file': { | |
'level': 'WARNING', | |
'class': 'logging.FileHandler', | |
'filename': rel('logs/django.log'), | |
}, | |
'console': { | |
# logging handler that outputs log messages to terminal | |
'class': 'logging.StreamHandler', | |
'level': 'DEBUG', # message level to be written to console | |
}, | |
}, | |
'loggers': { | |
'django': { | |
'handlers': ['file'], | |
'level': 'WARNING', | |
'propagate': True, | |
}, | |
'django.db': { | |
'handlers': ['console'], | |
'level': 'DEBUG', | |
}, | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment