You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.5 KiB
62 lines
1.5 KiB
from .base import *
|
|
|
|
|
|
DATABASES = {
|
|
'default': {
|
|
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
|
'NAME': 'archilance',
|
|
'USER': 'archilance',
|
|
'PASSWORD': 'q3048hgaoasd333knf',
|
|
'HOST': 'localhost',
|
|
'PORT': '',
|
|
}
|
|
}
|
|
|
|
|
|
DEBUG = False
|
|
THUMBNAIL_DEBUG = DEBUG
|
|
SECRET_KEY = 'vb6@b9zj7^f!^+x*e8=e!oundyu1!e*&0i(3gu2xwo4%fx4h&n'
|
|
|
|
STATICFILES_FINDERS = (
|
|
'django.contrib.staticfiles.finders.FileSystemFinder',
|
|
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
|
|
'django.contrib.staticfiles.finders.DefaultStorageFinder',
|
|
'compressor.finders.CompressorFinder',
|
|
)
|
|
|
|
|
|
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",
|
|
},
|
|
}
|
|
}
|
|
|
|
|
|
COMPRESS_ENABLED = not DEBUG |