Advertisement
Guest User

Untitled

a guest
Jan 30th, 2018
397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.33 KB | None | 0 0
  1. AttributeError at /api/user/edit_phone/
  2. This QueryDict instance is immutable
  3.  
  4. Request Method: POST
  5. Request URL: http://forza-dev.kitway.com.ua/api/user/edit_phone/
  6. Django Version: 1.11.8
  7. Python Executable: /usr/bin/python3
  8. Python Version: 3.6.3
  9. 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', '/app']
  10. Server time: Вт, 30 Січ 2018 09:57:00 +0200
  11. Installed Applications:
  12. ['microfinance.apps.authentication',
  13. 'modeltranslation',
  14. 'corsheaders',
  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_assets',
  22. 'django_js_reverse',
  23. 'django_extensions',
  24. 'openinghours',
  25. 'rosetta',
  26. 'rest_framework',
  27. 'rest_framework.authtoken',
  28. 'drf_yasg',
  29. 'rangefilter',
  30. 'ckeditor',
  31. 'smart_docs',
  32. 'sms_sender',
  33. 'fixtures_migrator',
  34. 'tempometry',
  35. 'ukrmail',
  36. 'paybox',
  37. 'paybox_liqpay',
  38. 'microfinance.libs',
  39. 'microfinance.apps.backoffice',
  40. 'microfinance.apps.user_profile',
  41. 'microfinance.apps.agent',
  42. 'microfinance.apps.documents',
  43. 'microfinance.apps.bank_card',
  44. 'microfinance.apps.company',
  45. 'microfinance.apps.system_secure',
  46. 'microfinance.apps.loan_core',
  47. 'microfinance.apps.loan_client',
  48. 'microfinance.apps.loan_backoffice',
  49. 'microfinance.libs.secure',
  50. 'microfinance.libs.bankid',
  51. 'microfinance.libs.notifications',
  52. 'silk']
  53. Installed Middleware:
  54. ['silk.middleware.SilkyMiddleware',
  55. 'corsheaders.middleware.CorsMiddleware',
  56. 'django.middleware.security.SecurityMiddleware',
  57. 'django.contrib.sessions.middleware.SessionMiddleware',
  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.  
  64.  
  65. Traceback:
  66.  
  67. File "/usr/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
  68. 41. response = get_response(request)
  69.  
  70. File "/usr/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  71. 187. response = self.process_exception_by_middleware(e, request)
  72.  
  73. File "/usr/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
  74. 185. response = wrapped_callback(request, *callback_args, **callback_kwargs)
  75.  
  76. File "/usr/lib/python3.6/site-packages/django/views/decorators/csrf.py" in wrapped_view
  77. 58. return view_func(*args, **kwargs)
  78.  
  79. File "/usr/lib/python3.6/site-packages/django/views/generic/base.py" in view
  80. 68. return self.dispatch(request, *args, **kwargs)
  81.  
  82. File "/usr/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
  83. 494. response = self.handle_exception(exc)
  84.  
  85. File "/usr/lib/python3.6/site-packages/rest_framework/views.py" in handle_exception
  86. 454. self.raise_uncaught_exception(exc)
  87.  
  88. File "/usr/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
  89. 491. response = handler(request, *args, **kwargs)
  90.  
  91. File "/app/microfinance/apps/authentication/views.py" in post
  92. 134. request_data['user'] = self.request.user
  93.  
  94. File "/usr/lib/python3.6/site-packages/django/http/request.py" in __setitem__
  95. 434. self._assert_mutable()
  96.  
  97. File "/usr/lib/python3.6/site-packages/django/http/request.py" in _assert_mutable
  98. 431. raise AttributeError("This QueryDict instance is immutable")
  99.  
  100. Exception Type: AttributeError at /api/user/edit_phone/
  101. Exception Value: This QueryDict instance is immutable
  102. Request information:
  103. USER: Имя Фамилия Отчество
  104.  
  105. GET: No GET data
  106.  
  107. POST:
  108. phone = '380630413281'
  109.  
  110. FILES: No FILES data
  111.  
  112. COOKIES: No cookie data
  113.  
  114. META:
  115. CONTENT_LENGTH = '172'
  116. CONTENT_TYPE = 'multipart/form-data; boundary=--------------------------870973242267055210908906'
  117. HTTP_ACCEPT = '*/*'
  118. HTTP_ACCEPT_ENCODING = 'gzip, deflate'
  119. HTTP_AUTHORIZATION = 'Token bfbf66020a9abaadda1e8075067795431e05b4d1'
  120. HTTP_CACHE_CONTROL = 'no-cache'
  121. HTTP_CONNECTION = 'close'
  122. HTTP_HOST = 'forza-dev.kitway.com.ua'
  123. HTTP_POSTMAN_TOKEN = '5a651c82-069a-4c6c-928c-0e9e2674d324'
  124. HTTP_USER_AGENT = 'PostmanRuntime/7.1.1'
  125. HTTP_X_FORWARDED_FOR = '77.120.243.5'
  126. HTTP_X_REAL_IP = '77.120.243.5'
  127. PATH_INFO = '/api/user/edit_phone/'
  128. QUERY_STRING = ''
  129. RAW_URI = '/api/user/edit_phone/'
  130. REMOTE_ADDR = '127.0.0.1'
  131. REMOTE_PORT = '49072'
  132. REQUEST_METHOD = 'POST'
  133. SCRIPT_NAME = ''
  134. SERVER_NAME = '127.0.0.1'
  135. SERVER_PORT = '8000'
  136. SERVER_PROTOCOL = 'HTTP/1.0'
  137. SERVER_SOFTWARE = 'gunicorn/19.7.1'
  138. gunicorn.socket = <socket.socket fd=15, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('127.0.0.1', 8000), raddr=('127.0.0.1', 49072)>
  139. wsgi.errors = <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7ff2a26c06d8>
  140. wsgi.file_wrapper = ''
  141. wsgi.input = <gunicorn.http.body.Body object at 0x7ff2a2655940>
  142. wsgi.multiprocess = True
  143. wsgi.multithread = False
  144. wsgi.run_once = False
  145. wsgi.url_scheme = 'http'
  146. wsgi.version = '(1, 0)'
  147.  
  148. Settings:
  149. Using settings module microfinance.settings.staging
  150. ABSOLUTE_URL_OVERRIDES = {}
  151. ADMINS = []
  152. ADMIN_URL_PREFIX = '^admin/'
  153. ALLOWED_HOSTS = ['*']
  154. API_CACHING_TIMEOUT = '********************'
  155. API_URL_PREFIX = '********************'
  156. APPEND_SLASH = True
  157. ASSETS_DEBUG = True
  158. 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']
  159. ASSETS_ROOT = '/app/microfinance/var/static_build'
  160. AUTHENTICATION_BACKENDS = "('microfinance.apps.authentication.backends.PhonePasswordBackend', 'microfinance.apps.authentication.backends.InnPasswordBackend', 'microfinance.apps.authentication.backends.PhoneCodeBackend', 'microfinance.apps.authentication.backends.StaffEmailBackend')"
  161. AUTHORISATION_PHONE_CONFIRMATION_CODE_LENGTH = 4
  162. AUTH_PASSWORD_VALIDATORS = '********************'
  163. AUTH_USER_MODEL = 'authentication.User'
  164. BACKOFFICE_API_URL_PREFIX = '********************'
  165. BACKOFFICE_URL_PREFIX = '^backoffice/'
  166. BANKID_REDIRECT_URL = 'https://client.forza-dev.kitway.com.ua/profile/'
  167. BANK_ID_AUTH_DOMAIN = 'bankid.org.ua'
  168. BANK_ID_CERT = '/etc/app/bankid_cert.pem'
  169. BANK_ID_CLIENT_ID = 'f1e4f3a4-e4d8-428c-9e83-20dc96ed4034'
  170. BANK_ID_CLIENT_SECRET = '********************'
  171. BANK_ID_DATA_GATHER_DOMAIN_SPECIAL = 'biprocessing.org.ua'
  172. BASE_DIR = '/app/microfinance'
  173. CACHES = {'default': {'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '127.0.0.1:11211'}}
  174. CACHE_MIDDLEWARE_ALIAS = 'default'
  175. CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
  176. CACHE_MIDDLEWARE_SECONDS = 600
  177. CELERY_ROUTES = {'microfinance.libs.notifications.tasks.task_send_recently': {'queue': 'celery'}}
  178. 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'}}
  179. CORS_ORIGIN_ALLOW_ALL = True
  180. CSRF_COOKIE_AGE = 31449600
  181. CSRF_COOKIE_DOMAIN = None
  182. CSRF_COOKIE_HTTPONLY = False
  183. CSRF_COOKIE_NAME = 'csrftoken'
  184. CSRF_COOKIE_PATH = '/'
  185. CSRF_COOKIE_SECURE = False
  186. CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
  187. CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
  188. CSRF_TRUSTED_ORIGINS = []
  189. CSRF_USE_SESSIONS = False
  190. DASHBOARD_STATS_HANDLERS = "('microfinance.apps.authentication.dashboard.UserProfileDash',)"
  191. 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}}}
  192. DATABASE_ROUTERS = []
  193. DATA_UPLOAD_MAX_MEMORY_SIZE = None
  194. DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
  195. DATETIME_FORMAT = '%d.%m.%Y %H:%M'
  196. 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']
  197. DATE_FORMAT = '%d.%m.%Y'
  198. 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']
  199. DEBUG = True
  200. DEBUG_PROPAGATE_EXCEPTIONS = False
  201. DECIMAL_SEPARATOR = '.'
  202. DEFAULT_CHARSET = 'utf-8'
  203. DEFAULT_CONTENT_TYPE = 'text/html'
  204. DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
  205. DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
  206. DEFAULT_FROM_EMAIL = 'webmaster@localhost'
  207. DEFAULT_INDEX_TABLESPACE = ''
  208. DEFAULT_PHONE_REGION_CODE = 'UA'
  209. DEFAULT_TABLESPACE = ''
  210. DISALLOWED_USER_AGENTS = []
  211. DJANGO_ADMIN_DEBUG = False
  212. EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
  213. EMAIL_HOST = 'localhost'
  214. EMAIL_HOST_PASSWORD = '********************'
  215. EMAIL_HOST_USER = ''
  216. EMAIL_PORT = 25
  217. EMAIL_SENDER_EXTENDED_MODE = False
  218. EMAIL_SSL_CERTFILE = None
  219. EMAIL_SSL_KEYFILE = '********************'
  220. EMAIL_SUBJECT_PREFIX = '[Django] '
  221. EMAIL_TIMEOUT = None
  222. EMAIL_USE_LOCALTIME = False
  223. EMAIL_USE_SSL = False
  224. EMAIL_USE_TLS = False
  225. FILE_CHARSET = 'utf-8'
  226. FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
  227. FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
  228. FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
  229. FILE_UPLOAD_PERMISSIONS = None
  230. FILE_UPLOAD_TEMP_DIR = None
  231. FIRST_DAY_OF_WEEK = 0
  232. FIXTURE_DIRS = []
  233. FORCE_SCRIPT_NAME = None
  234. FORMAT_MODULE_PATH = None
  235. FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
  236. HTTP_HOST = 'http://forza-dev.kitway.com.ua/'
  237. IGNORABLE_404_URLS = []
  238. INPUT_DATE_FORMAT = '%Y-%m-%d'
  239. 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_extensions', 'openinghours', 'rosetta', 'rest_framework', 'rest_framework.authtoken', 'drf_yasg', 'rangefilter', 'ckeditor', 'smart_docs', 'sms_sender', 'fixtures_migrator', 'tempometry', 'ukrmail', 'paybox', 'paybox_liqpay', '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.libs.secure', 'microfinance.libs.bankid', 'microfinance.libs.notifications', 'silk']
  240. INTERNAL_IPS = []
  241. JS_REVERSE_INCLUDE_ONLY_NAMESPACES = ['authentication', 'authentication-api', 'backoffice', 'backoffice-api', 'user-profile', 'user-profile-api', 'agent', 'agent-api', 'system_secure', '']
  242. JS_REVERSE_JS_VAR_NAME = 'Urls'
  243. LANGUAGES = "(('uk', 'Українська'), ('ru', 'Русский'))"
  244. LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
  245. LANGUAGE_CODE = 'uk'
  246. LANGUAGE_COOKIE_AGE = None
  247. LANGUAGE_COOKIE_DOMAIN = None
  248. LANGUAGE_COOKIE_NAME = '_locale_'
  249. LANGUAGE_COOKIE_PATH = '/'
  250. LOCALE_PATHS = ['/app/microfinance/locale']
  251. 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'}}}
  252. LOGGING_CONFIG = 'logging.config.dictConfig'
  253. LOGIN_REDIRECT_URL = '/accounts/profile/'
  254. LOGIN_URL = '/accounts/login/'
  255. LOGOUT_REDIRECT_URL = None
  256. MANAGERS = []
  257. MEDIA_ROOT = '/app/microfinance/media/'
  258. MEDIA_URL = '/media/'
  259. MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
  260. 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']
  261. MIDDLEWARE_CLASSES = ['django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware']
  262. MIGRATION_MODULES = {}
  263. MONTH_DAY_FORMAT = 'F j'
  264. NOTIFICATION_ADDRESSEE_DEFINITION = {'sms': 'microfinance.apps.authentication.helpers.get_user_phone_number'}
  265. NOTIFICATION_SERVICES = {'sms': 'sms_sender.service.SmsService'}
  266. NUMBER_GROUPING = 0
  267. OPENINGHOURS_PREMISES_MODEL = 'company.CompanyOffice'
  268. PASSWORD_HASHERS = '********************'
  269. PASSWORD_RESET_TIMEOUT_DAYS = '********************'
  270. PAYBOX_BACKENDS = {'_default': {'root_url': '', 'bind': {'amount': 1, 'verify_attempts': 3, 'timeout': 600}}, 'liqpay': {'root_url': '', 'public_key': '********************', 'private_key': '********************', 'currency': 'UAH', 'test_mode': True, 'sandbox': True, 'bind': {'amount': 1, 'verify_attempts': 3, 'timeout': 600}, 'refill': {}, 'pay': {}}}
  271. PAYSYS_BIND_CARD_BACKENDS = ['liqpay']
  272. PAYSYS_DEFAULT_CARD_BIND_BACKEND = 'liqpay'
  273. PREPEND_WWW = False
  274. PROJECT_NAME = 'microfinance'
  275. RAVEN_CONFIG = {'dsn': 'https://3d8dc365729c4822847472f02376db93:c3ddc8cc725f48429fe8d5f3e41a8ca3@sentry.kit-xxi.com.ua/17', 'release': ''}
  276. REGISTRATION_PHONE_CONFIRMATION_CODE_LENGTH = 4
  277. 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',)}
  278. ROOT_URLCONF = 'microfinance.urls'
  279. SECRET_KEY = '********************'
  280. SECURE_BROWSER_XSS_FILTER = False
  281. SECURE_CONTENT_TYPE_NOSNIFF = False
  282. SECURE_HSTS_INCLUDE_SUBDOMAINS = False
  283. SECURE_HSTS_PRELOAD = False
  284. SECURE_HSTS_SECONDS = 0
  285. SECURE_PROXY_SSL_HEADER = None
  286. SECURE_REDIRECT_EXEMPT = []
  287. SECURE_SERVICES = ['microfinance.libs.secure.service.UserSecureService']
  288. SECURE_SSL_HOST = None
  289. SECURE_SSL_REDIRECT = False
  290. SERVER_EMAIL = 'root@localhost'
  291. SESSION_CACHE_ALIAS = 'default'
  292. SESSION_COOKIE_AGE = 1209600
  293. SESSION_COOKIE_DOMAIN = None
  294. SESSION_COOKIE_HTTPONLY = True
  295. SESSION_COOKIE_NAME = 'sessionid'
  296. SESSION_COOKIE_PATH = '/'
  297. SESSION_COOKIE_SECURE = False
  298. SESSION_ENGINE = 'django.contrib.sessions.backends.db'
  299. SESSION_EXPIRE_AT_BROWSER_CLOSE = False
  300. SESSION_FILE_PATH = None
  301. SESSION_SAVE_EVERY_REQUEST = False
  302. SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
  303. SETTINGS_MODULE = 'microfinance.settings.staging'
  304. SHORT_DATETIME_FORMAT = 'm/d/Y P'
  305. SHORT_DATE_FORMAT = 'm/d/Y'
  306. SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
  307. SILENCED_SYSTEM_CHECKS = []
  308. SILKY_AUTHENTICATION = True
  309. SILKY_AUTHORISATION = True
  310. SILKY_MAX_RECORDED_REQUESTS = 2000
  311. SILKY_META = True
  312. SILKY_PYTHON_PROFILER = True
  313. SMS_SENDER_EXTENDED_MODE = False
  314. STATICFILES_DIRS = "('/app/microfinance/static', '/app/microfinance/var/static_build')"
  315. STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
  316. STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
  317. STATIC_ROOT = '/app/microfinance/var/static'
  318. STATIC_URL = '/static/'
  319. SWAGGER_SETTINGS = {'JSON_EDITOR': True, 'SHOW_REQUEST_HEADERS': True, 'DEFAULT_INFO': 'microfinance.urls.api_info'}
  320. 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']}}]
  321. TEMPORARY_BLOCK = True
  322. TEST_NON_SERIALIZED_APPS = []
  323. TEST_RUNNER = 'django.test.runner.DiscoverRunner'
  324. THOUSAND_SEPARATOR = ','
  325. TIME_FORMAT = 'P'
  326. TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
  327. TIME_ZONE = 'Europe/Kiev'
  328. USER_MODEL = 'authentication.User'
  329. USER_MODEL_APP = 'authentication'
  330. USER_MODEL_NAME = 'User'
  331. USER_MODEL_STR = 'microfinance.apps.authentication.models.User'
  332. USER_PERMISSION_CACHE_TIMEOUT = 3600
  333. USE_ETAGS = False
  334. USE_I18N = True
  335. USE_L10N = True
  336. USE_THOUSAND_SEPARATOR = False
  337. USE_TZ = False
  338. USE_X_FORWARDED_HOST = False
  339. USE_X_FORWARDED_PORT = False
  340. WSGI_APPLICATION = 'microfinance.wsgi.application'
  341. X_FRAME_OPTIONS = 'SAMEORIGIN'
  342. YEAR_MONTH_FORMAT = 'F Y'
  343.  
  344.  
  345. You're seeing this error because you have DEBUG = True in your
  346. Django settings file. Change that to False, and Django will
  347. display a standard page generated by the handler for this status code.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement