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.
 
 
 
 

28 lines
857 B

from .base import *
# Database settings. There must a database url
DATABASES = {
**DATABASES,
'default': env.db()
}
# Email user settings
ADMINS = (
('Dmitriy Belousov', 'dimkasp@mail.ru'),
)
MANAGERS = ADMINS
DEFAULT_FROM_EMAIL = 'notreply@russianprograms'
# Email config
EMAIL_CONFIG = env.email_url('EMAIL_URL')
EMAIL_USE_TLS = EMAIL_CONFIG.get('EMAIL_USE_TLS')
EMAIL_USE_SSL = EMAIL_CONFIG.get("EMAIL_USE_SSL")
EMAIL_HOST = EMAIL_CONFIG.get('EMAIL_HOST')
EMAIL_PORT = EMAIL_CONFIG.get('EMAIL_PORT')
EMAIL_HOST_USER = EMAIL_CONFIG.get('EMAIL_HOST_USER')
EMAIL_HOST_PASSWORD = EMAIL_CONFIG.get('EMAIL_HOST_PASSWORD')
# Logging
LOGGING['handlers']['production_file'] = os.path.join(os.path.dirname(BASE_DIR),'logs/eshop_main_prod.log')
LOGGING['handlers']['debug_file'] = os.path.join(os.path.dirname(BASE_DIR),'logs/eshop_main_prod.log')