from .base import * DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'archilance', 'USER': 'postgres', 'PASSWORD': 'vfhbyrf', 'HOST': 'localhost', 'PORT': '', } } DEBUG = True TEMPLATE_DEBUG = True THUMBNAIL_DEBUG = True SECRET_KEY = 'vb6@b9zj7^f!^+x*e8=e!oundyu1!e*&0i(3gu2xwo4%fx4h&n' LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'formatters': { 'main_formatter': { 'format': '%(levelname)s:%(name)s: %(message)s ' '(%(asctime)s; %(filename)s:%(lineno)d)', 'datefmt': "%Y-%m-%d %H:%M:%S", }, }, 'handlers': { 'production_file': { 'level': 'DEBUG', 'class': 'logging.handlers.RotatingFileHandler', 'filename': 'main.log', 'maxBytes': 1024 * 1024 * 5, # 5 MB 'backupCount': 7, 'formatter': 'main_formatter', } }, 'loggers': { 'django.request': { 'handlers': ['production_file'], 'level': 'ERROR', 'propagate': True, }, '': { 'handlers': ['production_file'], 'level': "DEBUG", }, } }