SHARE
TWEET

Untitled

a guest May 22nd, 2017 687 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. IntegrityError at /funct/ajax/loan/prolongation/
  2. duplicate key value violates unique constraint "prolong_loan_request_doc_num_438f51ad_uniq"
  3. DETAIL:  Key (doc_num)=(555101141651.1) already exists.
  4.  
  5.  
  6. Request Method: POST
  7. Request URL: http://loany.com.ua/funct/ajax/loan/prolongation/
  8. Django Version: 1.9.4
  9. Python Executable: /usr/bin/python3
  10. Python Version: 3.5.2
  11. Python Path: ['/loany', '/usr/local/bin', '/usr/lib/python35.zip', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-x86_64-linux-gnu', '/usr/lib/python3.5/lib-dynload', '/usr/local/lib/python3.5/dist-packages', '/usr/lib/python3/dist-packages', '/loany']
  12. Server time: Пн, 22 Тра 2017 11:15:46 +0300
  13. Installed Applications:
  14. ('loany.apps.authentication',
  15.  'django.contrib.admin',
  16.  'django.contrib.auth',
  17.  'django.contrib.contenttypes',
  18.  'django.contrib.sessions',
  19.  'django.contrib.messages',
  20.  'django.contrib.staticfiles',
  21.  'django_js_reverse',
  22.  'django_assets',
  23.  'django_extensions',
  24.  'loany.apps.dashboard',
  25.  'loany.apps.client_site',
  26.  'loany.apps.user_profile',
  27.  'loany.apps.documents',
  28.  'loany.apps.loan',
  29.  'loany.apps.bank_card',
  30.  'loany.apps.bankid',
  31.  'loany.apps.payments',
  32.  'loany.apps.bonus_system',
  33.  'loany.apps.collectors',
  34.  'loany.apps.reports',
  35.  'loany.apps.review',
  36.  'loany.apps.quiz',
  37.  'smart_docs',
  38.  'loany.libs.secure',
  39.  'loany.libs.mobile_dialers',
  40.  'sys_notifications',
  41.  'loany.libs.notifications',
  42.  'debug_toolbar',
  43.  'debug_toolbar_ext',
  44.  'loany.libs',
  45.  'tempometry',
  46.  'email_sender',
  47.  'ckeditor',
  48.  'sms_sender',
  49.  'data_check',
  50.  'loany.libs.user_data_check',
  51.  'loany.libs.bki_service',
  52.  'loany.libs.credit_history',
  53.  'django.contrib.sites',
  54.  'django.contrib.sitemaps',
  55.  'mptt',
  56.  'pages',
  57.  'loan_core',
  58.  'loan_core.backends.quick_loan',
  59.  'loan_core.backends.smart_loan',
  60.  'user_permissions',
  61.  'requisites',
  62.  'multi_email_field',
  63.  'paybox',
  64.  'paybox_liqpay',
  65.  'paybox_privat_terminal',
  66.  'paybox_city24_terminal',
  67.  'django_violation_checker',
  68.  'django_rss_reader',
  69.  'datatables_view_helpers',
  70.  'fixtures_migrator',
  71.  'raven.contrib.django.raven_compat')
  72. Installed Middleware:
  73. ('raven.contrib.django.middleware.SentryMiddleware',
  74.  'django.contrib.sessions.middleware.SessionMiddleware',
  75.  'debug_toolbar_ext.middleware.DebugToolbarExtMiddleware',
  76.  'django.middleware.locale.LocaleMiddleware',
  77.  'django.middleware.common.CommonMiddleware',
  78.  'django.middleware.csrf.CsrfViewMiddleware',
  79.  'django.contrib.auth.middleware.AuthenticationMiddleware',
  80.  'django.contrib.messages.middleware.MessageMiddleware',
  81.  'django.middleware.clickjacking.XFrameOptionsMiddleware',
  82.  'django.middleware.security.SecurityMiddleware',
  83.  'loany.libs.secure.SecureBaseMiddleware.SecureBaseMiddleware')
  84.  
  85.  
  86. Traceback:  
  87.  
  88. File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py" in execute
  89.   64.                 return self.cursor.execute(sql, params)
  90.  
  91.    
  92.       The above exception (duplicate key value violates unique constraint "prolong_loan_request_doc_num_438f51ad_uniq"
  93. DETAIL:  Key (doc_num)=(555101141651.1) already exists.
  94. ) was the direct cause of the following exception:
  95.    
  96.  
  97.  
  98. File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py" in get_response
  99.   149.                     response = self.process_exception_by_middleware(e, request)
  100.  
  101. File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py" in get_response
  102.   147.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
  103.  
  104. File "/usr/lib/python3.5/contextlib.py" in inner
  105.   30.                 return func(*args, **kwds)
  106.  
  107. File "/loany/loany/apps/authentication/decorators.py" in inner
  108.   52.             return func(request, *args, **kwargs)
  109.  
  110. File "/loany/loany/apps/authentication/decorators.py" in inner
  111.   90.             return func(request, *args, **kwargs)
  112.  
  113. File "/loany/loany/apps/loan/views/prolongation.py" in ajax_create_prolongation
  114.   156.     prolong = backend.create_prolongation(loan_id, period)
  115.  
  116. File "/loany/loany/apps/loan/backends/base.py" in create_prolongation
  117.   317.             new_loan_full_period=new_loan_full_period
  118.  
  119. File "/usr/local/lib/python3.5/dist-packages/django/db/models/manager.py" in manager_method
  120.   122.                 return getattr(self.get_queryset(), name)(*args, **kwargs)
  121.  
  122. File "/usr/local/lib/python3.5/dist-packages/django/db/models/query.py" in create
  123.   401.         obj.save(force_insert=True, using=self.db)
  124.  
  125. File "/usr/local/lib/python3.5/dist-packages/django/db/models/base.py" in save
  126.   700.                        force_update=force_update, update_fields=update_fields)
  127.  
  128. File "/usr/local/lib/python3.5/dist-packages/django/db/models/base.py" in save_base
  129.   728.             updated = self._save_table(raw, cls, force_insert, force_update, using, update_fields)
  130.  
  131. File "/usr/local/lib/python3.5/dist-packages/django/db/models/base.py" in _save_table
  132.   812.             result = self._do_insert(cls._base_manager, using, fields, update_pk, raw)
  133.  
  134. File "/usr/local/lib/python3.5/dist-packages/django/db/models/base.py" in _do_insert
  135.   851.                                using=using, raw=raw)
  136.  
  137. File "/usr/local/lib/python3.5/dist-packages/django/db/models/manager.py" in manager_method
  138.   122.                 return getattr(self.get_queryset(), name)(*args, **kwargs)
  139.  
  140. File "/usr/local/lib/python3.5/dist-packages/django/db/models/query.py" in _insert
  141.   1039.         return query.get_compiler(using=using).execute_sql(return_id)
  142.  
  143. File "/usr/local/lib/python3.5/dist-packages/django/db/models/sql/compiler.py" in execute_sql
  144.   1060.                 cursor.execute(sql, params)
  145.  
  146. File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py" in execute
  147.   79.             return super(CursorDebugWrapper, self).execute(sql, params)
  148.  
  149. File "/usr/local/lib/python3.5/dist-packages/raven/contrib/django/client.py" in execute
  150.   112.             return real_execute(self, sql, params)
  151.  
  152. File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py" in execute
  153.   64.                 return self.cursor.execute(sql, params)
  154.  
  155. File "/usr/local/lib/python3.5/dist-packages/django/db/utils.py" in __exit__
  156.   95.                 six.reraise(dj_exc_type, dj_exc_value, traceback)
  157.  
  158. File "/usr/local/lib/python3.5/dist-packages/django/utils/six.py" in reraise
  159.   685.             raise value.with_traceback(tb)
  160.  
  161. File "/usr/local/lib/python3.5/dist-packages/django/db/backends/utils.py" in execute
  162.   64.                 return self.cursor.execute(sql, params)
  163.  
  164. Exception Type: IntegrityError at /funct/ajax/loan/prolongation/
  165. Exception Value: duplicate key value violates unique constraint "prolong_loan_request_doc_num_438f51ad_uniq"
  166. DETAIL:  Key (doc_num)=(555101141651.1) already exists.
  167.  
  168. Request information:
  169. GET: No GET data
  170.  
  171. POST:
  172. amount = '100,00'
  173. loan_id = '375'
  174. prolongation = '1'
  175.  
  176. FILES: No FILES data
  177.  
  178. COOKIES:
  179. sessionid = '.eJxVjMEOgyAQRP9lzw1Byor22KTfQVa6BKJFI3homv67knhojzNv5n3A0laC3TKvNj7hBkbB5bccyI2cKplmSm9By5JFxZxKdFTinMS5EY8Xxel-Hv4sgXI4FOhQsjLtdTDIvkfdNNJ7ybrTDvvWKFUDevjuOIkzGA:1dCiSc:uMboIlRMen1g_RefhrhfWsCxOug'
  180. _ym_isad = '1'
  181. csrftoken = 'oHpO2i98l7qMfq4owCv0gCnsOQFyh0gH'
  182. _ym_uid = '1490696172186805465'
  183. _ym_visorc_42883314 = 'w'
  184.  
  185. META:
  186. SERVER_SOFTWARE = 'gunicorn/19.6.0'
  187. QUERY_STRING = ''
  188. HTTP_X_REAL_IP = '93.74.129.206'
  189. HTTP_ORIGIN = 'https://loany.com.ua'
  190. HTTP_ACCEPT_LANGUAGE = 'uk-UA,uk;q=0.8,ru;q=0.6,en-US;q=0.4,en;q=0.2'
  191. REQUEST_METHOD = 'POST'
  192. wsgi.run_once = False
  193. wsgi.errors = <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f851c571b38>
  194. HTTP_HOST = 'loany.com.ua'
  195. HTTP_ACCEPT = '*/*'
  196. HTTP_X_REQUESTED_WITH = 'XMLHttpRequest'
  197. wsgi.file_wrapper = ''
  198. SERVER_PORT = '80'
  199. SERVER_PROTOCOL = 'HTTP/1.0'
  200. REMOTE_ADDR = "b''"
  201. wsgi.url_scheme = 'http'
  202. wsgi.version =
  203. CSRF_COOKIE = 'oHpO2i98l7qMfq4owCv0gCnsOQFyh0gH'
  204. gunicorn.socket = <socket.socket fd=12, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0, laddr=/run/gunicorn/socket>
  205. HTTP_X_CSRFTOKEN = 'oHpO2i98l7qMfq4owCv0gCnsOQFyh0gH'
  206. CONTENT_LENGTH = '42'
  207. PATH_INFO = '/funct/ajax/loan/prolongation/'
  208. SERVER_NAME = 'loany.com.ua'
  209. HTTP_COOKIE = '_ym_uid=1490696172186805465; _ym_isad=1; sessionid=.eJxVjMEOgyAQRP9lzw1Byor22KTfQVa6BKJFI3homv67knhojzNv5n3A0laC3TKvNj7hBkbB5bccyI2cKplmSm9By5JFxZxKdFTinMS5EY8Xxel-Hv4sgXI4FOhQsjLtdTDIvkfdNNJ7ybrTDvvWKFUDevjuOIkzGA:1dCiSc:uMboIlRMen1g_RefhrhfWsCxOug; csrftoken=oHpO2i98l7qMfq4owCv0gCnsOQFyh0gH; _ym_visorc_42883314=w'
  210. CONTENT_TYPE = 'application/x-www-form-urlencoded; charset=UTF-8'
  211. wsgi.multiprocess = True
  212. HTTP_CONNECTION = 'close'
  213. HTTP_USER_AGENT = 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36'
  214. HTTP_X_FORWARDED_FOR = '93.74.129.206'
  215. HTTP_REFERER = 'https://loany.com.ua/cabinet/loan/375/prolong/'
  216. RAW_URI = '/funct/ajax/loan/prolongation/'
  217. SCRIPT_NAME = ''
  218. wsgi.input = <gunicorn.http.body.Body object at 0x7f851c571a20>
  219. wsgi.multithread = False
  220. HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
  221.  
  222. Settings:
  223. Using settings module loany.settings
  224. ASSETS_LOAD_PATH = ['loany/static', 'loany/apps/authentication/static', 'loany/apps/bank_card/static', 'loany/apps/loan/static', 'loany/apps/payments/static', 'loany/apps/user_profile/static']
  225. COMPANY_OKPO = '39584637'
  226. COLLECTORS_DELAY_DAYS = 8
  227. TEMPLATE_STRING_IF_INVALID = ''
  228. USER_MODEL_STR = 'loany.apps.authentication.models.User'
  229. EMAIL_HOST_USER = ''
  230. TEST_RUNNER = 'django.test.runner.DiscoverRunner'
  231. BKI_RESPONSE_TIMEOUT = 900
  232. LANGUAGE_CODE = 'uk'
  233. EMAIL_SUBJECT_PREFIX = '[Django] '
  234. INSTALLED_APPS =
  235. LOAN_CORE_LOAN_SCHEDULE_RECORD_MODEL = 'loan.UserLoanScheduleRecord'
  236. DISALLOWED_USER_AGENTS = []
  237. CSRF_COOKIE_NAME = 'csrftoken'
  238. SESSION_COOKIE_AGE = 36000
  239. ASSETS_URL_EXPIRE = None
  240. BANK_ID_CLIENT_SECRET = '********************'
  241. BANK_ID_DATA_GATHER_DOMAIN_SPECIAL = None
  242. CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
  243. SHORT_DATETIME_FORMAT = 'm/d/Y P'
  244. ADMINS = []
  245. CACHE_FILE_MODE = None
  246. LANGUAGE_COOKIE_NAME = '_local_'
  247. VIOLATION_CHECKER_ADMIN_IP_DEFAULT_SOURCE = 'manual'
  248. STATICFILES_DIRS =
  249. SESSION_COOKIE_PATH = '/'
  250. THOUSAND_SEPARATOR = ','
  251. BKI_CREDIT_HISTORY_BUREAU_SEND = False
  252. SESSION_SAVE_EVERY_REQUEST = False
  253. APPEND_SLASH = True
  254. USE_I18N = True
  255. LOGIN_URL = '/accounts/login/'
  256. DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
  257. FIXTURE_DIRS = []
  258. LOGIN_REDIRECT_URL = '/accounts/profile/'
  259. USE_X_FORWARDED_HOST = False
  260. NOTIFICATION_SENDERS =
  261. VIOLATION_CHECKER_ADMIN_IP = True
  262. EMAIL_USE_TLS = False
  263. BANK_ID_DATA_TEMPLATE = 'https://{domain}/ResourceService/checked/data'
  264. FORCE_SCRIPT_NAME = None
  265. SESSION_COOKIE_DOMAIN = None
  266. HTTP_HOST = 'https://loany.com.ua'
  267. SITE_URL_PREFIX = '^'
  268. DATA_CHECK_USER_DATA = 'user_data_check.DataCheckUserData'
  269. MANAGERS = []
  270. STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
  271. COLLECTORS_DEBT_REDISTRIBUTION_PERIOD = 3
  272. FILE_UPLOAD_TEMP_DIR = None
  273. AUTHENTICATION_BACKENDS = 'loany.apps.authentication.backend.EmailBackend'
  274. EMAIL_TIMEOUT = None
  275. DEBUG_TOOLBAR_PANELS = ['debug_toolbar.panels.timer.TimerPanel', 'debug_toolbar.panels.sql.SQLPanel', 'debug_toolbar_ext.panels.file_log.FileLogPanel']
  276. PAYMENT_TIMEOUT_PERIOD = 180
  277. TIME_FORMAT = 'P'
  278. SERVER_EMAIL = 'root@localhost'
  279. USE_X_FORWARDED_PORT = False
  280. SESSION_FILE_PATH = None
  281. LOAN_CORE_REQUEST_MODEL = 'loan.UserLoanRequest'
  282. USE_TZ = True
  283. SHORT_DATE_FORMAT = 'm/d/Y'
  284. BANK_ID_TEST_ENCRYPTED_DATA = '/loany/loany/apps/bankid/tests/encrypted_data.json'
  285. SITE_ID = 1
  286. CACHES = {'default': {'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '127.0.0.1:11211'}}
  287. STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
  288. SEND_NOTIFICATION = True
  289. STATIC_ROOT = '/loany/loany/var/static/'
  290. SECURE_SSL_HOST = None
  291. USE_ETAGS = False
  292. MIGRATION_MODULES = {}
  293. USER_MODEL_APP = 'authentication'
  294. LANGUAGES = ('uk', 'Українська')
  295. LOGS_DIR = '/tmp'
  296. VIOLATION_CHECKER_ADMIN_GEO = True
  297. LOAN_CORE_LOAN_SCHEDULE_MODEL = 'loan.UserLoanSchedule'
  298. EMAIL_HOST_PASSWORD = '********************'
  299. SILENCED_SYSTEM_CHECKS = []
  300. FIRST_DAY_OF_WEEK = 0
  301. DJANGO_TOOLBAR_URL_PREFIX = 'B5611733-4715-45EB-B701-4092EE6CFA8A'
  302. LOAN_CORE_LOAN_PERIOD_MODEL = 'loan.UserLoanPeriod'
  303. BANK_ID_CLIENT_ID = '01b2046e-b7c7-450b-8216-bfdd93240f5d'
  304. BIND_CARD_TIMEOUT = 10
  305. DECIMAL_SEPARATOR = '.'
  306. VIOLATION_CHECKER_CACHES = {'local': {'engine': 'local.Storage'}}
  307. DATA_CHECK_EXTENDED_MODE = False
  308. TEMPLATES = [{'DIRS': ['/loany/loany/templates/'], 'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'OPTIONS': {'libraries': {'custom_tags': 'loany.libs.templatetags.custom_tags'}, 'context_processors': ['django.contrib.auth.context_processors.auth', 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.template.context_processors.i18n', 'django.template.context_processors.media', 'django.template.context_processors.static', 'django.template.context_processors.tz', 'django.contrib.messages.context_processors.messages', 'loany.apps.user_profile.context_processors.get_user_profile', 'loany.apps.loan.context_processors.get_loans_settings', 'loany.apps.dashboard.context_processors.get_test_mode', 'loany.libs.menu_helpers.context_processors.get_dynamic_menu', 'requisites.context_processors.company_requisites_processor', 'pages.context_processors.media', 'loany.apps.client_site.context_processors.add_header_menu', 'loany.apps.client_site.context_processors.add_version']}}]
  309. MONTH_DAY_FORMAT = 'F j'
  310. EMAIL_SSL_CERTFILE = None
  311. REFILL_ATTEMPTS = 3
  312. IGNORABLE_404_URLS = []
  313. COMPANY_PRIVATTERMINAL_CODE = '39584637'
  314. RESOLVER = <django_assets.env.DjangoResolver object at 0x7f851c9b7cc0>
  315. NOTIFICATION_USER_LIST = 'loany.libs.notifications.helpers.get_user_list'
  316. BANK_ID_DATA_GATHER_DOMAIN = 'biprocessing.org.ua'
  317. DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
  318. TEMPLATE_LOADERS = ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader']
  319. ALLOWED_HOSTS = ['*']
  320. COMPANY_NAME = 'Loany'
  321. LANGUAGE_COOKIE_DOMAIN = None
  322. SECURE_BROWSER_XSS_FILTER = False
  323. PASSWORD_RESET_TIMEOUT_DAYS = '********************'
  324. BANK_ID_TEST_DECRYPTED_DATA = '/loany/loany/apps/bankid/tests/decrypted_data.json'
  325. FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
  326. COLLECTORS_REPORTS_DIRECTORY = '/loany/loany/apps/collectors/reports'
  327. PAGE_DEFAULT_TEMPLATE = 'client/pages/default_page.html'
  328. DJANGO_ADMIN_URL_PREFIX = '^admin/built-in/'
  329. BANK_ID_CERT = '/loany/loany/settings/bank_id_cert.rst'
  330. JS_REVERSE_JS_VAR_NAME = 'AdminUrls'
  331. LOGOUT_URL = '/accounts/logout/'
  332. NUMBER_GROUPING = 0
  333. PASSWORD_HASHERS = '********************'
  334. REFILL_CARD_ATTEMPTS = 3
  335. SESSION_ENGINE = 'django.contrib.sessions.backends.signed_cookies'
  336. MEDIA_URL = '/media/'
  337. PRIVAT_TERMINAL = 'privat_terminal'
  338. TEST_MODE = True
  339. X_FRAME_OPTIONS = 'ALLOWALL'
  340. DATETIME_INPUT_FORMATS = ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y']
  341. FORMAT_MODULE_PATH = None
  342. CSRF_COOKIE_SECURE = False
  343. FILE_CHARSET = 'utf-8'
  344. LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
  345. SMART_DOCS_BASE_TEMPLATE = 'admin/base/base.html'
  346. SECRET_KEY = '********************'
  347. ASSETS_URL_MAPPING = {}
  348. TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
  349. EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
  350. JS_REVERSE_ADMIN_SITE_JS_VAR_NAME = 'AdminUrls'
  351. MIDDLEWARE_CLASSES =
  352. TEMPLATE_DIRS = []
  353. BLOCK_PERIOD_SCORING_TEMP = 7776000
  354. SECURE_HSTS_INCLUDE_SUBDOMAINS = False
  355. LOAN_CORE_LOAN_DEBT_MODEL = 'loan.UserLoanDebt'
  356. CONFIRM_CODE_TIMEOUT = 1440
  357. CACHE_MIDDLEWARE_SECONDS = 600
  358. ABSOLUTE_URL_OVERRIDES = {}
  359. STATIC_URL = '/static/'
  360. BKI_CREDIT_HISTORY_GENERATION = True
  361. TEST_NON_SERIALIZED_APPS = []
  362. CKEDITOR_CONFIGS = {'default': {'toolbar': 'Custom', 'toolbar_Custom': [['Bold', 'Italic', 'Underline'], ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'], ['Link', 'Unlink'], ['RemoveFormat', 'Source']]}, 'cms': {'toolbar': 'Custom', 'toolbar_Custom': [['Bold', 'Italic', 'Underline'], ['Font', 'FontSize'], ['TextColor', 'BGColor'], ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'], ['Link', 'Unlink', 'Image'], ['RemoveFormat', 'Source']]}}
  363. NOTIFICATIONS_ADMIN_ENABLED = False
  364. BANK_ID_AUTH_DOMAIN = 'bankid.org.ua'
  365. EMAIL_HOST = 'localhost'
  366. CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
  367. LOGGING_CONFIG = 'logging.config.dictConfig'
  368. EMAIL_SENDER_EXTENDED_MODE = False
  369. ASSETS_ROOT = '/loany/loany/var/prestatic'
  370. LOAN_CORE_LOAN_MODEL = 'loan.UserLoan'
  371. TIME_ZONE = 'Europe/Kiev'
  372. CSRF_COOKIE_PATH = '/'
  373. USE_L10N = True
  374. PAYBOX_BACKENDS = {'city24_terminal': {'data_providers': {'check': 'loany.apps.loan.terminal.city24.process_check', 'pay': 'loany.apps.loan.terminal.city24.process_pay'}, 'credentials': [('ptn_city24', 'lEqBRP7iHjNAjJw8Uf5A5Mu1p37uLExI'), ('pta_city24', 'uKfnKs3CSlbWsvEJ8wsQkGU3yHTs7Ywe')], 'skip_authentication': False}, '_default': {'root_url': 'https://loany.com.ua'}, 'liqpay': {'payment_private_key': 'cBcwvFZ5DlNDgkRpAC86PtnxygSocqX1fqtkNTkT', 'private_key': 'jfISzxgOjeaOJ8mnLT6SgEjKUnOMVpdQPIJiJtIA', 'public_key': 'i94291858682', 'report_private_key': 'cBcwvFZ5DlNDgkRpAC86PtnxygSocqX1fqtkNTkT', 'report_public_key': 'i65872398418', 'currency': 'UAH', 'payment_public_key': 'i65872398418', 'sandbox': False}, 'privat_terminal': {'data_providers': {'check': 'loany.apps.loan.terminal.privat.process_check', 'search': 'loany.apps.loan.terminal.privat.process_search', 'upload': 'loany.apps.loan.terminal.privat.process_upload', 'pay': 'loany.apps.loan.terminal.privat.process_pay'}}}
  375. DATE_INPUT_FORMATS = ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y']
  376. EMAIL_USE_SSL = False
  377. CSRF_TRUSTED_ORIGINS = []
  378. DEFAULT_CONTENT_TYPE = 'text/html'
  379. SESSION_COOKIE_SECURE = False
  380. PREPEND_WWW = False
  381. CSRF_COOKIE_AGE = 31449600
  382. VERIFY_CARD_ATTEMPTS = 3
  383. AJAX_URL_PREFIX = 'funct/ajax/'
  384. SMS_SENDER_EXTENDED_MODE = False
  385. FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
  386. BASE_DIR = '/loany/loany'
  387. LANGUAGE_COOKIE_AGE = None
  388. ADMIN_URL_PREFIX = '^admin/'
  389. BLOCK_PERIOD_FOREVER = 2147483647
  390. USER_MODEL = 'authentication.User'
  391. CABINET_LOAN_HISTORY_ACTIONS = 6
  392. COMPANY_SEARCH_BACKEND = 'igk_group'
  393. EMAIL_PORT = 25
  394. DEBUG_PROPAGATE_EXCEPTIONS = False
  395. ASSETS_AUTO_BUILD = True
  396. MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
  397. ASSETS_DEBUG = True
  398. CSRF_COOKIE_DOMAIN = None
  399. DATETIME_FORMAT = '%d.%m.%Y %H:%M'
  400. SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
  401. SESSION_COOKIE_NAME = 'sessionid'
  402. VIOLATION_CHECKER_NO_GEO_CACHE = True
  403. BANK_ID_ACCESS_TEMPLATE = 'https://{domain}/DataAccessService/oauth/token?grant_type=authorization_code&client_id={client_id}&client_secret={encoded_secret}&code={code}&redirect_uri={redirect_url}'
  404. EMAIL_SSL_KEYFILE = '********************'
  405. SECURE_CONTENT_TYPE_NOSNIFF = False
  406. FILE_UPLOAD_PERMISSIONS = None
  407. SECURE_PROXY_SSL_HEADER = None
  408. ASSETS_CACHE = True
  409. DATE_FORMAT = '%d.%m.%Y'
  410. RSS_READER_DEFAULT_WORKER = 0
  411. PAGE_TEMPLATES =
  412. INTERNAL_IPS = ['127.0.0.1', '10.0.2.2']
  413. BKI_SERVICE_SIMULATION = False
  414. ASSETS_VERSIONS = 'hash'
  415. SESSION_SERIALIZER = 'loany.libs.utils.session_serializer.HockedJSONSerializer'
  416. CELERYBEAT_SCHEDULE = {'paybox_privat_terminal_clean_references': {'task': 'paybox_privat_terminal_clean_references_task', 'schedule': datetime.timedelta(1)}, 'custom_reports_historical_update': {'task': 'custom_reports_historical_update_task', 'schedule': <crontab: 30 3 * * * (m/h/d/dM/MY)>}, 'loany.apps.loan.tasks.penalty_accrual': {'task': 'loany.apps.loan.tasks.penalty_accrual', 'options': {}, 'args': (), 'relative': False, 'kwargs': {}, 'schedule': <crontab: 10 3 * * * (m/h/d/dM/MY)>}, 'django_rss_reader_update': {'task': 'django_rss_reader_task', 'schedule': datetime.timedelta(0, 10800)}}
  417. CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
  418. LIQPAY = 'liqpay'
  419. CELERY_ROUTES = {'loany.apps.bankid.tasks.process_bankid_task': {'queue': 'default'}, 'loany.libs.bki_service.tasks.task_bank_statement_request': {'queue': 'slow'}, 'loany.apps.loan.tasks.task_left_payments': {'queue': 'default'}, 'refill_loan_task': {'queue': 'default'}, 'loany.apps.collectors.tasks.task_update_collectors_registry': {'queue': 'default'}, 'loany.apps.loan.tasks.task_close_unrefilled_loans': {'queue': 'default'}, 'data_check.tasks.task_run_check_instance': {'queue': 'slow'}, 'loany.apps.loan.tasks.disable_prolongations': {'queue': 'default'}, 'loany.apps.loan.tasks.crontask_non_signed_loans': {'queue': 'default'}, 'loany.apps.payments.tasks.close_delayed_payments': {'queue': 'default'}, 'loany.apps.loan.tasks.penalty_accrual': {'queue': 'default'}, 'loany.apps.loan.tasks.task_check_loan_request': {'queue': 'slow'}, 'loany.apps.loan.tasks.task_payments_reminder_payment_day': {'queue': 'slow'}, 'loany.apps.loan.tasks.close_prolongation_task': {'queue': 'default'}, 'loany.apps.loan.tasks.task_close_unconfirmed_loans': {'queue': 'default'}, 'loany.apps.loan.tasks.prolongation_not_paid_first_day': {'queue': 'slow'}, 'paybox_privat_terminal_clean_references_task': {'queue': 'slow'}, 'loany.apps.bankid.tasks.bankid_card_verification_task': {'queue': 'default'}, 'loany.apps.loan.tasks.nine_days_penalty_notification': {'queue': 'slow'}, 'loany.apps.loan.tasks.penalty_not_paid_one_day': {'queue': 'slow'}, 'loany.apps.payments.tasks.auto_conversion_to_bonuses': {'queue': 'slow'}, 'loany.libs.credit_history.tasks.resend_with_errors': {'queue': 'default'}, 'loany.libs.credit_history.tasks.monthly_loan_send': {'queue': 'default'}, 'loany.libs.notifications.tasks.cron_resend_sms': {'queue': 'slow'}, 'loany.libs.credit_history.tasks.send_new_loan': {'queue': 'default'}, 'loany.libs.notifications.tasks.task_send_recently': {'queue': 'default'}, 'loany.apps.payments.tasks.cron_retry_refund_payments': {'queue': 'default'}, 'loany.apps.collectors.tasks.send_file_email': {'queue': 'slow'}, 'custom_reports_historical_update_task': {'queue': 'slow'}, 'loany.libs.credit_history.tasks.send_closed_loan': {'queue': 'default'}, 'loany.apps.loan.tasks.task_payments_reminder': {'queue': 'slow'}, 'loany.apps.loan.tasks.writeoff_delayed_loans': {'queue': 'default'}, 'loany.apps.loan.tasks.auto_paid_with_bonuses': {'queue': 'default'}, 'loany.apps.loan.tasks.recalculation_loan_schedule': {'queue': 'default'}, 'django_rss_reader_task': {'queue': 'slow'}, 'loany.apps.loan.tasks.crontask_card_not_available': {'queue': 'default'}, 'loany.apps.bank_card.tasks.refund': {'queue': 'default'}, 'loany.libs.credit_history.tasks.send_unsent_loans': {'queue': 'default'}, 'loany.apps.loan.tasks.penalty_not_paid_two_days': {'queue': 'slow'}}
  420. RAVEN_CONFIG = {'dsn': 'http://19a9d99b82eb40e98d54967ce3c49f43:4cb3500b601f4e52a21a4d4ab677e21e@138.201.244.18:9000/4', 'release': 'e355e7e05d6e9bc70e482f4c1ed07f711d0bdbef'}
  421. USE_THOUSAND_SEPARATOR = False
  422. RSS_READER_ADMIN_RECORDS = True
  423. DEFAULT_CHARSET = 'utf-8'
  424. DEBUG = True
  425. VIOLATION_CHECKER_CHECKERS = {'check_strict': {'nested': [{'list_alias': 'whitelist', 'checker': 'ip_list.white'}, {'nested': [{'list_alias': 'blacklist', 'checker': 'ip_list.check'}, {'cache': 'local', 'checker': 'ipintel.check', 'limit': 0.99}, {'geo_record': 'ato', 'geo_db': 'GeoLite2-City.mmdb', 'subdivision': 'Republic of Crimea', 'checker': 'geo.check'}, {'notfound_score': 0.0, 'fail_score': 1.0, 'country': 'Ukraine', 'success_score': 0.0, 'geo_db': 'GeoLite2-City.mmdb', 'checker': 'geo.check'}], 'checker': 'agregate.logical_or'}], 'checker': 'agregate.logical_and'}, 'check_light': {'nested': [{'list_alias': 'whitelist', 'checker': 'ip_list.white'}, {'nested': [{'list_alias': 'blacklist', 'checker': 'ip_list.check'}, {'cache': 'local', 'checker': 'ipintel.check', 'limit': 0.99}, {'geo_record': 'ato', 'geo_db': 'GeoLite2-City.mmdb', 'subdivision': 'Republic of Crimea', 'checker': 'geo.check'}], 'checker': 'agregate.logical_or'}], 'checker': 'agregate.logical_and'}}
  426. CITY24_TERMINAL = 'city24_terminal'
  427. COLLECTORS_COUNT = 3
  428. ALLOWED_INCLUDE_ROOTS = []
  429. ASSETS_UPDATER = 'timestamp'
  430. YEAR_MONTH_FORMAT = 'F Y'
  431. AUTH_USER_MODEL = 'authentication.User'
  432. DATA_CHECK_BACKENDS = ['loany.libs.user_data_check.backends.bki_scoring_backend.BkiScoringBackend']
  433. DEFAULT_TABLESPACE = ''
  434. SECURE_HSTS_SECONDS = 0
  435. SESSION_EXPIRE_AT_BROWSER_CLOSE = True
  436. PROJECT_NAME = 'loany'
  437. MEDIA_ROOT = '/loany/loany/media/'
  438. SESSION_CACHE_ALIAS = 'default'
  439. DEBUG_TOOLBAR_EXT_CONFIG = {'LOG_DIR': '/loany/loany/var/debug_toolbar', 'VALUE_DELIMITER': ';'}
  440. COLLECTORS_DEBT_DISTRIBUTION = [Decimal('0.5'), Decimal('0.299999999999999988897769753748434595763683319091796875'), Decimal('0.200000000000000011102230246251565404236316680908203125')]
  441. BKI_SERVICE_ROOT_URL = 'http://10.0.1.5'
  442. PAGE_LANGUAGES = ('uk', 'Українська')
  443. AUTH_PASSWORD_VALIDATORS = '********************'
  444. JS_REVERSE_SITE_JS_VAR_NAME = 'SiteUrls'
  445. CHECK_UNIQUE_IPN = True
  446. ADMIN_AJAX_URL_PREFIX = '^admin/funct/ajax/'
  447. BANK_ID_CODE_TEMPLATE = 'https://{domain}/DataAccessService/das/authorize?response_type=code&client_id={client_id}{additional_params}&redirect_uri={redirect_url}'
  448. DATABASE_ROUTERS = []
  449. SECURE_REDIRECT_EXEMPT = []
  450. CSRF_COOKIE_HTTPONLY = False
  451. COLLECTORS_DEBT_ASSIGNMENT_COUNT = 3
  452. DEFAULT_INDEX_TABLESPACE = ''
  453. ROOT_URLCONF = 'loany.urls'
  454. RSS_READER_WORKERS = {0: {'filter': ['content.has_link', 'content.has_title', 'content.has_summary', 'unique.by_id', 'unique.by_global_link', 'unique.by_global_title', 'content.remove_summary_tags'], 'target': ['django_rss_reader.helpers.db_writer']}}
  455. CACHE_MIDDLEWARE_ALIAS = 'default'
  456. DATABASES = {'default': {'HOST': '127.0.0.1', 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'CONN_MAX_AGE': 0, 'PASSWORD': '********************', 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'USER': 'loany', 'OPTIONS': {}, 'NAME': 'loany_db', 'PORT': '5432', 'TIME_ZONE': None}}
  457. DEBUG_TOOLBAR_PATCH_SETTINGS = False
  458. SITE_AJAX_URL_PREFIX = '^funct/ajax/'
  459. TEMPLATE_CONTEXT_PROCESSORS = ['django.contrib.auth.context_processors.auth', 'django.template.context_processors.debug', 'django.template.context_processors.i18n', 'django.template.context_processors.media', 'django.template.context_processors.static', 'django.template.context_processors.tz', 'django.contrib.messages.context_processors.messages']
  460. ASSETS_MANIFEST = 'cache'
  461. JS_REVERSE_TIMEOUT = 36000
  462. DEFAULT_FROM_EMAIL = 'webmaster@localhost'
  463. LOCALE_PATHS = ['/loany/loany/templates/admin/locale', '/loany/loany/libs/menu_helpers/locale']
  464. TEMPLATE_DEBUG = False
  465. SECURE_SSL_REDIRECT = False
  466. LANGUAGE_COOKIE_PATH = '/'
  467. LOGGING = {'loggers': {'django.request': {'level': 'ERROR', 'propagate': False, 'handlers': ['logfile']}, 'loany': {'level': 'DEBUG', 'propagate': True, 'handlers': ['console', 'logfile']}, 'django': {'level': 'ERROR', 'propagate': True, 'handlers': ['logfile', 'sentry']}}, 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}}, 'formatters': {'verbose': {'format': '[%(asctime)s] %(levelname)s [%(name)s:%(module)s:%(lineno)s] %(message)s', 'datefmt': '%d/%b/%Y %H:%M:%S'}, 'simple': {'format': '%(levelname)s %(asctime)s %(module)s %(message)s'}}, 'version': 1, 'handlers': {'console': {'class': 'logging.StreamHandler', 'level': 'DEBUG', 'formatter': 'simple'}, 'null': {'class': 'logging.NullHandler', 'level': 'DEBUG'}, 'sentry': {'class': 'raven.contrib.django.raven_compat.handlers.SentryHandler', 'level': 'ERROR'}, 'logfile': {'class': 'logging.handlers.RotatingFileHandler', 'maxBytes': 500000, 'backupCount': 10, 'level': 'DEBUG', 'formatter': 'verbose', 'filename': 'loany/var/error_log.log'}}, 'disable_existing_loggers': False}
  468. SESSION_COOKIE_HTTPONLY = True
  469. JS_REVERSE_COCKPIT_JS_VAR_NAME = 'CockpitUrls'
  470. SETTINGS_MODULE = 'loany.settings'
  471. USER_MODEL_NAME = 'User'
  472. BANK_ID_DATA_PAYLOAD = {'documents': [{'fields': ['series', 'number', 'issue', 'dateIssue', 'dateExpiration', 'issueCountryIso2', 'dateModification'], 'type': 'passport'}, {'fields': ['series', 'number', 'issue', 'dateIssue', 'dateExpiration', 'issueCountryIso2', 'dateModification'], 'type': 'zpassport'}], 'fields': ['firstName', 'middleName', 'lastName', 'phone', 'inn', 'clId', 'clIdText', 'birthDay', 'email', 'sex', 'resident', 'dateModification'], 'addresses': [{'fields': ['country', 'state', 'area', 'city', 'street', 'houseNo', 'flatNo', 'dateModification'], 'type': 'factual'}, {'fields': ['country', 'state', 'area', 'city', 'street', 'houseNo', 'flatNo', 'dateModification'], 'type': 'birth'}], 'scans': [{'fields': ['link', 'dateCreate', 'extension', 'dateModification'], 'type': 'passport'}, {'fields': ['link', 'dateCreate', 'extension', 'dateModification'], 'type': 'zpassport'}, {'fields': ['link', 'dateCreate', 'extension', 'dateModification'], 'type': 'inn'}, {'fields': ['link', 'dateCreate', 'extension', 'dateModification'], 'type': 'personalPhoto'}], 'type': 'physical'}
  473. DEBUG_TOOLBAR_CONFIG = {'SHOW_TOOLBAR_CALLBACK': 'debug_toolbar.middleware.show_toolbar'}
  474. FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
  475. BANK_ID_SSL_VERIFY = False
  476. USER_PERMISSION_FULL_MANAGEMENT = True
  477. WSGI_APPLICATION = 'loany.wsgi.application'
  478.  
  479.  
  480. You're seeing this error because you have DEBUG = True in your
  481. Django settings file. Change that to False, and Django will
  482. display a standard page generated by the handler for this status code.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top