|
|
|
|
@ -158,7 +158,7 @@ INSTALLED_APPS = [ |
|
|
|
|
# 'cmsplugin_filer_video', |
|
|
|
|
|
|
|
|
|
'captcha', |
|
|
|
|
'yandex_money', |
|
|
|
|
# 'yandex_money', |
|
|
|
|
'filer', |
|
|
|
|
'easy_thumbnails', |
|
|
|
|
'treebeard', |
|
|
|
|
@ -280,13 +280,13 @@ THUMBNAIL_PROCESSORS = ( |
|
|
|
|
'filer.thumbnail_processors.scale_and_crop_with_subject_location', |
|
|
|
|
'easy_thumbnails.processors.filters' |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
RAVEN_CONFIG = { |
|
|
|
|
'dsn': 'http://02d524ef0d044bdfae0b39546b752cb2:1e025305594d4532ae93125372dcde50@sentry.mitri4.pro/1', |
|
|
|
|
# If you are using git, you can also automatically configure the |
|
|
|
|
# release based on the git info. |
|
|
|
|
'release': raven.fetch_git_sha(ROOT_DIR), |
|
|
|
|
} |
|
|
|
|
if not DEBUG: |
|
|
|
|
RAVEN_CONFIG = { |
|
|
|
|
'dsn': 'http://02d524ef0d044bdfae0b39546b752cb2:1e025305594d4532ae93125372dcde50@sentry.mitri4.pro/1', |
|
|
|
|
# If you are using git, you can also automatically configure the |
|
|
|
|
# release based on the git info. |
|
|
|
|
'release': raven.fetch_git_sha(ROOT_DIR), |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
# cache settings |
|
|
|
|
COMMON_CACHE_PREFIX = 'dokumentor_' |
|
|
|
|
@ -304,16 +304,6 @@ CACHES = { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
YANDEX_MONEY_DEBUG = False |
|
|
|
|
YANDEX_MONEY_SCID = 84437 |
|
|
|
|
YANDEX_MONEY_SHOP_ID = 92585 |
|
|
|
|
YANDEX_MONEY_SHOP_PASSWORD = 'sQuMtorHE02U' |
|
|
|
|
YANDEX_MONEY_FAIL_URL = 'https://dokumentor.ru/my/payment/fail/' |
|
|
|
|
YANDEX_MONEY_SUCCESS_URL = 'https://dokumentor.ru/my/payment/success/' |
|
|
|
|
YANDEX_MONEY_PAYMENT_URL = 'https://money.yandex.ru/eshop.xml' |
|
|
|
|
# информировать о случаях, когда модуль вернул Яндекс.Кассе ошибку |
|
|
|
|
YANDEX_MONEY_MAIL_ADMINS_ON_PAYMENT_ERROR = True |
|
|
|
|
|
|
|
|
|
DADATA_API_KEY = 'e4232c46f82c0b2e8c5f9bd583d6224ce9c934e0' |
|
|
|
|
DADATA_SECRET_KEY = '9c5c3fdfba74af122730db650346b3e91586abc7' |
|
|
|
|
|
|
|
|
|
@ -348,25 +338,8 @@ LOGGING = { |
|
|
|
|
'class': 'logging.StreamHandler', |
|
|
|
|
'formatter': 'verbose' |
|
|
|
|
}, |
|
|
|
|
'mail_admins': { |
|
|
|
|
'level': 'ERROR', |
|
|
|
|
'filters': ['require_debug_false'], |
|
|
|
|
'class': 'django.utils.log.AdminEmailHandler' |
|
|
|
|
}, |
|
|
|
|
'yandex_money': { |
|
|
|
|
'level': 'DEBUG', |
|
|
|
|
'class': 'logging.handlers.RotatingFileHandler', |
|
|
|
|
'filename': os.path.join(ROOT_DIR, 'var/log/yandex_money.log'), |
|
|
|
|
'maxBytes': 1024 * 1024 * 5, |
|
|
|
|
'backupCount': 5, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
'loggers': { |
|
|
|
|
'django.request': { |
|
|
|
|
'handlers': ['mail_admins'], |
|
|
|
|
'level': 'ERROR', |
|
|
|
|
'propagate': True, |
|
|
|
|
}, |
|
|
|
|
'django.db.backends': { |
|
|
|
|
'level': 'ERROR', |
|
|
|
|
'handlers': ['console'], |
|
|
|
|
@ -381,11 +354,6 @@ LOGGING = { |
|
|
|
|
'level': 'DEBUG', |
|
|
|
|
'handlers': ['console'], |
|
|
|
|
'propagate': False, |
|
|
|
|
}, |
|
|
|
|
'yandex_money': { |
|
|
|
|
'handlers': ['yandex_money'], |
|
|
|
|
'level': 'DEBUG', |
|
|
|
|
'propagate': False |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
|