· 7 years ago · Mar 15, 2018, 02:32 PM
1MultipleObjectsReturned at /api/loan/configuration/
2get() returned more than one AnnuityConfig -- it returned 2!
3
4Request Method: GET
5Request URL: http://forza-dev.kitway.com.ua/api/loan/configuration/
6Django Version: 1.11.10
7Python Executable: /usr/bin/python3
8Python Version: 3.6.3
9Python Path: ['/app', '/usr/bin', '/usr/lib/python36.zip', '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload', '/usr/lib/python3.6/site-packages']
10Server time: çт, 15 Ñõр 2018 16:30:51 +0200
11Installed Applications:
12['raven.contrib.django.raven_compat',
13 'microfinance.apps.authentication',
14 'modeltranslation',
15 'corsheaders',
16 'django.contrib.admin',
17 'django.contrib.auth',
18 'django.contrib.contenttypes',
19 'django.contrib.sessions',
20 'django.contrib.messages',
21 'django.contrib.staticfiles',
22 'django_assets',
23 'django_js_reverse',
24 'django_cache_dependencies',
25 'django_extensions',
26 'openinghours',
27 'rosetta',
28 'rest_framework',
29 'rest_framework.authtoken',
30 'drf_yasg',
31 'rangefilter',
32 'ckeditor',
33 'rolepermissions',
34 'djcelery',
35 'smart_docs',
36 'sms_sender',
37 'fixtures_migrator',
38 'tempometry',
39 'ukrmail',
40 'paybox',
41 'paybox_liqpay',
42 'django_datatables_view_extensions',
43 'microfinance.libs',
44 'microfinance.apps.backoffice',
45 'microfinance.apps.user_profile',
46 'microfinance.apps.agent',
47 'microfinance.apps.documents',
48 'microfinance.apps.bank_card',
49 'microfinance.apps.company',
50 'microfinance.apps.system_secure',
51 'microfinance.apps.loan_core',
52 'microfinance.apps.loan_client',
53 'microfinance.apps.loan_backoffice',
54 'microfinance.apps.loan_config_rules',
55 'microfinance.libs.secure',
56 'microfinance.libs.bankid',
57 'microfinance.libs.notifications',
58 'microfinance.libs.confirm_code',
59 'behave_django',
60 'microfinance.libs.test_api',
61 'silk']
62Installed Middleware:
63['raven.contrib.django.middleware.SentryMiddleware',
64 'silk.middleware.SilkyMiddleware',
65 'corsheaders.middleware.CorsMiddleware',
66 'django.middleware.security.SecurityMiddleware',
67 'django.contrib.sessions.middleware.SessionMiddleware',
68 'django.middleware.common.CommonMiddleware',
69 'django.middleware.csrf.CsrfViewMiddleware',
70 'django.contrib.auth.middleware.AuthenticationMiddleware',
71 'django.contrib.messages.middleware.MessageMiddleware',
72 'django.middleware.clickjacking.XFrameOptionsMiddleware']
73
74
75Traceback:
76
77File "/usr/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
78 41. response = get_response(request)
79
80File "/usr/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
81 187. response = self.process_exception_by_middleware(e, request)
82
83File "/usr/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
84 185. response = wrapped_callback(request, *callback_args, **callback_kwargs)
85
86File "/usr/lib/python3.6/site-packages/django/views/decorators/csrf.py" in wrapped_view
87 58. return view_func(*args, **kwargs)
88
89File "/usr/lib/python3.6/site-packages/django/views/generic/base.py" in view
90 68. return self.dispatch(request, *args, **kwargs)
91
92File "/usr/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
93 494. response = self.handle_exception(exc)
94
95File "/usr/lib/python3.6/site-packages/rest_framework/views.py" in handle_exception
96 454. self.raise_uncaught_exception(exc)
97
98File "/usr/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
99 491. response = handler(request, *args, **kwargs)
100
101File "/app/microfinance/apps/loan_client/views/config.py" in get
102 47. alias = SuggestLoanerRuleService.suggest_loan_config(loan_type_alias=loan_type.alias, user=user)
103
104File "/app/microfinance/apps/loan_config_rules/services.py" in suggest_loan_config
105 121. lr = LoanRequestService(loan_type_alias)
106
107File "/app/microfinance/apps/loan_core/services/loan_request.py" in __init__
108 74. self.config = self.get_config(config_alias)
109
110File "/app/microfinance/apps/loan_core/services/loan_request.py" in get_config
111 150. return self.backend_group.get_loan_config(config_alias)
112
113File "/app/microfinance/apps/loan_core/backends/base/backend_classes/group.py" in get_loan_config
114 76. return self.CONFIG_MODEL.objects.actual(**query)
115
116File "/usr/lib/python3.6/site-packages/tempometry/models.py" in actual
117 59. raise e
118
119File "/usr/lib/python3.6/site-packages/tempometry/models.py" in actual
120 54. return self.get(*args, **kwargs)
121
122File "/usr/lib/python3.6/site-packages/django/db/models/manager.py" in manager_method
123 85. return getattr(self.get_queryset(), name)(*args, **kwargs)
124
125File "/usr/lib/python3.6/site-packages/django/db/models/query.py" in get
126 384. (self.model._meta.object_name, num)
127
128Exception Type: MultipleObjectsReturned at /api/loan/configuration/
129Exception Value: get() returned more than one AnnuityConfig -- it returned 2!
130Request information:
131USER: ßþ÷øчðûьýøú ØüѠäðüøûøѠÞтчõÑÂтòþ
132
133GET: No GET data
134
135POST: No POST data
136
137FILES: No FILES data
138
139COOKIES: No cookie data
140
141META:
142HTTP_ACCEPT = 'application/json, text/plain, */*'
143HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
144HTTP_ACCEPT_LANGUAGE = 'ru,uk-UA;q=0.8,uk;q=0.6,en-US;q=0.4,en;q=0.2'
145HTTP_AUTHORIZATION = 'Token 2ff029558f488e095f8b865830b1ca470051b393'
146HTTP_CONNECTION = 'close'
147HTTP_HOST = 'forza-dev.kitway.com.ua'
148HTTP_ORIGIN = 'https://client.forza-dev.kitway.com.ua'
149HTTP_REFERER = 'https://client.forza-dev.kitway.com.ua/'
150HTTP_USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36'
151HTTP_X_FORWARDED_FOR = '77.120.243.5'
152HTTP_X_REAL_IP = '77.120.243.5'
153PATH_INFO = '/api/loan/configuration/'
154QUERY_STRING = ''
155RAW_URI = '/api/loan/configuration/'
156REMOTE_ADDR = '127.0.0.1'
157REMOTE_PORT = '48808'
158REQUEST_METHOD = 'GET'
159SCRIPT_NAME = ''
160SERVER_NAME = '127.0.0.1'
161SERVER_PORT = '8000'
162SERVER_PROTOCOL = 'HTTP/1.0'
163SERVER_SOFTWARE = 'gunicorn/19.7.1'
164gunicorn.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', 48808)>
165wsgi.errors = <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f097bb46ba8>
166wsgi.file_wrapper = ''
167wsgi.input = <gunicorn.http.body.Body object at 0x7f097bc18898>
168wsgi.multiprocess = True
169wsgi.multithread = False
170wsgi.run_once = False
171wsgi.url_scheme = 'http'
172wsgi.version = '(1, 0)'
173
174Settings:
175Using settings module microfinance.settings.staging
176ABSOLUTE_URL_OVERRIDES = {}
177ADMINS = []
178ADMIN_URL_PREFIX = '^admin/'
179ALLOWED_HOSTS = ['*']
180API_CACHING_TIMEOUT = '********************'
181API_URL_PREFIX = '********************'
182APPEND_SLASH = True
183ASSETS_AUTO_BUILD = True
184ASSETS_CACHE = True
185ASSETS_DEBUG = True
186ASSETS_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']
187ASSETS_MANIFEST = 'cache'
188ASSETS_ROOT = '/app/microfinance/var/static_build'
189ASSETS_UPDATER = 'timestamp'
190ASSETS_URL_EXPIRE = None
191ASSETS_URL_MAPPING = {}
192ASSETS_VERSIONS = 'hash'
193AUTHENTICATION_BACKENDS = "('microfinance.apps.authentication.backends.PhonePasswordBackend', 'microfinance.apps.authentication.backends.InnPasswordBackend', 'microfinance.apps.authentication.backends.PhoneCodeBackend', 'microfinance.apps.authentication.backends.EmailPasswordBackend')"
194AUTHORISATION_PHONE_CONFIRMATION_CODE_LENGTH = 4
195AUTH_PASSWORD_VALIDATORS = '********************'
196AUTH_USER_MODEL = 'authentication.User'
197BACKOFFICE_API_URL_PREFIX = '********************'
198BACKOFFICE_URL_PREFIX = '^backoffice/'
199BANKID_REDIRECT_URL = 'https://client.forza-dev.kitway.com.ua/profile/'
200BANK_ID_AUTH_DOMAIN = 'bankid.org.ua'
201BANK_ID_CERT = '/etc/app/bankid_cert.pem'
202BANK_ID_CLIENT_ID = 'f1e4f3a4-e4d8-428c-9e83-20dc96ed4034'
203BANK_ID_CLIENT_SECRET = '********************'
204BANK_ID_DATA_GATHER_DOMAIN_SPECIAL = 'biprocessing.org.ua'
205BASE_DIR = '/app/microfinance'
206BLOCK_PERIOD_INDEFINITE = 2147483647
207CACHES = {'default': {'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '127.0.0.1:11211'}}
208CACHE_FILE_MODE = None
209CACHE_MIDDLEWARE_ALIAS = 'default'
210CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
211CACHE_MIDDLEWARE_SECONDS = 600
212CELERY_BROKER_URL = 'amqp://'
213CELERY_ROUTES = {'microfinance.apps.loan_core.tasks.chech_loan_request': {'queue': 'celery'}, 'microfinance.libs.notifications.tasks.task_send_recently': {'queue': 'celery'}}
214CKEDITOR_CONFIGS = {'default': {'toolbar': 'Custom', 'toolbar_Custom': [['Preview', 'Print', '-', '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'}}
215CORS_ORIGIN_ALLOW_ALL = True
216CSRF_COOKIE_AGE = 31449600
217CSRF_COOKIE_DOMAIN = None
218CSRF_COOKIE_HTTPONLY = False
219CSRF_COOKIE_NAME = 'csrftoken'
220CSRF_COOKIE_PATH = '/'
221CSRF_COOKIE_SECURE = False
222CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
223CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
224CSRF_TRUSTED_ORIGINS = []
225CSRF_USE_SESSIONS = False
226DASHBOARD_STATS_HANDLERS = "('microfinance.apps.authentication.dashboard.UserProfileDash',)"
227DATABASES = {'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}}}
228DATABASE_ROUTERS = []
229DATA_UPLOAD_MAX_MEMORY_SIZE = None
230DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
231DATETIME_FORMAT = '%d.%m.%Y %H:%M'
232DATETIME_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']
233DATE_FORMAT = '%d.%m.%Y'
234DATE_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']
235DEBUG = True
236DEBUG_PROPAGATE_EXCEPTIONS = False
237DECIMAL_SEPARATOR = '.'
238DEFAULT_CHARSET = 'utf-8'
239DEFAULT_CONTENT_TYPE = 'text/html'
240DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
241DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
242DEFAULT_FROM_EMAIL = 'webmaster@localhost'
243DEFAULT_INDEX_TABLESPACE = ''
244DEFAULT_PHONE_REGION_CODE = 'UA'
245DEFAULT_TABLESPACE = ''
246DISALLOWED_USER_AGENTS = []
247DJANGO_ADMIN_DEBUG = False
248EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
249EMAIL_HOST = 'localhost'
250EMAIL_HOST_PASSWORD = '********************'
251EMAIL_HOST_USER = ''
252EMAIL_PORT = 25
253EMAIL_SENDER_EXTENDED_MODE = False
254EMAIL_SSL_CERTFILE = None
255EMAIL_SSL_KEYFILE = '********************'
256EMAIL_SUBJECT_PREFIX = '[Django] '
257EMAIL_TIMEOUT = None
258EMAIL_USE_LOCALTIME = False
259EMAIL_USE_SSL = False
260EMAIL_USE_TLS = False
261FILE_CHARSET = 'utf-8'
262FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
263FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
264FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
265FILE_UPLOAD_PERMISSIONS = None
266FILE_UPLOAD_TEMP_DIR = None
267FIRST_DAY_OF_WEEK = 0
268FIXTURE_DIRS = []
269FORCE_SCRIPT_NAME = None
270FORMAT_MODULE_PATH = None
271FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
272HTTP_HOST = 'http://forza-dev.kitway.com.ua/'
273IGNORABLE_404_URLS = []
274INPUT_DATE_FORMAT = '%Y-%m-%d'
275INSTALLED_APPS = ['raven.contrib.django.raven_compat', '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']
276INTERNAL_IPS = []
277JS_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']
278JS_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']
279JS_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']
280JS_REVERSE_JS_VAR_NAME = 'Urls'
281LANGUAGES = "(('uk', 'ãúрðїýÑÂьúð'), ('ru', 'ÃʄĄÂÑÂúøù'))"
282LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
283LANGUAGE_CODE = 'uk'
284LANGUAGE_COOKIE_AGE = None
285LANGUAGE_COOKIE_DOMAIN = None
286LANGUAGE_COOKIE_NAME = '_locale_'
287LANGUAGE_COOKIE_PATH = '/'
288LOCALE_PATHS = ['/app/microfinance/locale']
289LOGGING = {'version': 1, 'disable_existing_loggers': False, 'root': {'level': 'WARNING', 'handlers': ['sentry']}, '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'}, 'sentry.errors': {'level': 'ERROR', 'handlers': ['error_file'], 'propagate': False}}}
290LOGGING_CONFIG = 'logging.config.dictConfig'
291LOGIN_REDIRECT_URL = '/accounts/profile/'
292LOGIN_URL = '/admin/login/'
293LOGOUT_REDIRECT_URL = None
294MANAGERS = []
295MEDIA_ROOT = '/app/microfinance/media/'
296MEDIA_URL = '/media/'
297MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
298MIDDLEWARE = ['raven.contrib.django.middleware.SentryMiddleware', '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']
299MIDDLEWARE_CLASSES = ['django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware']
300MIGRATION_MODULES = {}
301MONTH_DAY_FORMAT = 'F j'
302NOTIFICATION_ADDRESSEE_DEFINITION = {'sms': 'microfinance.apps.authentication.helpers.get_user_phone_number'}
303NOTIFICATION_SERVICES = {'sms': 'sms_sender.service.SmsService'}
304NUMBER_GROUPING = 0
305OPENINGHOURS_PREMISES_MODEL = 'company.CompanyOffice'
306PASSWORD_HASHERS = '********************'
307PASSWORD_RESET_TIMEOUT_DAYS = '********************'
308PAYBOX_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': {}}}
309PAYSYS_BIND_CARD_BACKENDS = ['liqpay']
310PAYSYS_DEFAULT_CARD_BIND_BACKEND = 'liqpay'
311PREPEND_WWW = False
312PROJECT_NAME = 'microfinance'
313RAVEN_CONFIG = {'dsn': 'https://3d8dc365729c4822847472f02376db93:c3ddc8cc725f48429fe8d5f3e41a8ca3@sentry.kit-xxi.com.ua/17', 'release': 'dev', 'exclude_paths': ['django', 'rest_framework', 'raven'], 'ignore_exceptions': ['django.exceptions.http.Http404']}
314REGISTRATION_PHONE_CONFIRMATION_CODE_LENGTH = 4
315RESOLVER = <django_assets.env.DjangoResolver object at 0x7f097c2919b0>
316REST_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',)}
317ROLEPERMISSIONS_MODULE = 'microfinance.apps.authentication.roles'
318ROLEPERMISSIONS_REGISTER_ADMIN = False
319ROOT_URLCONF = 'microfinance.urls'
320RUNNING_CI_TESTS = False
321SCORING_SIMULATION = True
322SECRET_KEY = '********************'
323SECURE_BROWSER_XSS_FILTER = False
324SECURE_CONTENT_TYPE_NOSNIFF = False
325SECURE_HSTS_INCLUDE_SUBDOMAINS = False
326SECURE_HSTS_PRELOAD = False
327SECURE_HSTS_SECONDS = 0
328SECURE_PROXY_SSL_HEADER = None
329SECURE_REDIRECT_EXEMPT = []
330SECURE_SERVICES = ['microfinance.libs.secure.service.UserSecureService']
331SECURE_SSL_HOST = None
332SECURE_SSL_REDIRECT = False
333SERVER_EMAIL = 'root@localhost'
334SESSION_CACHE_ALIAS = 'default'
335SESSION_COOKIE_AGE = 1209600
336SESSION_COOKIE_DOMAIN = None
337SESSION_COOKIE_HTTPONLY = True
338SESSION_COOKIE_NAME = 'sessionid'
339SESSION_COOKIE_PATH = '/'
340SESSION_COOKIE_SECURE = False
341SESSION_ENGINE = 'django.contrib.sessions.backends.db'
342SESSION_EXPIRE_AT_BROWSER_CLOSE = False
343SESSION_FILE_PATH = None
344SESSION_SAVE_EVERY_REQUEST = False
345SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
346SETTINGS_MODULE = 'microfinance.settings.staging'
347SHORT_DATETIME_FORMAT = 'm/d/Y P'
348SHORT_DATE_FORMAT = 'm/d/Y'
349SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
350SILENCED_SYSTEM_CHECKS = []
351SILKY_AUTHENTICATION = True
352SILKY_AUTHORISATION = True
353SILKY_MAX_RECORDED_REQUESTS = 2000
354SILKY_META = True
355SILKY_PYTHON_PROFILER = True
356SMS_SENDER_EXTENDED_MODE = False
357STATICFILES_DIRS = "('/app/microfinance/static', '/app/microfinance/var/static_build')"
358STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
359STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
360STATIC_ROOT = '/app/microfinance/var/static'
361STATIC_URL = '/static/'
362SWAGGER_SETTINGS = {'DEFAULT_INFO': 'microfinance.urls.api_info', 'DEFAULT_AUTO_SCHEMA_CLASS': 'microfinance.libs.swagger.SwaggerAutoSchema'}
363TEMPLATES = [{'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']}}]
364TEMPORARY_BLOCK = True
365TEST_MODE = True
366TEST_NON_SERIALIZED_APPS = []
367TEST_RUNNER = 'django.test.runner.DiscoverRunner'
368THOUSAND_SEPARATOR = ','
369TIME_FORMAT = 'P'
370TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
371TIME_ZONE = 'Europe/Kiev'
372USER_IS_STAFF = <function _default_user_is_staff at 0x7f097fa3da60>
373USER_MODEL = 'authentication.User'
374USER_MODEL_APP = 'authentication'
375USER_MODEL_NAME = 'User'
376USER_MODEL_STR = 'microfinance.apps.authentication.models.User'
377USER_PERMISSION_CACHE_TIMEOUT = 3600
378USE_ETAGS = False
379USE_I18N = True
380USE_L10N = True
381USE_THOUSAND_SEPARATOR = False
382USE_TZ = True
383USE_X_FORWARDED_HOST = False
384USE_X_FORWARDED_PORT = False
385WSGI_APPLICATION = 'microfinance.wsgi.application'
386X_FRAME_OPTIONS = 'SAMEORIGIN'
387YEAR_MONTH_FORMAT = 'F Y'
388
389
390You're seeing this error because you have DEBUG = True in your
391Django settings file. Change that to False, and Django will
392display a standard page generated by the handler for this status code.