Advertisement
Guest User

Untitled

a guest
Jan 30th, 2018
897
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.30 KB | None | 0 0
  1. AssertionError at /docs/
  2. 'TestUserCardView' should either include a `serializer_class` attribute, or override the `get_serializer_class()` method.
  3.  
  4. Request Method: GET
  5. Request URL: http://forza-dev.kitway.com.ua/docs/
  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 12:11: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/drf_yasg/views.py" in _wrapped_view_func
  77. 35. response = view_func(request, *args, **kwargs)
  78.  
  79. File "/usr/lib/python3.6/site-packages/django/utils/decorators.py" in _wrapped_view
  80. 149. response = view_func(request, *args, **kwargs)
  81.  
  82. File "/usr/lib/python3.6/site-packages/django/views/decorators/vary.py" in inner_func
  83. 21. response = func(*args, **kwargs)
  84.  
  85. File "/usr/lib/python3.6/site-packages/django/views/decorators/csrf.py" in wrapped_view
  86. 58. return view_func(*args, **kwargs)
  87.  
  88. File "/usr/lib/python3.6/site-packages/django/views/generic/base.py" in view
  89. 68. return self.dispatch(request, *args, **kwargs)
  90.  
  91. File "/usr/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
  92. 494. response = self.handle_exception(exc)
  93.  
  94. File "/usr/lib/python3.6/site-packages/rest_framework/views.py" in handle_exception
  95. 454. self.raise_uncaught_exception(exc)
  96.  
  97. File "/usr/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
  98. 491. response = handler(request, *args, **kwargs)
  99.  
  100. File "/usr/lib/python3.6/site-packages/drf_yasg/views.py" in get
  101. 88. schema = generator.get_schema(request, self.public)
  102.  
  103. File "/usr/lib/python3.6/site-packages/drf_yasg/generators.py" in get_schema
  104. 203. paths, prefix = self.get_paths(endpoints, components, request, public)
  105.  
  106. File "/usr/lib/python3.6/site-packages/drf_yasg/generators.py" in get_paths
  107. 317. operations[method.lower()] = self.get_operation(view, path, prefix, method, components, request)
  108.  
  109. File "/usr/lib/python3.6/site-packages/drf_yasg/generators.py" in get_operation
  110. 357. operation = view_inspector.get_operation(operation_keys)
  111.  
  112. File "/usr/lib/python3.6/site-packages/drf_yasg/inspectors/view.py" in get_operation
  113. 26. body = self.get_request_body_parameters(consumes)
  114.  
  115. File "/usr/lib/python3.6/site-packages/drf_yasg/inspectors/view.py" in get_request_body_parameters
  116. 62. serializer = self.get_request_serializer()
  117.  
  118. File "/usr/lib/python3.6/site-packages/drf_yasg/inspectors/view.py" in get_request_serializer
  119. 105. return self.get_view_serializer()
  120.  
  121. File "/usr/lib/python3.6/site-packages/drf_yasg/inspectors/view.py" in get_view_serializer
  122. 86. return self.view.get_serializer()
  123.  
  124. File "/usr/lib/python3.6/site-packages/rest_framework/generics.py" in get_serializer
  125. 110. serializer_class = self.get_serializer_class()
  126.  
  127. File "/usr/lib/python3.6/site-packages/rest_framework/generics.py" in get_serializer_class
  128. 127. % self.__class__.__name__
  129.  
  130. Exception Type: AssertionError at /docs/
  131. Exception Value: 'TestUserCardView' should either include a `serializer_class` attribute, or override the `get_serializer_class()` method.
  132. Request information:
  133. USER:
  134.  
  135. GET: No GET data
  136.  
  137. POST: No POST data
  138.  
  139. FILES: No FILES data
  140.  
  141. COOKIES:
  142. sessionid = '1d0ajj6bltup3mci072tvsdrmmo1n3xl'
  143. csrftoken = 'yiQXEDBg7D9kLFtHydFliRHIAVLOGeR1HHocurGgqMGofJ12v6ZlnRifujOXp958'
  144.  
  145. META:
  146. CSRF_COOKIE = 'yiQXEDBg7D9kLFtHydFliRHIAVLOGeR1HHocurGgqMGofJ12v6ZlnRifujOXp958'
  147. HTTP_ACCEPT = 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8'
  148. HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
  149. HTTP_ACCEPT_LANGUAGE = 'ru,uk-UA;q=0.8,uk;q=0.6,en-US;q=0.4,en;q=0.2'
  150. HTTP_CONNECTION = 'close'
  151. HTTP_COOKIE = 'sessionid=1d0ajj6bltup3mci072tvsdrmmo1n3xl; csrftoken=yiQXEDBg7D9kLFtHydFliRHIAVLOGeR1HHocurGgqMGofJ12v6ZlnRifujOXp958'
  152. HTTP_HOST = 'forza-dev.kitway.com.ua'
  153. HTTP_UPGRADE_INSECURE_REQUESTS = '1'
  154. HTTP_USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36'
  155. HTTP_X_FORWARDED_FOR = '77.120.243.5'
  156. HTTP_X_REAL_IP = '77.120.243.5'
  157. PATH_INFO = '/docs/'
  158. QUERY_STRING = ''
  159. RAW_URI = '/docs/'
  160. REMOTE_ADDR = '127.0.0.1'
  161. REMOTE_PORT = '50208'
  162. REQUEST_METHOD = 'GET'
  163. SCRIPT_NAME = ''
  164. SERVER_NAME = '127.0.0.1'
  165. SERVER_PORT = '8000'
  166. SERVER_PROTOCOL = 'HTTP/1.0'
  167. SERVER_SOFTWARE = 'gunicorn/19.7.1'
  168. 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', 50208)>
  169. wsgi.errors = <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7fb4b9c58080>
  170. wsgi.file_wrapper = ''
  171. wsgi.input = <gunicorn.http.body.Body object at 0x7fb4b8b1c550>
  172. wsgi.multiprocess = True
  173. wsgi.multithread = False
  174. wsgi.run_once = False
  175. wsgi.url_scheme = 'http'
  176. wsgi.version = '(1, 0)'
  177.  
  178. Settings:
  179. Using settings module microfinance.settings.staging
  180. ABSOLUTE_URL_OVERRIDES = {}
  181. ADMINS = []
  182. ADMIN_URL_PREFIX = '^admin/'
  183. ALLOWED_HOSTS = ['*']
  184. API_CACHING_TIMEOUT = '********************'
  185. API_URL_PREFIX = '********************'
  186. APPEND_SLASH = True
  187. ASSETS_DEBUG = True
  188. 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']
  189. ASSETS_ROOT = '/app/microfinance/var/static_build'
  190. AUTHENTICATION_BACKENDS = "('microfinance.apps.authentication.backends.PhonePasswordBackend', 'microfinance.apps.authentication.backends.InnPasswordBackend', 'microfinance.apps.authentication.backends.PhoneCodeBackend', 'microfinance.apps.authentication.backends.StaffEmailBackend')"
  191. AUTHORISATION_PHONE_CONFIRMATION_CODE_LENGTH = 4
  192. AUTH_PASSWORD_VALIDATORS = '********************'
  193. AUTH_USER_MODEL = 'authentication.User'
  194. BACKOFFICE_API_URL_PREFIX = '********************'
  195. BACKOFFICE_URL_PREFIX = '^backoffice/'
  196. BANKID_REDIRECT_URL = 'https://client.forza-dev.kitway.com.ua/profile/'
  197. BANK_ID_AUTH_DOMAIN = 'bankid.org.ua'
  198. BANK_ID_CERT = '/etc/app/bankid_cert.pem'
  199. BANK_ID_CLIENT_ID = 'f1e4f3a4-e4d8-428c-9e83-20dc96ed4034'
  200. BANK_ID_CLIENT_SECRET = '********************'
  201. BANK_ID_DATA_GATHER_DOMAIN_SPECIAL = 'biprocessing.org.ua'
  202. BASE_DIR = '/app/microfinance'
  203. CACHES = {'default': {'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '127.0.0.1:11211'}}
  204. CACHE_MIDDLEWARE_ALIAS = 'default'
  205. CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
  206. CACHE_MIDDLEWARE_SECONDS = 600
  207. CELERY_ROUTES = {'microfinance.libs.notifications.tasks.task_send_recently': {'queue': 'celery'}}
  208. 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'}}
  209. CORS_ORIGIN_ALLOW_ALL = True
  210. CSRF_COOKIE_AGE = 31449600
  211. CSRF_COOKIE_DOMAIN = None
  212. CSRF_COOKIE_HTTPONLY = False
  213. CSRF_COOKIE_NAME = 'csrftoken'
  214. CSRF_COOKIE_PATH = '/'
  215. CSRF_COOKIE_SECURE = False
  216. CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
  217. CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
  218. CSRF_TRUSTED_ORIGINS = []
  219. CSRF_USE_SESSIONS = False
  220. DASHBOARD_STATS_HANDLERS = "('microfinance.apps.authentication.dashboard.UserProfileDash',)"
  221. 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}}}
  222. DATABASE_ROUTERS = []
  223. DATA_UPLOAD_MAX_MEMORY_SIZE = None
  224. DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
  225. DATETIME_FORMAT = '%d.%m.%Y %H:%M'
  226. 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']
  227. DATE_FORMAT = '%d.%m.%Y'
  228. 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']
  229. DEBUG = True
  230. DEBUG_PROPAGATE_EXCEPTIONS = False
  231. DECIMAL_SEPARATOR = '.'
  232. DEFAULT_CHARSET = 'utf-8'
  233. DEFAULT_CONTENT_TYPE = 'text/html'
  234. DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
  235. DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
  236. DEFAULT_FROM_EMAIL = 'webmaster@localhost'
  237. DEFAULT_INDEX_TABLESPACE = ''
  238. DEFAULT_PHONE_REGION_CODE = 'UA'
  239. DEFAULT_TABLESPACE = ''
  240. DISALLOWED_USER_AGENTS = []
  241. DJANGO_ADMIN_DEBUG = False
  242. EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
  243. EMAIL_HOST = 'localhost'
  244. EMAIL_HOST_PASSWORD = '********************'
  245. EMAIL_HOST_USER = ''
  246. EMAIL_PORT = 25
  247. EMAIL_SENDER_EXTENDED_MODE = False
  248. EMAIL_SSL_CERTFILE = None
  249. EMAIL_SSL_KEYFILE = '********************'
  250. EMAIL_SUBJECT_PREFIX = '[Django] '
  251. EMAIL_TIMEOUT = None
  252. EMAIL_USE_LOCALTIME = False
  253. EMAIL_USE_SSL = False
  254. EMAIL_USE_TLS = False
  255. FILE_CHARSET = 'utf-8'
  256. FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
  257. FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
  258. FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
  259. FILE_UPLOAD_PERMISSIONS = None
  260. FILE_UPLOAD_TEMP_DIR = None
  261. FIRST_DAY_OF_WEEK = 0
  262. FIXTURE_DIRS = []
  263. FORCE_SCRIPT_NAME = None
  264. FORMAT_MODULE_PATH = None
  265. FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
  266. HTTP_HOST = 'http://forza-dev.kitway.com.ua/'
  267. IGNORABLE_404_URLS = []
  268. INPUT_DATE_FORMAT = '%Y-%m-%d'
  269. 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']
  270. INTERNAL_IPS = []
  271. JS_REVERSE_INCLUDE_ONLY_NAMESPACES = ['authentication', 'authentication-api', 'backoffice', 'backoffice-api', 'user-profile', 'user-profile-api', 'agent', 'agent-api', 'system_secure', '']
  272. JS_REVERSE_JS_VAR_NAME = 'Urls'
  273. LANGUAGES = "(('uk', 'Українська'), ('ru', 'Русский'))"
  274. LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
  275. LANGUAGE_CODE = 'uk'
  276. LANGUAGE_COOKIE_AGE = None
  277. LANGUAGE_COOKIE_DOMAIN = None
  278. LANGUAGE_COOKIE_NAME = '_locale_'
  279. LANGUAGE_COOKIE_PATH = '/'
  280. LOCALE_PATHS = ['/app/microfinance/locale']
  281. 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'}}}
  282. LOGGING_CONFIG = 'logging.config.dictConfig'
  283. LOGIN_REDIRECT_URL = '/accounts/profile/'
  284. LOGIN_URL = '/accounts/login/'
  285. LOGOUT_REDIRECT_URL = None
  286. MANAGERS = []
  287. MEDIA_ROOT = '/app/microfinance/media/'
  288. MEDIA_URL = '/media/'
  289. MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
  290. 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']
  291. MIDDLEWARE_CLASSES = ['django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware']
  292. MIGRATION_MODULES = {}
  293. MONTH_DAY_FORMAT = 'F j'
  294. NOTIFICATION_ADDRESSEE_DEFINITION = {'sms': 'microfinance.apps.authentication.helpers.get_user_phone_number'}
  295. NOTIFICATION_SERVICES = {'sms': 'sms_sender.service.SmsService'}
  296. NUMBER_GROUPING = 0
  297. OPENINGHOURS_PREMISES_MODEL = 'company.CompanyOffice'
  298. PASSWORD_HASHERS = '********************'
  299. PASSWORD_RESET_TIMEOUT_DAYS = '********************'
  300. 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': {}}}
  301. PAYSYS_BIND_CARD_BACKENDS = ['liqpay']
  302. PAYSYS_DEFAULT_CARD_BIND_BACKEND = 'liqpay'
  303. PREPEND_WWW = False
  304. PROJECT_NAME = 'microfinance'
  305. RAVEN_CONFIG = {'dsn': 'https://3d8dc365729c4822847472f02376db93:c3ddc8cc725f48429fe8d5f3e41a8ca3@sentry.kit-xxi.com.ua/17', 'release': ''}
  306. REGISTRATION_PHONE_CONFIRMATION_CODE_LENGTH = 4
  307. 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',)}
  308. ROOT_URLCONF = 'microfinance.urls'
  309. SECRET_KEY = '********************'
  310. SECURE_BROWSER_XSS_FILTER = False
  311. SECURE_CONTENT_TYPE_NOSNIFF = False
  312. SECURE_HSTS_INCLUDE_SUBDOMAINS = False
  313. SECURE_HSTS_PRELOAD = False
  314. SECURE_HSTS_SECONDS = 0
  315. SECURE_PROXY_SSL_HEADER = None
  316. SECURE_REDIRECT_EXEMPT = []
  317. SECURE_SERVICES = ['microfinance.libs.secure.service.UserSecureService']
  318. SECURE_SSL_HOST = None
  319. SECURE_SSL_REDIRECT = False
  320. SERVER_EMAIL = 'root@localhost'
  321. SESSION_CACHE_ALIAS = 'default'
  322. SESSION_COOKIE_AGE = 1209600
  323. SESSION_COOKIE_DOMAIN = None
  324. SESSION_COOKIE_HTTPONLY = True
  325. SESSION_COOKIE_NAME = 'sessionid'
  326. SESSION_COOKIE_PATH = '/'
  327. SESSION_COOKIE_SECURE = False
  328. SESSION_ENGINE = 'django.contrib.sessions.backends.db'
  329. SESSION_EXPIRE_AT_BROWSER_CLOSE = False
  330. SESSION_FILE_PATH = None
  331. SESSION_SAVE_EVERY_REQUEST = False
  332. SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
  333. SETTINGS_MODULE = 'microfinance.settings.staging'
  334. SHORT_DATETIME_FORMAT = 'm/d/Y P'
  335. SHORT_DATE_FORMAT = 'm/d/Y'
  336. SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
  337. SILENCED_SYSTEM_CHECKS = []
  338. SILKY_AUTHENTICATION = True
  339. SILKY_AUTHORISATION = True
  340. SILKY_MAX_RECORDED_REQUESTS = 2000
  341. SILKY_META = True
  342. SILKY_PYTHON_PROFILER = True
  343. SMS_SENDER_EXTENDED_MODE = False
  344. STATICFILES_DIRS = "('/app/microfinance/static', '/app/microfinance/var/static_build')"
  345. STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
  346. STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
  347. STATIC_ROOT = '/app/microfinance/var/static'
  348. STATIC_URL = '/static/'
  349. SWAGGER_SETTINGS = {'JSON_EDITOR': True, 'SHOW_REQUEST_HEADERS': True, 'DEFAULT_INFO': 'microfinance.urls.api_info'}
  350. 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']}}]
  351. TEMPORARY_BLOCK = True
  352. TEST_NON_SERIALIZED_APPS = []
  353. TEST_RUNNER = 'django.test.runner.DiscoverRunner'
  354. THOUSAND_SEPARATOR = ','
  355. TIME_FORMAT = 'P'
  356. TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
  357. TIME_ZONE = 'Europe/Kiev'
  358. USER_MODEL = 'authentication.User'
  359. USER_MODEL_APP = 'authentication'
  360. USER_MODEL_NAME = 'User'
  361. USER_MODEL_STR = 'microfinance.apps.authentication.models.User'
  362. USER_PERMISSION_CACHE_TIMEOUT = 3600
  363. USE_ETAGS = False
  364. USE_I18N = True
  365. USE_L10N = True
  366. USE_THOUSAND_SEPARATOR = False
  367. USE_TZ = False
  368. USE_X_FORWARDED_HOST = False
  369. USE_X_FORWARDED_PORT = False
  370. WSGI_APPLICATION = 'microfinance.wsgi.application'
  371. X_FRAME_OPTIONS = 'SAMEORIGIN'
  372. YEAR_MONTH_FORMAT = 'F Y'
  373.  
  374.  
  375. You're seeing this error because you have DEBUG = True in your
  376. Django settings file. Change that to False, and Django will
  377. display a standard page generated by the handler for this status code.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement