daily pastebin goal
31%
SHARE
TWEET

Untitled

KudinovFedor Dec 29th, 2016 119 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. MultipleObjectsReturned at /funct/ajax/save_profile/
  2. get() returned more than one UserBlock -- it returned 4!
  3.  
  4. Request Method: POST
  5. Request URL: http://138.201.244.18:8000/funct/ajax/save_profile/
  6. Django Version: 1.9.4
  7. Python Executable: /root/loany/loany/bin/python
  8. Python Version: 3.5.2
  9. Python Path: ['/root/loany/web', '/root/loany/loany/lib/python35.zip', '/root/loany/loany/lib/python3.5', '/root/loany/loany/lib/python3.5/plat-x86_64-linux-gnu', '/root/loany/loany/lib/python3.5/lib-dynload', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-x86_64-linux-gnu', '/root/loany/loany/lib/python3.5/site-packages', '/root/loany/web']
  10. Server time: Чт, 29 Гру 2016 14:24:20 +0200
  11. Installed Applications:
  12. ('loany.apps.authentication',
  13.  'django.contrib.admin',
  14.  'django.contrib.auth',
  15.  'django.contrib.contenttypes',
  16.  'django.contrib.sessions',
  17.  'django.contrib.messages',
  18.  'django.contrib.staticfiles',
  19.  'django_js_reverse',
  20.  'django_assets',
  21.  'django_extensions',
  22.  'loany.apps.dashboard',
  23.  'loany.apps.client_site',
  24.  'loany.apps.user_profile',
  25.  'loany.apps.documents',
  26.  'loany.apps.loan',
  27.  'loany.apps.bank_card',
  28.  'loany.apps.bankid',
  29.  'loany.apps.payments',
  30.  'smart_docs',
  31.  'loany.libs.secure',
  32.  'loany.libs.mobile_dialers',
  33.  'sys_notifications',
  34.  'loany.libs.notifications',
  35.  'debug_toolbar',
  36.  'debug_toolbar_ext',
  37.  'loany.libs',
  38.  'tempometry',
  39.  'email_sender',
  40.  'ckeditor',
  41.  'sms_sender',
  42.  'data_check',
  43.  'loany.libs.user_data_check',
  44.  'loany.libs.bki_service',
  45.  'loan_core',
  46.  'loan_core.backends.quick_loan',
  47.  'loan_core.backends.smart_loan',
  48.  'user_permissions',
  49.  'requisites',
  50.  'paybox',
  51.  'paybox_liqpay',
  52.  'paybox_privat_terminal',
  53.  'datatables_view_helpers')
  54. Installed Middleware:
  55. ('django.contrib.sessions.middleware.SessionMiddleware',
  56.  'debug_toolbar_ext.middleware.DebugToolbarExtMiddleware',
  57.  'django.middleware.locale.LocaleMiddleware',
  58.  'django.middleware.common.CommonMiddleware',
  59.  'django.middleware.csrf.CsrfViewMiddleware',
  60.  'django.contrib.auth.middleware.AuthenticationMiddleware',
  61.  'django.contrib.messages.middleware.MessageMiddleware',
  62.  'django.middleware.clickjacking.XFrameOptionsMiddleware',
  63.  'django.middleware.security.SecurityMiddleware',
  64.  'loany.libs.secure.SecureBaseMiddleware.SecureBaseMiddleware',
  65.  'loany.apps.user_profile.UserCheckMiddleware.UserCheckMiddleware')
  66.  
  67.  
  68. Traceback:  
  69.  
  70. File "/root/loany/loany/lib/python3.5/site-packages/django/core/handlers/base.py" in get_response
  71.   149.                     response = self.process_exception_by_middleware(e, request)
  72.  
  73. File "/root/loany/loany/lib/python3.5/site-packages/django/core/handlers/base.py" in get_response
  74.   147.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
  75.  
  76. File "/root/loany/web/loany/apps/authentication/decorators.py" in inner
  77.   52.             return func(request, *args, **kwargs)
  78.  
  79. File "/root/loany/web/loany/apps/authentication/decorators.py" in inner
  80.   90.             return func(request, *args, **kwargs)
  81.  
  82. File "/root/loany/loany/lib/python3.5/site-packages/django/utils/decorators.py" in _wrapped_view
  83.   149.                     response = view_func(request, *args, **kwargs)
  84.  
  85. File "/root/loany/web/loany/apps/user_profile/views.py" in ajax_save_profile
  86.   204.     block_info = secure_service.get_end_date('loan_request', request.user.id)
  87.  
  88. File "/root/loany/web/loany/libs/secure/service.py" in get_end_date
  89.   219.             block = self.get_blocks_by_subject(subject).get(action_type__alias=action_type)
  90.  
  91. File "/root/loany/loany/lib/python3.5/site-packages/django/db/models/query.py" in get
  92.   391.             (self.model._meta.object_name, num)
  93.  
  94. Exception Type: MultipleObjectsReturned at /funct/ajax/save_profile/
  95. Exception Value: get() returned more than one UserBlock -- it returned 4!
  96. Request information:
  97. GET: No GET data
  98.  
  99. POST:
  100. data = '{"data":{"general_data_form":{"last_name":"Оод","first_name":"Од","middle_name":"Дло","birth_date":"05.07.1990","sex_type_id":"1","ipn":"3305817075","personal_mobile":"+380662983408","personal_email":"9@mail.ru","martial_status_id":"4","martial_children_count":"","contact_person_full_name":"Лорлор Лр Ло","contact_person_mobile":"+380630989765","education_type_id":"1","employment_type_id":"6"},"work_place_form":{"income":"6543"},"reg_address_form":{"postcode":"23456","region":"Вінницька","district":"Мурованокуриловецький","locality":"Знаменівка","street":"вул. Колгоспна","house":"87","housing":"","apartment":""},"acc_address_form":{"postcode":"23456","region":"Вінницька","district":"Мурованокуриловецький","locality":"Знаменівка","street":"вул. Колгоспна","house":"87","housing":"","apartment":""},"passport_form":{"series":"РП","number":"345678","issued_by":"одлод дло лд","issued_date":"04.02.2000"}}}'
  101.  
  102. FILES:
  103. avatar = <TemporaryUploadedFile: blob.png (image/png)>
  104. passport_photo_page = <TemporaryUploadedFile: Koala.jpg (image/jpeg)>
  105. passport_registration_page = <TemporaryUploadedFile: Lighthouse.jpg (image/jpeg)>
  106. passport_first_page = <TemporaryUploadedFile: Koala.jpg (image/jpeg)>
  107. ipn = <TemporaryUploadedFile: Koala.jpg (image/jpeg)>
  108.  
  109. COOKIES:
  110. sessionid = '.eJxVjMEKgzAQRP9lzyVkrTHSY6HfETZxQ4I2ShMPIv67DXhoYU7zZt4OhtYSzJr5Y-IAD0BUcPttLbmRU0XTTGkTtCxZVMypREclzklcG_F6U5ye1-HPEiiHr8IPWjvJqO9Nj8pq5VsrlXRc0xH6rmFGz3CcZLY0Hg:1cMZia:_ce4QLEcFBVDb87ZY3ROfqpoiH0'
  111. csrftoken = 'nxgI8meV4AxPM6wfJwp7RrX3v1LAjHGw'
  112.  
  113. META:
  114. HTTP_ORIGIN = 'http://138.201.244.18:8000'
  115. SERVER_PORT = '8000'
  116. wsgi.multiprocess = False
  117. REQUEST_METHOD = 'POST'
  118. CONTENT_TYPE = 'multipart/form-data; boundary=----WebKitFormBoundaryA7jkYOAns8WXxrHu'
  119. CONTENT_LENGTH = '2921109'
  120. SERVER_PROTOCOL = 'HTTP/1.1'
  121. wsgi.multithread = True
  122. HTTP_ACCEPT = '*/*'
  123. PATH_INFO = '/funct/ajax/save_profile/'
  124. wsgi.input = <_io.BufferedReader name=8>
  125. CSRF_COOKIE = 'nxgI8meV4AxPM6wfJwp7RrX3v1LAjHGw'
  126. HTTP_HOST = '138.201.244.18:8000'
  127. HTTP_CONNECTION = 'keep-alive'
  128. QUERY_STRING = ''
  129. wsgi.version =
  130. SCRIPT_NAME = ''
  131. HTTP_COOKIE = 'sessionid=.eJxVjMEKgzAQRP9lzyVkrTHSY6HfETZxQ4I2ShMPIv67DXhoYU7zZt4OhtYSzJr5Y-IAD0BUcPttLbmRU0XTTGkTtCxZVMypREclzklcG_F6U5ye1-HPEiiHr8IPWjvJqO9Nj8pq5VsrlXRc0xH6rmFGz3CcZLY0Hg:1cMZia:_ce4QLEcFBVDb87ZY3ROfqpoiH0; csrftoken=nxgI8meV4AxPM6wfJwp7RrX3v1LAjHGw'
  132. HTTP_USER_AGENT = 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36'
  133. HTTP_X_CSRFTOKEN = 'nxgI8meV4AxPM6wfJwp7RrX3v1LAjHGw'
  134. HTTP_X_REQUESTED_WITH = 'XMLHttpRequest'
  135. REMOTE_HOST = ''
  136. SERVER_SOFTWARE = 'WSGIServer/0.2'
  137. PATH = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
  138. RUN_MAIN = 'true'
  139. GATEWAY_INTERFACE = 'CGI/1.1'
  140. HTTP_REFERER = 'http://138.201.244.18:8000/profile/'
  141. CSRF_COOKIE_USED = True
  142. HTTP_ACCEPT_LANGUAGE = 'uk-UA,uk;q=0.8,ru;q=0.6,en-US;q=0.4,en;q=0.2'
  143. DJANGO_SETTINGS_MODULE = 'loany.settings.dev'
  144. REMOTE_ADDR = '92.60.190.140'
  145. TZ = 'Europe/Kiev'
  146. wsgi.url_scheme = 'http'
  147. HTTP_ACCEPT_ENCODING = 'gzip, deflate'
  148. SERVER_NAME = 'Ubuntu-1604-xenial-64-minimal'
  149. LANG = 'en_US.UTF-8'
  150. wsgi.errors = <_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'>
  151. wsgi.file_wrapper = ''
  152. wsgi.run_once = False
  153.  
  154. Settings:
  155. Using settings module loany.settings.dev
  156. SECURE_SSL_HOST = None
  157. DEBUG_TOOLBAR_EXT_CONFIG = {'VALUE_DELIMITER': ';', 'LOG_DIR': '/root/loany/web/loany/var/debug_toolbar'}
  158. DEFAULT_CONTENT_TYPE = 'text/html'
  159. FIXTURE_DIRS = []
  160. TEST_RUNNER = 'django.test.runner.DiscoverRunner'
  161. SESSION_COOKIE_PATH = '/'
  162. PROJECT_NAME = 'loany'
  163. ASSETS_AUTO_BUILD = True
  164. AJAX_URL_PREFIX = 'funct/ajax/'
  165. BKI_SERVICE_SIMULATION = True
  166. LOGS_DIR = '/tmp'
  167. BLOCK_PERIOD_FOREVER = 2147483647
  168. ALLOWED_INCLUDE_ROOTS = []
  169. DEBUG = True
  170. PAYBOX_BACKENDS = {'_default': {'root_url': 'http://loansinfo.com.ua'}, 'liqpay': {'currency': 'UAH', 'sandbox': True, 'public_key': 'i82874002056', 'private_key': 'fhPpTszoFdYyHORHbyMMx5ZL7A2lxOy9jYhmA4oj'}, 'privat_terminal': {'data_providers': {'check': 'loany.apps.loan.terminal.privat.process_check', 'pay': 'loany.apps.loan.terminal.privat.process_pay', 'search': 'loany.apps.loan.terminal.privat.process_search', 'upload': 'loany.apps.loan.terminal.privat.process_upload'}}}
  171. JS_REVERSE_ADMIN_SITE_JS_VAR_NAME = 'AdminUrls'
  172. LOGIN_REDIRECT_URL = '/accounts/profile/'
  173. CELERY_ACCEPT_CONTENT = ['json']
  174. CACHES = {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
  175. LOGGING = {'handlers': {'file': {'filename': 'loany/var/error.log', 'class': 'logging.FileHandler', 'formatter': 'simple', 'level': 'DEBUG'}}, 'version': 1, 'formatters': {'simple': {'format': '%(levelname)s %(asctime)s %(module)s %(message)s'}}, 'loggers': {'django': {'handlers': ['file'], 'propagate': False, 'level': 'ERROR'}}, 'disable_existing_loggers': False}
  176. MEDIA_URL = '/media/'
  177. SETTINGS_MODULE = 'loany.settings.dev'
  178. CELERY_RESULT_BACKEND = 'rpc://'
  179. TEMPLATES = [{'DIRS': ['/root/loany/web/loany/templates/'], '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.loan.context_processors.get_loans_settings', 'loany.libs.menu_helpers.context_processors.get_dynamic_menu', 'requisites.context_processors.company_requisites_processor']}, 'APP_DIRS': True}]
  180. BANK_ID_TEST_DECRYPTED_DATA = '/root/loany/web/loany/apps/bankid/tests/decrypted_data.json'
  181. BASE_DIR = '/root/loany/web/loany'
  182. BANK_ID_TEST_ENCRYPTED_DATA = '/root/loany/web/loany/apps/bankid/tests/encrypted_data.json'
  183. SECURE_HSTS_INCLUDE_SUBDOMAINS = False
  184. USE_ETAGS = False
  185. USE_I18N = True
  186. TEMPLATE_DIRS = []
  187. AUTH_PASSWORD_VALIDATORS = '********************'
  188. FORCE_SCRIPT_NAME = None
  189. BLOCK_PERIOD_SCORING_TEMP = 7776000
  190. CSRF_COOKIE_NAME = 'csrftoken'
  191. BANK_ID_AUTH_DOMAIN = 'bankid.privatbank.ua'
  192. SESSION_EXPIRE_AT_BROWSER_CLOSE = True
  193. EMAIL_HOST_PASSWORD = '********************'
  194. FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
  195. MEDIA_ROOT = '/root/loany/web/loany/media/'
  196. 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']
  197. VERIFY_CARD_ATTEMPTS = 3
  198. JS_REVERSE_JS_VAR_NAME = 'AdminUrls'
  199. LANGUAGE_COOKIE_NAME = '_local_'
  200. BIND_CARD_TIMEOUT = 300
  201. ADMINS = []
  202. SESSION_COOKIE_HTTPONLY = True
  203. EMAIL_SSL_CERTFILE = None
  204. DEFAULT_INDEX_TABLESPACE = ''
  205. SESSION_COOKIE_DOMAIN = None
  206. DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
  207. DJANGO_TOOLBAR_URL_PREFIX = 'B5611733-4715-45EB-B701-4092EE6CFA8A'
  208. DISALLOWED_USER_AGENTS = []
  209. EMAIL_HOST_USER = ''
  210. THOUSAND_SEPARATOR = ','
  211. CSRF_COOKIE_PATH = '/'
  212. DEBUG_TOOLBAR_CONFIG = {'SHOW_TOOLBAR_CALLBACK': 'debug_toolbar.middleware.show_toolbar'}
  213. ASSETS_URL_EXPIRE = None
  214. CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
  215. BANK_ID_DATA_PAYLOAD = {'fields': ['firstName', 'middleName', 'lastName', 'phone', 'inn', 'clId', 'clIdText', 'birthDay', 'email', 'sex', 'resident', 'dateModification'], 'documents': [{'fields': ['series', 'number', 'issue', 'dateIssue', 'dateExpiration', 'issueCountryIso2', 'dateModification'], 'type': 'passport'}, {'fields': ['series', 'number', 'issue', 'dateIssue', 'dateExpiration', 'issueCountryIso2', 'dateModification'], 'type': 'zpassport'}], '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', 'addresses': [{'fields': ['country', 'state', 'area', 'city', 'street', 'houseNo', 'flatNo', 'dateModification'], 'type': 'factual'}, {'fields': ['country', 'state', 'area', 'city', 'street', 'houseNo', 'flatNo', 'dateModification'], 'type': 'birth'}]}
  216. BANK_ID_CLIENT_ID = '01b2046e-b7c7-450b-8216-bfdd93240f5d'
  217. DEBUG_PROPAGATE_EXCEPTIONS = False
  218. EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
  219. EMAIL_USE_SSL = False
  220. INTERNAL_IPS = ['127.0.0.1', '10.0.2.2']
  221. ASSETS_MANIFEST = 'cache'
  222. JS_REVERSE_COCKPIT_JS_VAR_NAME = 'CockpitUrls'
  223. ASSETS_URL_MAPPING = {}
  224. APPEND_SLASH = True
  225. 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']
  226. MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
  227. SECURE_REDIRECT_EXEMPT = []
  228. COMPANY_MFO = '300346'
  229. WSGI_APPLICATION = 'loany.wsgi.application'
  230. SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
  231. CACHE_MIDDLEWARE_ALIAS = 'default'
  232. SECURE_HSTS_SECONDS = 0
  233. COMPANY_OKPO = '39584637'
  234. LANGUAGE_COOKIE_PATH = '/'
  235. FORMAT_MODULE_PATH = None
  236. USER_MODEL_APP = 'authentication'
  237. MONTH_DAY_FORMAT = 'F j'
  238. DEFAULT_CHARSET = 'utf-8'
  239. REFILL_ATTEMPTS = 3
  240. AUTH_USER_MODEL = 'authentication.User'
  241. SMART_DOCS_BASE_TEMPLATE = 'admin/base/base.html'
  242. USE_TZ = True
  243. INSTALLED_APPS =
  244. CACHE_MIDDLEWARE_SECONDS = 600
  245. ASSETS_VERSIONS = 'hash'
  246. AUTHENTICATION_BACKENDS = 'loany.apps.authentication.backend.EmailBackend'
  247. LOGGING_CONFIG = 'logging.config.dictConfig'
  248. TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
  249. CSRF_COOKIE_AGE = 31449600
  250. SECURE_CONTENT_TYPE_NOSNIFF = False
  251. LANGUAGES = ('uk', 'Українська')
  252. SESSION_SERIALIZER = 'loany.libs.utils.session_serializer.HockedJSONSerializer'
  253. CACHE_FILE_MODE = None
  254. BANK_ID_DATA_GATHER_DOMAIN_SPECIAL = None
  255. SECURE_PROXY_SSL_HEADER = None
  256. FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
  257. COMPANY_SEARCH_BACKEND = 'igk_group'
  258. MANAGERS = []
  259. DECIMAL_SEPARATOR = '.'
  260. STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
  261. CKEDITOR_CONFIGS = {'default': {'toolbar': 'Custom', 'toolbar_Custom': [['Bold', 'Italic', 'Underline'], ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'], ['Link', 'Unlink'], ['RemoveFormat', 'Source']]}}
  262. FIRST_DAY_OF_WEEK = 0
  263. 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']
  264. SESSION_ENGINE = 'django.contrib.sessions.backends.signed_cookies'
  265. STATIC_ROOT = '/root/loany/web/loany/var/static/'
  266. STATICFILES_DIRS =
  267. DATABASE_ROUTERS = []
  268. SMS_SENDER_EXTENDED_MODE = False
  269. DATA_CHECK_BACKENDS = ['loany.libs.user_data_check.backends.bki_scoring_backend.BkiScoringBackend']
  270. COMPANY_ACCOUNT = '26501014661901'
  271. BANK_ID_DATA_GATHER_DOMAIN = 'bankid.privatbank.ua'
  272. SESSION_COOKIE_SECURE = False
  273. BANK_ID_CODE_TEMPLATE = 'https://{domain}/DataAccessService/das/authorize?response_type=code&client_id={client_id}&redirect_uri={redirect_url}'
  274. USER_MODEL_NAME = 'User'
  275. MIGRATION_MODULES = {}
  276. STATIC_URL = '/static/'
  277. LANGUAGE_CODE = 'uk'
  278. COMPANY_PRIVATTERMINAL_CODE = '39584637'
  279. LOAN_CORE_LOAN_SCHEDULE_MODEL = 'loan.UserLoanSchedule'
  280. TEMPLATE_LOADERS = ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader']
  281. EMAIL_TIMEOUT = None
  282. BROKER_URL = 'amqp://'
  283. SESSION_COOKIE_AGE = 10000
  284. ASSETS_LOAD_PATH = ['loany/static', 'loany/apps/authentication/static', 'loany/apps/user_profile/static']
  285. ASSETS_UPDATER = 'timestamp'
  286. CELERY_TIMEZONE = 'Europe/Kiev'
  287. DEBUG_TOOLBAR_PATCH_SETTINGS = False
  288. EMAIL_PORT = 25
  289. BANK_ID_DATA_TEMPLATE = 'https://{domain}/ResourceService/checked/data'
  290. LOAN_CORE_REQUEST_MODEL = 'loan.UserLoanRequest'
  291. DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
  292. DATABASES = {'default': {'HOST': '127.0.0.1', 'AUTOCOMMIT': True, 'PORT': '5432', 'TEST': {'NAME': None, 'MIRROR': None, 'COLLATION': None, 'CHARSET': None}, 'TIME_ZONE': None, 'PASSWORD': '********************', 'ATOMIC_REQUESTS': False, 'OPTIONS': {}, 'NAME': 'loany_db', 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'USER': 'loany'}}
  293. FILE_UPLOAD_TEMP_DIR = None
  294. RESOLVER = <django_assets.env.DjangoResolver object at 0x7f156471acc0>
  295. BANK_ID_CERT = '/root/loany/web/loany/settings/bank_id_cert.rst'
  296. NUMBER_GROUPING = 0
  297. LOAN_CORE_LOAN_DEBT_MODEL = 'loan.UserLoanDebt'
  298. CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
  299. LOAN_CORE_LOAN_SCHEDULE_RECORD_MODEL = 'loan.UserLoanScheduleRecord'
  300. FILE_CHARSET = 'utf-8'
  301. LANGUAGE_COOKIE_DOMAIN = None
  302. USER_MODEL = 'authentication.User'
  303. ROOT_URLCONF = 'loany.urls'
  304. USE_X_FORWARDED_PORT = False
  305. FILE_UPLOAD_PERMISSIONS = None
  306. NOTIFICATIONS_ADMIN_ENABLED = False
  307. USER_PERMISSION_FULL_MANAGEMENT = True
  308. NOTIFICATION_SENDERS =
  309. TEMPLATE_STRING_IF_INVALID = ''
  310. SESSION_CACHE_ALIAS = 'default'
  311. DEFAULT_FROM_EMAIL = 'webmaster@localhost'
  312. CELERY_ENABLE_UTC = True
  313. CONFIRM_CODE_TIMEOUT = 1440
  314. SECURE_SSL_REDIRECT = False
  315. COMPANY_NAME = 'Loany'
  316. CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
  317. TEST_NON_SERIALIZED_APPS = []
  318. HTTP_HOST = 'http://loansinfo.com.ua'
  319. DATA_CHECK_USER_DATA = 'user_data_check.DataCheckUserData'
  320. EMAIL_SUBJECT_PREFIX = '[Django] '
  321. CELERY_RESULT_SERIALIZER = 'json'
  322. PASSWORD_RESET_TIMEOUT_DAYS = '********************'
  323. ASSETS_CACHE = True
  324. LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
  325. DEBUG_TOOLBAR_PANELS = ['debug_toolbar.panels.timer.TimerPanel', 'debug_toolbar.panels.sql.SQLPanel', 'debug_toolbar_ext.panels.file_log.FileLogPanel']
  326. CELERY_TASK_SERIALIZER = 'json'
  327. SECURE_BROWSER_XSS_FILTER = False
  328. JS_REVERSE_SITE_JS_VAR_NAME = 'SiteUrls'
  329. SITE_URL_PREFIX = '^'
  330. ASSETS_ROOT = '/root/loany/web/loany/var/prestatic'
  331. ADMIN_URL_PREFIX = '^admin/'
  332. PREPEND_WWW = False
  333. CSRF_TRUSTED_ORIGINS = []
  334. MIDDLEWARE_CLASSES =
  335. SESSION_SAVE_EVERY_REQUEST = False
  336. SITE_AJAX_URL_PREFIX = '^funct/ajax/'
  337. PASSWORD_HASHERS = '********************'
  338. LOGOUT_URL = '/accounts/logout/'
  339. USE_L10N = True
  340. ALLOWED_HOSTS = ['*']
  341. WKHTMLTOPDF_CMD = 'wkhtmltopdf'
  342. SERVER_EMAIL = 'root@localhost'
  343. LOAN_CORE_LOAN_PERIOD_MODEL = 'loan.UserLoanPeriod'
  344. SECRET_KEY = '********************'
  345. LANGUAGE_COOKIE_AGE = None
  346. TIME_FORMAT = 'P'
  347. 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}'
  348. EMAIL_SSL_KEYFILE = '********************'
  349. JS_REVERSE_TIMEOUT = 3600
  350. SMART_DOCS_ADMIN_ENABLED = False
  351. EMAIL_HOST = 'localhost'
  352. ASSETS_DEBUG = True
  353. BANK_ID_CLIENT_SECRET = '********************'
  354. LOAN_CORE_LOAN_MODEL = 'loan.UserLoan'
  355. DEFAULT_TABLESPACE = ''
  356. DATETIME_FORMAT = 'N j, Y, P'
  357. ADMIN_AJAX_URL_PREFIX = '^admin/funct/ajax/'
  358. USE_THOUSAND_SEPARATOR = False
  359. USE_X_FORWARDED_HOST = False
  360. CSRF_COOKIE_HTTPONLY = False
  361. CSRF_COOKIE_DOMAIN = None
  362. EMAIL_USE_TLS = False
  363. TIME_ZONE = 'Europe/Kiev'
  364. LOGIN_URL = '/accounts/login/'
  365. DATE_FORMAT = 'N j, Y'
  366. STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
  367. TEMPLATE_DEBUG = False
  368. SESSION_COOKIE_NAME = 'sessionid'
  369. USER_MODEL_STR = 'loany.apps.authentication.models.User'
  370. SESSION_FILE_PATH = None
  371. IGNORABLE_404_URLS = []
  372. DJANGO_ADMIN_URL_PREFIX = '^admin/built-in/'
  373. X_FRAME_OPTIONS = 'SAMEORIGIN'
  374. ABSOLUTE_URL_OVERRIDES = {}
  375. YEAR_MONTH_FORMAT = 'F Y'
  376. CSRF_COOKIE_SECURE = False
  377. LOCALE_PATHS = ['/root/loany/web/loany/templates/admin/locale', '/root/loany/web/loany/libs/menu_helpers/locale']
  378. SHORT_DATETIME_FORMAT = 'm/d/Y P'
  379. NOTIFICATION_USER_LIST = 'loany.libs.notifications.helpers.get_user_list'
  380. SILENCED_SYSTEM_CHECKS = []
  381. FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
  382. SHORT_DATE_FORMAT = 'm/d/Y'
  383. EMAIL_SENDER_EXTENDED_MODE = False
  384.  
  385.  
  386. You're seeing this error because you have DEBUG = True in your
  387. Django settings file. Change that to False, and Django will
  388. 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