Advertisement
Guest User

Untitled

a guest
Mar 14th, 2018
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.48 KB | None | 0 0
  1. ProgrammingError at /api/auth/registration/confirmation/
  2. column confirm_code_confirmationcodetype.name_uk does not exist
  3. LINE 1: ...ias", "confirm_code_confirmationcodetype"."name", "confirm_c...
  4. ^
  5. HINT: Perhaps you meant to reference the column "confirm_code_confirmationcodetype.name".
  6.  
  7.  
  8. Request Method: POST
  9. Request URL: http://forza-dev.kitway.com.ua/api/auth/registration/confirmation/
  10. Django Version: 1.11.10
  11. Python Executable: /usr/bin/python3
  12. Python Version: 3.6.3
  13. Python Path: ['/app', '/usr/bin', '/usr/lib/python36.zip', '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload', '/usr/lib/python3.6/site-packages']
  14. Server time: Ср, 14 Бер 2018 16:12:25 +0200
  15. Installed Applications:
  16. ['microfinance.apps.authentication',
  17. 'modeltranslation',
  18. 'corsheaders',
  19. 'django.contrib.admin',
  20. 'django.contrib.auth',
  21. 'django.contrib.contenttypes',
  22. 'django.contrib.sessions',
  23. 'django.contrib.messages',
  24. 'django.contrib.staticfiles',
  25. 'django_assets',
  26. 'django_js_reverse',
  27. 'django_cache_dependencies',
  28. 'django_extensions',
  29. 'openinghours',
  30. 'rosetta',
  31. 'rest_framework',
  32. 'rest_framework.authtoken',
  33. 'drf_yasg',
  34. 'rangefilter',
  35. 'ckeditor',
  36. 'rolepermissions',
  37. 'djcelery',
  38. 'smart_docs',
  39. 'sms_sender',
  40. 'fixtures_migrator',
  41. 'tempometry',
  42. 'ukrmail',
  43. 'paybox',
  44. 'paybox_liqpay',
  45. 'django_datatables_view_extensions',
  46. 'microfinance.libs',
  47. 'microfinance.apps.backoffice',
  48. 'microfinance.apps.user_profile',
  49. 'microfinance.apps.agent',
  50. 'microfinance.apps.documents',
  51. 'microfinance.apps.bank_card',
  52. 'microfinance.apps.company',
  53. 'microfinance.apps.system_secure',
  54. 'microfinance.apps.loan_core',
  55. 'microfinance.apps.loan_client',
  56. 'microfinance.apps.loan_backoffice',
  57. 'microfinance.apps.loan_config_rules',
  58. 'microfinance.libs.secure',
  59. 'microfinance.libs.bankid',
  60. 'microfinance.libs.notifications',
  61. 'microfinance.libs.confirm_code',
  62. 'behave_django',
  63. 'microfinance.libs.test_api',
  64. 'silk']
  65. Installed Middleware:
  66. ['silk.middleware.SilkyMiddleware',
  67. 'corsheaders.middleware.CorsMiddleware',
  68. 'django.middleware.security.SecurityMiddleware',
  69. 'django.contrib.sessions.middleware.SessionMiddleware',
  70. 'django.middleware.common.CommonMiddleware',
  71. 'django.middleware.csrf.CsrfViewMiddleware',
  72. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  73. 'django.contrib.messages.middleware.MessageMiddleware',
  74. 'django.middleware.clickjacking.XFrameOptionsMiddleware']
  75.  
  76.  
  77. Traceback:
  78.  
  79. File "/usr/lib/python3.6/site-packages/django/db/backends/utils.py" in execute
  80. 64. return self.cursor.execute(sql, params)
  81.  
  82.  
  83. The above exception (column confirm_code_confirmationcodetype.name_uk does not exist
  84. LINE 1: ...ias", "confirm_code_confirmationcodetype"."name", "confirm_c...
  85. ^
  86. HINT: Perhaps you meant to reference the column "confirm_code_confirmationcodetype.name".
  87. ) was the direct cause of the following exception:
  88.  
  89.  
  90.  
  91. File "/usr/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
  92. 41. response = get_response(request)
  93.  
  94. File "/usr/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  95. 187. response = self.process_exception_by_middleware(e, request)
  96.  
  97. File "/usr/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  98. 185. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  99.  
  100. File "/usr/lib/python3.6/site-packages/django/views/decorators/csrf.py" in wrapped_view
  101. 58. return view_func(*args, **kwargs)
  102.  
  103. File "/usr/lib/python3.6/site-packages/django/views/generic/base.py" in view
  104. 68. return self.dispatch(request, *args, **kwargs)
  105.  
  106. File "/usr/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
  107. 494. response = self.handle_exception(exc)
  108.  
  109. File "/usr/lib/python3.6/site-packages/rest_framework/views.py" in handle_exception
  110. 454. self.raise_uncaught_exception(exc)
  111.  
  112. File "/usr/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
  113. 491. response = handler(request, *args, **kwargs)
  114.  
  115. File "/app/microfinance/apps/authentication/views.py" in post
  116. 53. serializer.save()
  117.  
  118. File "/usr/lib/python3.6/site-packages/rest_framework/serializers.py" in save
  119. 214. self.instance = self.create(validated_data)
  120.  
  121. File "/app/microfinance/apps/authentication/serializers.py" in create
  122. 166. phone_confirmation = self.generate_code(phone)
  123.  
  124. File "/app/microfinance/apps/authentication/serializers.py" in generate_code
  125. 159. service = ConfirmCodeService(self.CODE_ALIAS, phone, user_id=user_id)
  126.  
  127. File "/app/microfinance/libs/confirm_code/service.py" in __init__
  128. 30. self.code_type = self.TYPE_MODEL.objects.get(alias=code_alias)
  129.  
  130. File "/usr/lib/python3.6/site-packages/django/db/models/manager.py" in manager_method
  131. 85. return getattr(self.get_queryset(), name)(*args, **kwargs)
  132.  
  133. File "/usr/lib/python3.6/site-packages/django/db/models/query.py" in get
  134. 374. num = len(clone)
  135.  
  136. File "/usr/lib/python3.6/site-packages/django/db/models/query.py" in __len__
  137. 232. self._fetch_all()
  138.  
  139. File "/usr/lib/python3.6/site-packages/django/db/models/query.py" in _fetch_all
  140. 1118. self._result_cache = list(self._iterable_class(self))
  141.  
  142. File "/usr/lib/python3.6/site-packages/django/db/models/query.py" in __iter__
  143. 53. results = compiler.execute_sql(chunked_fetch=self.chunked_fetch)
  144.  
  145. File "/usr/lib/python3.6/site-packages/silk/sql.py" in execute_sql
  146. 45. return self._execute_sql(*args, **kwargs)
  147.  
  148. File "/usr/lib/python3.6/site-packages/django/db/models/sql/compiler.py" in execute_sql
  149. 899. raise original_exception
  150.  
  151. File "/usr/lib/python3.6/site-packages/django/db/models/sql/compiler.py" in execute_sql
  152. 889. cursor.execute(sql, params)
  153.  
  154. File "/usr/lib/python3.6/site-packages/django/db/backends/utils.py" in execute
  155. 79. return super(CursorDebugWrapper, self).execute(sql, params)
  156.  
  157. File "/usr/lib/python3.6/site-packages/raven/contrib/django/client.py" in execute
  158. 112. return real_execute(self, sql, params)
  159.  
  160. File "/usr/lib/python3.6/site-packages/django/db/backends/utils.py" in execute
  161. 64. return self.cursor.execute(sql, params)
  162.  
  163. File "/usr/lib/python3.6/site-packages/django/db/utils.py" in __exit__
  164. 94. six.reraise(dj_exc_type, dj_exc_value, traceback)
  165.  
  166. File "/usr/lib/python3.6/site-packages/django/utils/six.py" in reraise
  167. 685. raise value.with_traceback(tb)
  168.  
  169. File "/usr/lib/python3.6/site-packages/django/db/backends/utils.py" in execute
  170. 64. return self.cursor.execute(sql, params)
  171.  
  172. Exception Type: ProgrammingError at /api/auth/registration/confirmation/
  173. Exception Value: column confirm_code_confirmationcodetype.name_uk does not exist
  174. LINE 1: ...ias", "confirm_code_confirmationcodetype"."name", "confirm_c...
  175. ^
  176. HINT: Perhaps you meant to reference the column "confirm_code_confirmationcodetype.name".
  177.  
  178. Request information:
  179. USER: AnonymousUser
  180.  
  181. GET: No GET data
  182.  
  183. POST: No POST data
  184.  
  185. FILES: No FILES data
  186.  
  187. COOKIES: No cookie data
  188.  
  189. META:
  190. CONTENT_LENGTH = '24'
  191. CONTENT_TYPE = 'application/json;charset=UTF-8'
  192. HTTP_ACCEPT = 'application/json, text/plain, */*'
  193. HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
  194. HTTP_ACCEPT_LANGUAGE = 'ru,uk-UA;q=0.8,uk;q=0.6,en-US;q=0.4,en;q=0.2'
  195. HTTP_CONNECTION = 'close'
  196. HTTP_HOST = 'forza-dev.kitway.com.ua'
  197. HTTP_ORIGIN = 'https://client.forza-dev.kitway.com.ua'
  198. HTTP_REFERER = 'https://client.forza-dev.kitway.com.ua/register/'
  199. HTTP_USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36'
  200. HTTP_X_FORWARDED_FOR = '77.120.243.5'
  201. HTTP_X_REAL_IP = '77.120.243.5'
  202. PATH_INFO = '/api/auth/registration/confirmation/'
  203. QUERY_STRING = ''
  204. RAW_URI = '/api/auth/registration/confirmation/'
  205. REMOTE_ADDR = '127.0.0.1'
  206. REMOTE_PORT = '39746'
  207. REQUEST_METHOD = 'POST'
  208. SCRIPT_NAME = ''
  209. SERVER_NAME = '127.0.0.1'
  210. SERVER_PORT = '8000'
  211. SERVER_PROTOCOL = 'HTTP/1.0'
  212. SERVER_SOFTWARE = 'gunicorn/19.7.1'
  213. gunicorn.socket = <socket.socket fd=9, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 8000), raddr=('127.0.0.1', 39746)>
  214. wsgi.errors = <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f1782471940>
  215. wsgi.file_wrapper = ''
  216. wsgi.input = <gunicorn.http.body.Body object at 0x7f1782471a58>
  217. wsgi.multiprocess = True
  218. wsgi.multithread = False
  219. wsgi.run_once = False
  220. wsgi.url_scheme = 'http'
  221. wsgi.version = '(1, 0)'
  222.  
  223. Settings:
  224. Using settings module microfinance.settings.staging
  225. ABSOLUTE_URL_OVERRIDES = {}
  226. ADMINS = []
  227. ADMIN_URL_PREFIX = '^admin/'
  228. ALLOWED_HOSTS = ['*']
  229. API_CACHING_TIMEOUT = '********************'
  230. API_URL_PREFIX = '********************'
  231. APPEND_SLASH = True
  232. ASSETS_AUTO_BUILD = True
  233. ASSETS_CACHE = True
  234. ASSETS_DEBUG = True
  235. ASSETS_LOAD_PATH = ['microfinance/apps/agent/static', 'microfinance/apps/authentication/static', 'microfinance/apps/backoffice/static', 'microfinance/apps/user_profile/static', 'microfinance/apps/bank_card/static', 'microfinance/static']
  236. ASSETS_MANIFEST = 'cache'
  237. ASSETS_ROOT = '/app/microfinance/var/static_build'
  238. ASSETS_UPDATER = 'timestamp'
  239. ASSETS_URL_EXPIRE = None
  240. ASSETS_URL_MAPPING = {}
  241. ASSETS_VERSIONS = 'hash'
  242. AUTHENTICATION_BACKENDS = "('microfinance.apps.authentication.backends.PhonePasswordBackend', 'microfinance.apps.authentication.backends.InnPasswordBackend', 'microfinance.apps.authentication.backends.PhoneCodeBackend', 'microfinance.apps.authentication.backends.EmailPasswordBackend')"
  243. AUTHORISATION_PHONE_CONFIRMATION_CODE_LENGTH = 4
  244. AUTH_PASSWORD_VALIDATORS = '********************'
  245. AUTH_USER_MODEL = 'authentication.User'
  246. BACKOFFICE_API_URL_PREFIX = '********************'
  247. BACKOFFICE_URL_PREFIX = '^backoffice/'
  248. BANKID_REDIRECT_URL = 'https://client.forza-dev.kitway.com.ua/profile/'
  249. BANK_ID_AUTH_DOMAIN = 'bankid.org.ua'
  250. BANK_ID_CERT = '/etc/app/bankid_cert.pem'
  251. BANK_ID_CLIENT_ID = 'f1e4f3a4-e4d8-428c-9e83-20dc96ed4034'
  252. BANK_ID_CLIENT_SECRET = '********************'
  253. BANK_ID_DATA_GATHER_DOMAIN_SPECIAL = 'biprocessing.org.ua'
  254. BASE_DIR = '/app/microfinance'
  255. BLOCK_PERIOD_INDEFINITE = 2147483647
  256. CACHES = {'default': {'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '127.0.0.1:11211'}}
  257. CACHE_FILE_MODE = None
  258. CACHE_MIDDLEWARE_ALIAS = 'default'
  259. CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
  260. CACHE_MIDDLEWARE_SECONDS = 600
  261. CELERY_BROKER_URL = 'amqp://'
  262. CELERY_ROUTES = {'microfinance.apps.loan_core.tasks.chech_loan_request': {'queue': 'celery'}, 'microfinance.libs.notifications.tasks.task_send_recently': {'queue': 'celery'}}
  263. CKEDITOR_CONFIGS = {'default': {'toolbar': 'Custom', 'toolbar_Custom': [['Undo', 'Redo', '-', 'Bold', 'Italic', 'Underline', '-', 'Link', 'Unlink', 'Anchor', '-', 'Format', '-', 'Maximize', '-', 'Table', '-', 'Image'], ['Font', 'FontSize'], ['TextColor', 'BGColor'], ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'], ['RemoveFormat', 'Source']]}, 'cms': {'toolbar': 'Advanced'}}
  264. CORS_ORIGIN_ALLOW_ALL = True
  265. CSRF_COOKIE_AGE = 31449600
  266. CSRF_COOKIE_DOMAIN = None
  267. CSRF_COOKIE_HTTPONLY = False
  268. CSRF_COOKIE_NAME = 'csrftoken'
  269. CSRF_COOKIE_PATH = '/'
  270. CSRF_COOKIE_SECURE = False
  271. CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
  272. CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
  273. CSRF_TRUSTED_ORIGINS = []
  274. CSRF_USE_SESSIONS = False
  275. DASHBOARD_STATS_HANDLERS = "('microfinance.apps.authentication.dashboard.UserProfileDash',)"
  276. DATABASES = {'default': {'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'microfinance_db', 'USER': 'microfinance', 'PASSWORD': '********************', 'HOST': '127.0.0.1', 'PORT': '5432', 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'OPTIONS': {}, 'TIME_ZONE': None, 'TEST': {'CHARSET': None, 'COLLATION': None, 'NAME': None, 'MIRROR': None}}}
  277. DATABASE_ROUTERS = []
  278. DATA_UPLOAD_MAX_MEMORY_SIZE = None
  279. DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
  280. DATETIME_FORMAT = '%d.%m.%Y %H:%M'
  281. 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']
  282. DATE_FORMAT = '%d.%m.%Y'
  283. 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']
  284. DEBUG = True
  285. DEBUG_PROPAGATE_EXCEPTIONS = False
  286. DECIMAL_SEPARATOR = '.'
  287. DEFAULT_CHARSET = 'utf-8'
  288. DEFAULT_CONTENT_TYPE = 'text/html'
  289. DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
  290. DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
  291. DEFAULT_FROM_EMAIL = 'webmaster@localhost'
  292. DEFAULT_INDEX_TABLESPACE = ''
  293. DEFAULT_PHONE_REGION_CODE = 'UA'
  294. DEFAULT_TABLESPACE = ''
  295. DISALLOWED_USER_AGENTS = []
  296. DJANGO_ADMIN_DEBUG = False
  297. EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
  298. EMAIL_HOST = 'localhost'
  299. EMAIL_HOST_PASSWORD = '********************'
  300. EMAIL_HOST_USER = ''
  301. EMAIL_PORT = 25
  302. EMAIL_SENDER_EXTENDED_MODE = False
  303. EMAIL_SSL_CERTFILE = None
  304. EMAIL_SSL_KEYFILE = '********************'
  305. EMAIL_SUBJECT_PREFIX = '[Django] '
  306. EMAIL_TIMEOUT = None
  307. EMAIL_USE_LOCALTIME = False
  308. EMAIL_USE_SSL = False
  309. EMAIL_USE_TLS = False
  310. FILE_CHARSET = 'utf-8'
  311. FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
  312. FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
  313. FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
  314. FILE_UPLOAD_PERMISSIONS = None
  315. FILE_UPLOAD_TEMP_DIR = None
  316. FIRST_DAY_OF_WEEK = 0
  317. FIXTURE_DIRS = []
  318. FORCE_SCRIPT_NAME = None
  319. FORMAT_MODULE_PATH = None
  320. FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
  321. HTTP_HOST = 'http://forza-dev.kitway.com.ua/'
  322. IGNORABLE_404_URLS = []
  323. INPUT_DATE_FORMAT = '%Y-%m-%d'
  324. INSTALLED_APPS = ['microfinance.apps.authentication', 'modeltranslation', 'corsheaders', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django_assets', 'django_js_reverse', 'django_cache_dependencies', 'django_extensions', 'openinghours', 'rosetta', 'rest_framework', 'rest_framework.authtoken', 'drf_yasg', 'rangefilter', 'ckeditor', 'rolepermissions', 'djcelery', 'smart_docs', 'sms_sender', 'fixtures_migrator', 'tempometry', 'ukrmail', 'paybox', 'paybox_liqpay', 'django_datatables_view_extensions', 'microfinance.libs', 'microfinance.apps.backoffice', 'microfinance.apps.user_profile', 'microfinance.apps.agent', 'microfinance.apps.documents', 'microfinance.apps.bank_card', 'microfinance.apps.company', 'microfinance.apps.system_secure', 'microfinance.apps.loan_core', 'microfinance.apps.loan_client', 'microfinance.apps.loan_backoffice', 'microfinance.apps.loan_config_rules', 'microfinance.libs.secure', 'microfinance.libs.bankid', 'microfinance.libs.notifications', 'microfinance.libs.confirm_code', 'behave_django', 'microfinance.libs.test_api', 'silk']
  325. INTERNAL_IPS = []
  326. JS_REVERSE_INCLUDE_ONLY_NAMESPACES = ['authentication', 'authentication-api', 'backoffice', 'backoffice-api', 'user-profile', 'user-profile-api', 'agent', 'agent-api', 'loan', 'loan-api', 'system-secure', 'system-secure-api', 'geo-service-api', 'loan-client-api']
  327. JS_REVERSE_INCLUDE_ONLY_NAMESPACES_BACKOFFICE = ['authentication', 'authentication-api', 'backoffice', 'backoffice-api', 'user-profile', 'user-profile-api', 'agent', 'agent-api', 'loan', 'loan-api', 'system-secure', 'system-secure-api', 'geo-service-api', 'loan-client-api']
  328. JS_REVERSE_INCLUDE_ONLY_NAMESPACES_CLIENT = ['client-authentication-api', 'client-user-profile-api', 'client-company-api', 'bank_id', 'client-documents-api', 'client-geo-service-api', 'client-loan-api', 'client-bank-card-api']
  329. JS_REVERSE_JS_VAR_NAME = 'Urls'
  330. LANGUAGES = "(('uk', 'Українська'), ('ru', 'Русский'))"
  331. LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
  332. LANGUAGE_CODE = 'uk'
  333. LANGUAGE_COOKIE_AGE = None
  334. LANGUAGE_COOKIE_DOMAIN = None
  335. LANGUAGE_COOKIE_NAME = '_locale_'
  336. LANGUAGE_COOKIE_PATH = '/'
  337. LOCALE_PATHS = ['/app/microfinance/locale']
  338. LOGGING = {'version': 1, 'disable_existing_loggers': False, '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'}}, 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}}, 'handlers': {'null': {'level': 'DEBUG', 'class': 'logging.NullHandler'}, 'error_file': {'level': 'ERROR', 'class': 'logging.handlers.RotatingFileHandler', 'filename': 'microfinance/var/logs/error.log', 'maxBytes': 500000, 'backupCount': 5, 'formatter': 'verbose'}, 'debug_file': {'level': 'DEBUG', 'class': 'logging.handlers.RotatingFileHandler', 'filename': 'microfinance/var/logs/debug.log', 'maxBytes': 500000, 'backupCount': 10, 'formatter': 'verbose'}, 'sentry': {'level': 'ERROR', 'class': 'raven.contrib.django.raven_compat.handlers.SentryHandler'}, 'requests_file': {'level': 'INFO', 'class': 'logging.handlers.RotatingFileHandler', 'filename': 'microfinance/var/logs/requests.log', 'maxBytes': 500000, 'backupCount': 10, 'formatter': 'verbose'}, 'console': {'level': 'DEBUG', 'class': 'logging.StreamHandler', 'formatter': 'simple'}}, 'loggers': {'django': {'handlers': ['error_file', 'sentry'], 'propagate': True, 'level': 'ERROR'}, 'microfinance': {'handlers': ['debug_file'], 'propagate': True, 'level': 'DEBUG'}, 'django.server': {'handlers': ['requests_file'], 'propagate': True, 'level': 'INFO'}}}
  339. LOGGING_CONFIG = 'logging.config.dictConfig'
  340. LOGIN_REDIRECT_URL = '/accounts/profile/'
  341. LOGIN_URL = '/admin/login/'
  342. LOGOUT_REDIRECT_URL = None
  343. MANAGERS = []
  344. MEDIA_ROOT = '/app/microfinance/media/'
  345. MEDIA_URL = '/media/'
  346. MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
  347. MIDDLEWARE = ['silk.middleware.SilkyMiddleware', 'corsheaders.middleware.CorsMiddleware', 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware']
  348. MIDDLEWARE_CLASSES = ['django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware']
  349. MIGRATION_MODULES = {}
  350. MONTH_DAY_FORMAT = 'F j'
  351. NOTIFICATION_ADDRESSEE_DEFINITION = {'sms': 'microfinance.apps.authentication.helpers.get_user_phone_number'}
  352. NOTIFICATION_SERVICES = {'sms': 'sms_sender.service.SmsService'}
  353. NUMBER_GROUPING = 0
  354. OPENINGHOURS_PREMISES_MODEL = 'company.CompanyOffice'
  355. PASSWORD_HASHERS = '********************'
  356. PASSWORD_RESET_TIMEOUT_DAYS = '********************'
  357. PAYBOX_BACKENDS = {'_default': {'root_url': '', 'bind': {'amount': 1, 'verify_attempts': 3, 'timeout': 600}}, 'liqpay': {'root_url': 'https://forza-dev.kitway.com.ua', 'public_key': '********************', 'private_key': '********************', 'currency': 'UAH', 'test_mode': False, 'sandbox': False, 'bind': {'amount': 1, 'verify_attempts': 3, 'timeout': 30}, 'refill': {}, 'pay': {}}}
  358. PAYSYS_BIND_CARD_BACKENDS = ['liqpay']
  359. PAYSYS_DEFAULT_CARD_BIND_BACKEND = 'liqpay'
  360. PREPEND_WWW = False
  361. PROJECT_NAME = 'microfinance'
  362. RAVEN_CONFIG = {'dsn': 'https://3d8dc365729c4822847472f02376db93:c3ddc8cc725f48429fe8d5f3e41a8ca3@sentry.kit-xxi.com.ua/17', 'release': ''}
  363. REGISTRATION_PHONE_CONFIRMATION_CODE_LENGTH = 4
  364. RESOLVER = <django_assets.env.DjangoResolver object at 0x7f178230d6a0>
  365. REST_FRAMEWORK = {'DEFAULT_MODEL_SERIALIZER_CLASS': 'rest_framework.serializers.ModelSerializer', 'DEFAULT_PERMISSION_CLASSES': ['rest_framework.permissions.IsAuthenticated'], 'DEFAULT_AUTHENTICATION_CLASSES': ['rest_framework.authentication.TokenAuthentication', 'rest_framework.authentication.SessionAuthentication'], 'DEFAULT_RENDERER_CLASSES': ('rest_framework.renderers.JSONRenderer',)}
  366. ROLEPERMISSIONS_MODULE = 'microfinance.apps.authentication.roles'
  367. ROLEPERMISSIONS_REGISTER_ADMIN = False
  368. ROOT_URLCONF = 'microfinance.urls'
  369. RUNNING_CI_TESTS = False
  370. SCORING_SIMULATION = True
  371. SECRET_KEY = '********************'
  372. SECURE_BROWSER_XSS_FILTER = False
  373. SECURE_CONTENT_TYPE_NOSNIFF = False
  374. SECURE_HSTS_INCLUDE_SUBDOMAINS = False
  375. SECURE_HSTS_PRELOAD = False
  376. SECURE_HSTS_SECONDS = 0
  377. SECURE_PROXY_SSL_HEADER = None
  378. SECURE_REDIRECT_EXEMPT = []
  379. SECURE_SERVICES = ['microfinance.libs.secure.service.UserSecureService']
  380. SECURE_SSL_HOST = None
  381. SECURE_SSL_REDIRECT = False
  382. SERVER_EMAIL = 'root@localhost'
  383. SESSION_CACHE_ALIAS = 'default'
  384. SESSION_COOKIE_AGE = 1209600
  385. SESSION_COOKIE_DOMAIN = None
  386. SESSION_COOKIE_HTTPONLY = True
  387. SESSION_COOKIE_NAME = 'sessionid'
  388. SESSION_COOKIE_PATH = '/'
  389. SESSION_COOKIE_SECURE = False
  390. SESSION_ENGINE = 'django.contrib.sessions.backends.db'
  391. SESSION_EXPIRE_AT_BROWSER_CLOSE = False
  392. SESSION_FILE_PATH = None
  393. SESSION_SAVE_EVERY_REQUEST = False
  394. SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
  395. SETTINGS_MODULE = 'microfinance.settings.staging'
  396. SHORT_DATETIME_FORMAT = 'm/d/Y P'
  397. SHORT_DATE_FORMAT = 'm/d/Y'
  398. SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
  399. SILENCED_SYSTEM_CHECKS = []
  400. SILKY_AUTHENTICATION = True
  401. SILKY_AUTHORISATION = True
  402. SILKY_MAX_RECORDED_REQUESTS = 2000
  403. SILKY_META = True
  404. SILKY_PYTHON_PROFILER = True
  405. SMS_SENDER_EXTENDED_MODE = False
  406. STATICFILES_DIRS = "('/app/microfinance/static', '/app/microfinance/var/static_build')"
  407. STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
  408. STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
  409. STATIC_ROOT = '/app/microfinance/var/static'
  410. STATIC_URL = '/static/'
  411. SWAGGER_SETTINGS = {'DEFAULT_INFO': 'microfinance.urls.api_info', 'DEFAULT_AUTO_SCHEMA_CLASS': 'microfinance.libs.swagger.SwaggerAutoSchema'}
  412. TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/app/microfinance/templates/'], 'APP_DIRS': True, 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.template.context_processors.i18n', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages']}}]
  413. TEMPORARY_BLOCK = True
  414. TEST_MODE = True
  415. TEST_NON_SERIALIZED_APPS = []
  416. TEST_RUNNER = 'django.test.runner.DiscoverRunner'
  417. THOUSAND_SEPARATOR = ','
  418. TIME_FORMAT = 'P'
  419. TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
  420. TIME_ZONE = 'Europe/Kiev'
  421. USER_IS_STAFF = <function _default_user_is_staff at 0x7f17858e69d8>
  422. USER_MODEL = 'authentication.User'
  423. USER_MODEL_APP = 'authentication'
  424. USER_MODEL_NAME = 'User'
  425. USER_MODEL_STR = 'microfinance.apps.authentication.models.User'
  426. USER_PERMISSION_CACHE_TIMEOUT = 3600
  427. USE_ETAGS = False
  428. USE_I18N = True
  429. USE_L10N = True
  430. USE_THOUSAND_SEPARATOR = False
  431. USE_TZ = True
  432. USE_X_FORWARDED_HOST = False
  433. USE_X_FORWARDED_PORT = False
  434. WSGI_APPLICATION = 'microfinance.wsgi.application'
  435. X_FRAME_OPTIONS = 'SAMEORIGIN'
  436. YEAR_MONTH_FORMAT = 'F Y'
  437.  
  438.  
  439. You're seeing this error because you have DEBUG = True in your
  440. Django settings file. Change that to False, and Django will
  441. display a standard page generated by the handler for this status code.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement