bgneal@1: # Django local settings for bns_website project. bgneal@1: bgneal@1: from settings.base import * bgneal@1: bgneal@1: DEBUG = True bgneal@1: TEMPLATE_DEBUG = DEBUG bgneal@1: bgneal@1: MEDIA_URL = '/media/' bgneal@1: STATIC_URL = '/static/' bgneal@1: ADMIN_MEDIA_PREFIX = '/static/admin/' bgneal@1: bgneal@6: DATABASES = { bgneal@6: 'default': { bgneal@6: 'ENGINE': 'django.db.backends.mysql', bgneal@6: 'NAME': 'bravenewsurf', bgneal@6: 'USER': SECRETS['DB_USER'], bgneal@6: 'PASSWORD': SECRETS['DB_PASSWORD'], bgneal@6: }, bgneal@6: } bgneal@1: bgneal@1: LOGGING = { bgneal@1: 'version': 1, bgneal@1: 'disable_existing_loggers': True, bgneal@1: 'formatters': { bgneal@1: 'verbose': { bgneal@1: 'format': '%(asctime)s %(levelname)s %(module)s %(process)d %(thread)d %(message)s' bgneal@1: }, bgneal@1: 'simple': { bgneal@1: 'format': '%(asctime)s %(levelname)s %(message)s' bgneal@1: }, bgneal@1: }, bgneal@1: 'handlers': { bgneal@1: 'console': { bgneal@1: 'class': 'logging.StreamHandler', bgneal@1: 'level': 'DEBUG', bgneal@1: 'formatter': 'simple', bgneal@1: }, bgneal@1: 'file': { bgneal@1: 'class': 'logging.handlers.RotatingFileHandler', bgneal@1: 'level': 'DEBUG', bgneal@1: 'formatter': 'simple', bgneal@1: 'filename': os.path.join(PROJECT_PATH, 'logs', 'bns.log'), bgneal@1: 'mode': 'a', bgneal@1: 'maxBytes': 100 * 1024, bgneal@1: 'backupCount': 10, bgneal@1: }, bgneal@1: 'mail_admins': { bgneal@1: 'class': 'django.utils.log.AdminEmailHandler', bgneal@1: 'level': 'ERROR', bgneal@1: 'formatter': 'simple', bgneal@1: }, bgneal@1: }, bgneal@1: 'loggers': { bgneal@1: 'django':{ bgneal@1: 'level': 'WARNING', bgneal@1: 'propagate': False, bgneal@1: 'handlers': ['file'], bgneal@1: }, bgneal@1: }, bgneal@1: 'root': { bgneal@1: 'level': 'DEBUG', bgneal@1: 'handlers': ['file'], bgneal@1: }, bgneal@1: }