· 7 years ago · Feb 26, 2018, 09:38 AM
1AttributeError at /backoffice/api/verification/loan_verification_start/
2'QuerySet' object has no attribute 'select_relared'
3
4Request Method: POST
5Request URL: http://127.0.0.1:8000/backoffice/api/verification/loan_verification_start/
6Django Version: 1.11.10
7Python Executable: /home/fedor/Development/Enviroments/forza_python_36/bin/python3.6
8Python Version: 3.6.1
9Python Path: ['/home/fedor/Development/Projects/forza_restore/loan-service', '/home/fedor/Development/Projects/forza_restore/loan-service', '/home/fedor/Development/Enviroments/forza_python_36/lib/python36.zip', '/home/fedor/Development/Enviroments/forza_python_36/lib/python3.6', '/home/fedor/Development/Enviroments/forza_python_36/lib/python3.6/lib-dynload', '/usr/lib/python3.6', '/home/fedor/Development/Enviroments/forza_python_36/lib/python3.6/site-packages', '/home/fedor/Development/Projects/forza_restore/loan-service']
10Server time: ßý, 26 Ûют 2018 11:35:38 +0200
11Installed 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_cache_dependencies',
24 'django_extensions',
25 'openinghours',
26 'rosetta',
27 'rest_framework',
28 'rest_framework.authtoken',
29 'drf_yasg',
30 'rangefilter',
31 'ckeditor',
32 'rolepermissions',
33 'smart_docs',
34 'sms_sender',
35 'fixtures_migrator',
36 'tempometry',
37 'ukrmail',
38 'paybox',
39 'paybox_liqpay',
40 'microfinance.libs',
41 'microfinance.apps.backoffice',
42 'microfinance.apps.user_profile',
43 'microfinance.apps.agent',
44 'microfinance.apps.documents',
45 'microfinance.apps.bank_card',
46 'microfinance.apps.company',
47 'microfinance.apps.system_secure',
48 'microfinance.apps.loan_core',
49 'microfinance.apps.loan_client',
50 'microfinance.apps.loan_backoffice',
51 'microfinance.apps.loan_config_rules',
52 'microfinance.libs.secure',
53 'microfinance.libs.bankid',
54 'microfinance.libs.notifications',
55 'microfinance.libs.confirm_code',
56 'behave_django',
57 'microfinance.libs.test_api',
58 'silk']
59Installed Middleware:
60['silk.middleware.SilkyMiddleware',
61 'corsheaders.middleware.CorsMiddleware',
62 'django.middleware.security.SecurityMiddleware',
63 'django.contrib.sessions.middleware.SessionMiddleware',
64 'django.middleware.common.CommonMiddleware',
65 'django.middleware.csrf.CsrfViewMiddleware',
66 'django.contrib.auth.middleware.AuthenticationMiddleware',
67 'django.contrib.messages.middleware.MessageMiddleware',
68 'django.middleware.clickjacking.XFrameOptionsMiddleware']
69
70
71Traceback:
72
73File "/home/fedor/Development/Enviroments/forza_python_36/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
74 41. response = get_response(request)
75
76File "/home/fedor/Development/Enviroments/forza_python_36/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
77 187. response = self.process_exception_by_middleware(e, request)
78
79File "/home/fedor/Development/Enviroments/forza_python_36/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
80 185. response = wrapped_callback(request, *callback_args, **callback_kwargs)
81
82File "/home/fedor/Development/Enviroments/forza_python_36/lib/python3.6/site-packages/django/views/decorators/csrf.py" in wrapped_view
83 58. return view_func(*args, **kwargs)
84
85File "/home/fedor/Development/Enviroments/forza_python_36/lib/python3.6/site-packages/django/views/generic/base.py" in view
86 68. return self.dispatch(request, *args, **kwargs)
87
88File "/home/fedor/Development/Enviroments/forza_python_36/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
89 494. response = self.handle_exception(exc)
90
91File "/home/fedor/Development/Enviroments/forza_python_36/lib/python3.6/site-packages/rest_framework/views.py" in handle_exception
92 454. self.raise_uncaught_exception(exc)
93
94File "/home/fedor/Development/Enviroments/forza_python_36/lib/python3.6/site-packages/rest_framework/views.py" in dispatch
95 491. response = handler(request, *args, **kwargs)
96
97File "/home/fedor/Development/Projects/forza_restore/loan-service/microfinance/apps/loan_client/views/loan_verification.py" in post
98 43. res = LoanRequestService.create_and_start_verification(user=request.user)
99
100File "/home/fedor/Development/Projects/forza_restore/loan-service/microfinance/apps/loan_core/services/loan_request.py" in create_and_start_verification
101 188. LoanVerificationService(lv).start_verification()
102
103File "/home/fedor/Development/Projects/forza_restore/loan-service/microfinance/apps/loan_core/services/loan_verification.py" in start_verification
104 39. pk=self.instance.pk,
105
106Exception Type: AttributeError at /backoffice/api/verification/loan_verification_start/
107Exception Value: 'QuerySet' object has no attribute 'select_relared'
108Request information:
109USER: ÃÂôüіýіÑÂтрðтþр admin
110
111GET: No GET data
112
113POST: No POST data
114
115FILES: No FILES data
116
117COOKIES:
118_ym_uid = '1501246346412910403'
119two_factor_auth = '689d1864bc6a1154d56b68486349fd18d959f6e87d6e07584dfabc72fc870eb2'
120_ga = 'GA1.4.1292907393.1510070180'
121csrftoken = 'LUdWkKoLbCwnpww8G85JnDFPSItrAirEHuVdOEy1XMDbx8lqzFikwxfj74KJJhFo'
122sessionid = 'q0bi20fgii4gzuj0f6ipvc55qlyjpoy0'
123
124META:
125CONTENT_LENGTH = '0'
126CONTENT_TYPE = 'text/plain'
127CSRF_COOKIE = 'LUdWkKoLbCwnpww8G85JnDFPSItrAirEHuVdOEy1XMDbx8lqzFikwxfj74KJJhFo'
128DBUS_SESSION_BUS_ADDRESS = 'unix:path=/run/user/1000/bus'
129DEFAULTS_PATH = '/usr/share/gconf/Lubuntu.default.path'
130DESKTOP_SESSION = 'Lubuntu'
131DESKTOP_STARTUP_ID = 'lxpanel-2649-kit-nb08-"/opt/jetbrains/pycharm/bin/pycharm.sh"-36_TIME245908090'
132DISPLAY = ':0.0'
133DJANGO_SETTINGS_MODULE = 'microfinance.settings.behave_tests'
134GATEWAY_INTERFACE = 'CGI/1.1'
135GDMSESSION = 'Lubuntu'
136GDM_LANG = 'en_US'
137GTK_OVERLAY_SCROLLING = '0'
138HOME = '/home/fedor'
139HTTP_ACCEPT = 'application/json, text/plain, */*'
140HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
141HTTP_ACCEPT_LANGUAGE = 'ru,uk-UA;q=0.8,uk;q=0.6,en-US;q=0.4,en;q=0.2'
142HTTP_CONNECTION = 'keep-alive'
143HTTP_COOKIE = '_ym_uid=1501246346412910403; two_factor_auth=689d1864bc6a1154d56b68486349fd18d959f6e87d6e07584dfabc72fc870eb2; _ga=GA1.4.1292907393.1510070180; csrftoken=LUdWkKoLbCwnpww8G85JnDFPSItrAirEHuVdOEy1XMDbx8lqzFikwxfj74KJJhFo; sessionid=q0bi20fgii4gzuj0f6ipvc55qlyjpoy0'
144HTTP_HOST = '127.0.0.1:8000'
145HTTP_ORIGIN = 'http://127.0.0.1:8000'
146HTTP_REFERER = 'http://127.0.0.1:8000/backoffice/loan/verifier_room/'
147HTTP_USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36'
148HTTP_X_CSRFTOKEN = 'LUdWkKoLbCwnpww8G85JnDFPSItrAirEHuVdOEy1XMDbx8lqzFikwxfj74KJJhFo'
149LANG = 'en_US.UTF-8'
150LANGUAGE = 'en_US'
151LC_ADDRESS = 'uk_UA.UTF-8'
152LC_IDENTIFICATION = 'uk_UA.UTF-8'
153LC_MEASUREMENT = 'uk_UA.UTF-8'
154LC_MONETARY = 'uk_UA.UTF-8'
155LC_NAME = 'uk_UA.UTF-8'
156LC_NUMERIC = 'uk_UA.UTF-8'
157LC_PAPER = 'uk_UA.UTF-8'
158LC_TELEPHONE = 'uk_UA.UTF-8'
159LC_TIME = 'uk_UA.UTF-8'
160LD_LIBRARY_PATH = '/opt/jetbrains/pycharm/bin:'
161LOGNAME = 'fedor'
162MANDATORY_PATH = '/usr/share/gconf/Lubuntu.mandatory.path'
163OLDPWD = '/opt/jetbrains/pycharm/bin'
164PATH = '/home/fedor/Development/Enviroments/forza_python_36/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin'
165PATH_INFO = '/backoffice/api/verification/loan_verification_start/'
166PS1 = '(forza_python_36) '
167PWD = '/home/fedor/Development/Projects/forza_restore/loan-service'
168PYCHARM_HOSTED = '1'
169PYTHONIOENCODING = 'UTF-8'
170PYTHONPATH = '/home/fedor/Development/Projects/forza_restore/loan-service'
171PYTHONUNBUFFERED = '1'
172QT_ACCESSIBILITY = '1'
173QT_LINUX_ACCESSIBILITY_ALWAYS_ON = '1'
174QT_PLATFORM_PLUGIN = 'lxqt'
175QT_QPA_PLATFORMTHEME = 'lxqt'
176QT_STYLE_OVERRIDE = 'gtk'
177QUERY_STRING = ''
178REMOTE_ADDR = '127.0.0.1'
179REMOTE_HOST = ''
180REQUEST_METHOD = 'POST'
181RUN_MAIN = 'true'
182SCRIPT_NAME = ''
183SERVER_NAME = 'localhost'
184SERVER_PORT = '8000'
185SERVER_PROTOCOL = 'HTTP/1.1'
186SERVER_SOFTWARE = 'WSGIServer/0.2'
187SHELL = '/bin/bash'
188SHLVL = '0'
189SSH_AGENT_PID = '2620'
190SSH_AUTH_SOCK = '/tmp/ssh-0xV78sM8qTET/agent.2511'
191TZ = 'Europe/Kiev'
192USER = 'fedor'
193VIRTUAL_ENV = '/home/fedor/Development/Enviroments/forza_python_36'
194XAUTHORITY = '/home/fedor/.Xauthority'
195XDG_CONFIG_DIRS = '/etc/xdg/lubuntu:/etc/xdg/xdg-Lubuntu:/etc/xdg'
196XDG_CONFIG_HOME = '/home/fedor/.config'
197XDG_CURRENT_DESKTOP = 'LXDE'
198XDG_DATA_DIRS = '/etc/xdg/lubuntu:/usr/local/share:/usr/share:/usr/share/gdm:/var/lib/menu-xdg:/usr/share/Lubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop'
199XDG_GREETER_DATA_DIR = '/var/lib/lightdm-data/fedor'
200XDG_MENU_PREFIX = 'lxde-'
201XDG_RUNTIME_DIR = '/run/user/1000'
202XDG_SEAT = 'seat0'
203XDG_SEAT_PATH = '/org/freedesktop/DisplayManager/Seat0'
204XDG_SESSION_DESKTOP = 'Lubuntu'
205XDG_SESSION_ID = 'c2'
206XDG_SESSION_PATH = '/org/freedesktop/DisplayManager/Session0'
207XDG_SESSION_TYPE = 'x11'
208XDG_VTNR = '7'
209_LXSESSION_PID = '2511'
210wsgi.errors = <_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'>
211wsgi.file_wrapper = ''
212wsgi.input = <_io.BufferedReader name=8>
213wsgi.multiprocess = False
214wsgi.multithread = True
215wsgi.run_once = False
216wsgi.url_scheme = 'http'
217wsgi.version = '(1, 0)'
218
219Settings:
220Using settings module microfinance.settings.behave_tests
221ABSOLUTE_URL_OVERRIDES = {}
222ADMINS = []
223ADMIN_URL_PREFIX = '^admin/'
224ALLOWED_HOSTS = ['*']
225API_CACHING_TIMEOUT = '********************'
226API_URL_PREFIX = '********************'
227APPEND_SLASH = True
228ASSETS_AUTO_BUILD = True
229ASSETS_CACHE = True
230ASSETS_DEBUG = True
231ASSETS_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']
232ASSETS_MANIFEST = 'cache'
233ASSETS_ROOT = '/home/fedor/Development/Projects/forza_restore/loan-service/microfinance/var/static_build'
234ASSETS_UPDATER = 'timestamp'
235ASSETS_URL_EXPIRE = None
236ASSETS_URL_MAPPING = {}
237ASSETS_VERSIONS = 'hash'
238AUTHENTICATION_BACKENDS = "('microfinance.apps.authentication.backends.PhonePasswordBackend', 'microfinance.apps.authentication.backends.InnPasswordBackend', 'microfinance.apps.authentication.backends.PhoneCodeBackend', 'microfinance.apps.authentication.backends.StaffEmailBackend')"
239AUTHORISATION_PHONE_CONFIRMATION_CODE_LENGTH = 4
240AUTH_PASSWORD_VALIDATORS = '********************'
241AUTH_USER_MODEL = 'authentication.User'
242BACKOFFICE_API_URL_PREFIX = '********************'
243BACKOFFICE_URL_PREFIX = '^backoffice/'
244BANKID_REDIRECT_URL = None
245BANK_ID_AUTH_DOMAIN = 'bankid.org.ua'
246BANK_ID_CERT = '/home/fedor/Development/Projects/forza_restore/loan-service/microfinance/settings/private.pem'
247BANK_ID_CLIENT_ID = None
248BANK_ID_CLIENT_SECRET = '********************'
249BANK_ID_DATA_GATHER_DOMAIN_SPECIAL = 'biprocessing.org.ua'
250BASE_DIR = '/home/fedor/Development/Projects/forza_restore/loan-service/microfinance'
251BLOCK_PERIOD_INDEFINITE = 2147483647
252CACHES = {'default': {'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '127.0.0.1:11211'}}
253CACHE_FILE_MODE = None
254CACHE_MIDDLEWARE_ALIAS = 'default'
255CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
256CACHE_MIDDLEWARE_SECONDS = 600
257CELERY_ROUTES = {'microfinance.apps.loan_core.tasks.chech_loan_request': {'queue': 'celery'}, 'microfinance.libs.notifications.tasks.task_send_recently': {'queue': 'celery'}}
258CKEDITOR_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'}}
259CORS_ORIGIN_ALLOW_ALL = True
260CSRF_COOKIE_AGE = 31449600
261CSRF_COOKIE_DOMAIN = None
262CSRF_COOKIE_HTTPONLY = False
263CSRF_COOKIE_NAME = 'csrftoken'
264CSRF_COOKIE_PATH = '/'
265CSRF_COOKIE_SECURE = False
266CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
267CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
268CSRF_TRUSTED_ORIGINS = []
269CSRF_USE_SESSIONS = False
270DASHBOARD_STATS_HANDLERS = "('microfinance.apps.authentication.dashboard.UserProfileDash',)"
271DATABASES = {'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}}}
272DATABASE_ROUTERS = []
273DATA_UPLOAD_MAX_MEMORY_SIZE = None
274DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
275DATETIME_FORMAT = '%d.%m.%Y %H:%M'
276DATETIME_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']
277DATE_FORMAT = '%d.%m.%Y'
278DATE_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']
279DEBUG = True
280DEBUG_PROPAGATE_EXCEPTIONS = False
281DECIMAL_SEPARATOR = '.'
282DEFAULT_CHARSET = 'utf-8'
283DEFAULT_CONTENT_TYPE = 'text/html'
284DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
285DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
286DEFAULT_FROM_EMAIL = 'webmaster@localhost'
287DEFAULT_INDEX_TABLESPACE = ''
288DEFAULT_PHONE_REGION_CODE = 'UA'
289DEFAULT_TABLESPACE = ''
290DISALLOWED_USER_AGENTS = []
291DJANGO_ADMIN_DEBUG = True
292EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
293EMAIL_HOST = 'localhost'
294EMAIL_HOST_PASSWORD = '********************'
295EMAIL_HOST_USER = ''
296EMAIL_PORT = 25
297EMAIL_SENDER_EXTENDED_MODE = False
298EMAIL_SSL_CERTFILE = None
299EMAIL_SSL_KEYFILE = '********************'
300EMAIL_SUBJECT_PREFIX = '[Django] '
301EMAIL_TIMEOUT = None
302EMAIL_USE_LOCALTIME = False
303EMAIL_USE_SSL = False
304EMAIL_USE_TLS = False
305FILE_CHARSET = 'utf-8'
306FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
307FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
308FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
309FILE_UPLOAD_PERMISSIONS = None
310FILE_UPLOAD_TEMP_DIR = None
311FIRST_DAY_OF_WEEK = 0
312FIXTURE_DIRS = "('microfinance/apps/authentication/fixtures',)"
313FORCE_SCRIPT_NAME = None
314FORMAT_MODULE_PATH = None
315FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
316HTTP_HOST = 'http://127.0.0.1:8892'
317IGNORABLE_404_URLS = []
318INPUT_DATE_FORMAT = '%Y-%m-%d'
319INSTALLED_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', '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.apps.loan_config_rules', 'microfinance.libs.secure', 'microfinance.libs.bankid', 'microfinance.libs.notifications', 'microfinance.libs.confirm_code', 'behave_django', 'microfinance.libs.test_api', 'silk']
320INTERNAL_IPS = []
321JS_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', 'verification-api']
322JS_REVERSE_JS_VAR_NAME = 'Urls'
323LANGUAGES = "(('uk', 'ãúрðїýÑÂьúð'), ('ru', 'à уÑÂÑÂúøù'))"
324LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
325LANGUAGE_CODE = 'uk'
326LANGUAGE_COOKIE_AGE = None
327LANGUAGE_COOKIE_DOMAIN = None
328LANGUAGE_COOKIE_NAME = '_locale_'
329LANGUAGE_COOKIE_PATH = '/'
330LOCALE_PATHS = ['/home/fedor/Development/Projects/forza_restore/loan-service/microfinance/locale']
331LOGGING = {'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': ['console', 'error_file'], 'propagate': True, 'level': 'ERROR'}, 'microfinance': {'handlers': ['console', 'debug_file'], 'propagate': True, 'level': 'DEBUG'}, 'django.server': {'handlers': ['requests_file'], 'propagate': True, 'level': 'INFO'}}}
332LOGGING_CONFIG = 'logging.config.dictConfig'
333LOGIN_REDIRECT_URL = '/accounts/profile/'
334LOGIN_URL = '/admin/login/'
335LOGOUT_REDIRECT_URL = None
336MANAGERS = []
337MEDIA_ROOT = '/home/fedor/Development/Projects/forza_restore/loan-service/microfinance/media/'
338MEDIA_URL = '/media/'
339MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
340MIDDLEWARE = ['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']
341MIDDLEWARE_CLASSES = ['django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware']
342MIGRATION_MODULES = {}
343MONTH_DAY_FORMAT = 'F j'
344NOTIFICATION_ADDRESSEE_DEFINITION = {'sms': 'microfinance.apps.authentication.helpers.get_user_phone_number'}
345NOTIFICATION_SERVICES = {'sms': 'sms_sender.service.SmsService'}
346NUMBER_GROUPING = 0
347OPENINGHOURS_PREMISES_MODEL = 'company.CompanyOffice'
348PASSWORD_HASHERS = '********************'
349PASSWORD_RESET_TIMEOUT_DAYS = '********************'
350PAYBOX_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': 30}, 'refill': {}, 'pay': {}}}
351PAYSYS_BIND_CARD_BACKENDS = ['liqpay']
352PAYSYS_DEFAULT_CARD_BIND_BACKEND = 'liqpay'
353PREPEND_WWW = False
354PROJECT_NAME = 'microfinance'
355RAVEN_CONFIG = {'dsn': None, 'release': ''}
356REGISTRATION_PHONE_CONFIRMATION_CODE_LENGTH = 4
357RESOLVER = <django_assets.env.DjangoResolver object at 0x7ff57a0948d0>
358REST_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',)}
359ROLEPERMISSIONS_MODULE = 'microfinance.apps.authentication.roles'
360ROLEPERMISSIONS_REGISTER_ADMIN = False
361ROOT_URLCONF = 'microfinance.urls'
362SCORING_SIMULATION = True
363SECRET_KEY = '********************'
364SECURE_BROWSER_XSS_FILTER = False
365SECURE_CONTENT_TYPE_NOSNIFF = False
366SECURE_HSTS_INCLUDE_SUBDOMAINS = False
367SECURE_HSTS_PRELOAD = False
368SECURE_HSTS_SECONDS = 0
369SECURE_PROXY_SSL_HEADER = None
370SECURE_REDIRECT_EXEMPT = []
371SECURE_SERVICES = ['microfinance.libs.secure.service.UserSecureService']
372SECURE_SSL_HOST = None
373SECURE_SSL_REDIRECT = False
374SERVER_EMAIL = 'root@localhost'
375SESSION_CACHE_ALIAS = 'default'
376SESSION_COOKIE_AGE = 1209600
377SESSION_COOKIE_DOMAIN = None
378SESSION_COOKIE_HTTPONLY = True
379SESSION_COOKIE_NAME = 'sessionid'
380SESSION_COOKIE_PATH = '/'
381SESSION_COOKIE_SECURE = False
382SESSION_ENGINE = 'django.contrib.sessions.backends.db'
383SESSION_EXPIRE_AT_BROWSER_CLOSE = False
384SESSION_FILE_PATH = None
385SESSION_SAVE_EVERY_REQUEST = False
386SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
387SETTINGS_MODULE = 'microfinance.settings.behave_tests'
388SHORT_DATETIME_FORMAT = 'm/d/Y P'
389SHORT_DATE_FORMAT = 'm/d/Y'
390SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
391SILENCED_SYSTEM_CHECKS = []
392SILKY_AUTHENTICATION = True
393SILKY_AUTHORISATION = True
394SILKY_MAX_RECORDED_REQUESTS = 2000
395SILKY_META = True
396SILKY_PYTHON_PROFILER = True
397SMS_SENDER_EXTENDED_MODE = True
398STATICFILES_DIRS = "('/home/fedor/Development/Projects/forza_restore/loan-service/microfinance/static', '/home/fedor/Development/Projects/forza_restore/loan-service/microfinance/var/static_build')"
399STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
400STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
401STATIC_ROOT = '/home/fedor/Development/Projects/forza_restore/loan-service/microfinance/var/static'
402STATIC_URL = '/static/'
403SWAGGER_SETTINGS = {'DEFAULT_INFO': 'microfinance.urls.api_info'}
404TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/home/fedor/Development/Projects/forza_restore/loan-service/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']}}]
405TEMPORARY_BLOCK = True
406TEST_MODE = True
407TEST_NON_SERIALIZED_APPS = ['openinghours']
408TEST_RUNNER = 'django.test.runner.DiscoverRunner'
409THOUSAND_SEPARATOR = ','
410TIME_FORMAT = 'P'
411TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
412TIME_ZONE = 'Europe/Kiev'
413UKRMAIL_MOCK = True
414USER_IS_STAFF = <function _default_user_is_staff at 0x7ff57fad57b8>
415USER_MODEL = 'authentication.User'
416USER_MODEL_APP = 'authentication'
417USER_MODEL_NAME = 'User'
418USER_MODEL_STR = 'microfinance.apps.authentication.models.User'
419USER_PERMISSION_CACHE_TIMEOUT = 3600
420USE_ETAGS = False
421USE_I18N = True
422USE_L10N = True
423USE_THOUSAND_SEPARATOR = False
424USE_TZ = False
425USE_X_FORWARDED_HOST = False
426USE_X_FORWARDED_PORT = False
427WSGI_APPLICATION = 'microfinance.wsgi.application'
428X_FRAME_OPTIONS = 'SAMEORIGIN'
429YEAR_MONTH_FORMAT = 'F Y'
430
431
432You're seeing this error because you have DEBUG = True in your
433Django settings file. Change that to False, and Django will
434display a standard page generated by the handler for this status code.