· 4 years ago · Jan 21, 2021, 12:26 PM
1ValueError at /api/v1/auth/login/
2You have multiple authentication backends configured and therefore must provide the `backend` argument or set the `backend` attribute on the user.
3
4Request Method: POST
5Request URL: http://coffeeindustry.webcase-dev.com/api/v1/auth/login/
6Django Version: 2.2
7Python Executable: /home/coffeeindustry/coffeeindustry/coffeeindustry/server/.venv/bin/python
8Python Version: 3.7.9
9Python Path: ['/home/coffeeindustry/coffeeindustry/coffeeindustry/server', '/home/coffeeindustry/coffeeindustry/coffeeindustry/server/.venv/bin', '/usr/lib/python37.zip', '/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', '/home/coffeeindustry/coffeeindustry/coffeeindustry/server/.venv/lib/python3.7/site-packages', '/home/coffeeindustry/coffeeindustry/coffeeindustry/server/.venv/lib/python3.7/site-packages/odf', '/home/coffeeindustry/coffeeindustry/coffeeindustry/server/.venv/lib/python3.7/site-packages/odf', '/home/coffeeindustry/coffeeindustry/coffeeindustry/server/.venv/lib/python3.7/site-packages/odf', '/home/coffeeindustry/coffeeindustry/coffeeindustry/server/.venv/lib/python3.7/site-packages/odf', '/home/coffeeindustry/coffeeindustry/coffeeindustry/server/.venv/lib/python3.7/site-packages/odf', '/home/coffeeindustry/coffeeindustry/coffeeindustry/server/.venv/lib/python3.7/site-packages/odf', '/home/coffeeindustry/coffeeindustry/coffeeindustry/server/.venv/lib/python3.7/site-packages/odf']
10Server time: Thu, 21 Jan 2021 12:16:54 +0000
11Installed Applications:
12['markup',
13 'shared',
14 'apps.staff',
15 'apps.nations',
16 'apps.products',
17 'apps.attributes',
18 'apps.shops',
19 'apps.about',
20 'apps.organization',
21 'apps.news',
22 'apps.frontend',
23 'apps.optimized_image',
24 'rosetta',
25 'django_jinja',
26 'jet',
27 'import_export',
28 'modeltranslation',
29 'mptt',
30 'versatileimagefield',
31 'adminsortable2',
32 'constance',
33 'solo',
34 'rest_framework',
35 'rest_framework.authtoken',
36 'rest_framework_recaptcha',
37 'standards',
38 'postie',
39 'parler',
40 'codemirror2',
41 'des',
42 'ckeditor',
43 'ckeditor_uploader',
44 'django.contrib.admin',
45 'django.contrib.auth',
46 'django.contrib.contenttypes',
47 'django.contrib.sessions',
48 'django.contrib.messages',
49 'django.contrib.staticfiles',
50 'django.contrib.sites',
51 'allauth',
52 'allauth.account',
53 'allauth.socialaccount',
54 'allauth.socialaccount.providers.google',
55 'rest_auth',
56 'rest_auth.registration',
57 'webpack_loader']
58Installed Middleware:
59['django.middleware.security.SecurityMiddleware',
60 'django.contrib.sessions.middleware.SessionMiddleware',
61 'django.middleware.common.CommonMiddleware',
62 'django.middleware.csrf.CsrfViewMiddleware',
63 'django.middleware.locale.LocaleMiddleware',
64 'django.contrib.auth.middleware.AuthenticationMiddleware',
65 'django.contrib.messages.middleware.MessageMiddleware',
66 'django.middleware.clickjacking.XFrameOptionsMiddleware',
67 'shared.middleware.extra_slashes_redirect_middleware']
68
69
70Traceback:
71
72File "/home/coffeeindustry/coffeeindustry/coffeeindustry/server/.venv/lib/python3.7/site-packages/django/contrib/auth/__init__.py" in login
73 111. backend = backend or user.backend
74
75During handling of the above exception ('CustomUser' object has no attribute 'backend'), another exception occurred:
76
77File "/home/coffeeindustry/coffeeindustry/coffeeindustry/server/.venv/lib/python3.7/site-packages/django/core/handlers/exception.py" in inner
78 34. response = get_response(request)
79
80File "/home/coffeeindustry/coffeeindustry/coffeeindustry/server/.venv/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
81 115. response = self.process_exception_by_middleware(e, request)
82
83File "/home/coffeeindustry/coffeeindustry/coffeeindustry/server/.venv/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response
84 113. response = wrapped_callback(request, *callback_args, **callback_kwargs)
85
86File "/home/coffeeindustry/coffeeindustry/coffeeindustry/server/.venv/lib/python3.7/site-packages/django/views/decorators/csrf.py" in wrapped_view
87 54. return view_func(*args, **kwargs)
88
89File "/home/coffeeindustry/coffeeindustry/coffeeindustry/server/.venv/lib/python3.7/site-packages/django/views/generic/base.py" in view
90 71. return self.dispatch(request, *args, **kwargs)
91
92File "/home/coffeeindustry/coffeeindustry/coffeeindustry/server/.venv/lib/python3.7/site-packages/django/utils/decorators.py" in _wrapper
93 45. return bound_method(*args, **kwargs)
94
95File "/home/coffeeindustry/coffeeindustry/coffeeindustry/server/.venv/lib/python3.7/site-packages/django/views/decorators/debug.py" in sensitive_post_parameters_wrapper
96 76. return view(request, *args, **kwargs)
97
98File "/home/coffeeindustry/coffeeindustry/coffeeindustry/server/.venv/lib/python3.7/site-packages/rest_auth/views.py" in dispatch
99 49. return super(LoginView, self).dispatch(*args, **kwargs)
100
101File "/home/coffeeindustry/coffeeindustry/coffeeindustry/server/.venv/lib/python3.7/site-packages/rest_framework/views.py" in dispatch
102 509. response = self.handle_exception(exc)
103
104File "/home/coffeeindustry/coffeeindustry/coffeeindustry/server/.venv/lib/python3.7/site-packages/rest_framework/views.py" in handle_exception
105 469. self.raise_uncaught_exception(exc)
106
107File "/home/coffeeindustry/coffeeindustry/coffeeindustry/server/.venv/lib/python3.7/site-packages/rest_framework/views.py" in raise_uncaught_exception
108 480. raise exc
109
110File "/home/coffeeindustry/coffeeindustry/coffeeindustry/server/.venv/lib/python3.7/site-packages/rest_framework/views.py" in dispatch
111 506. response = handler(request, *args, **kwargs)
112
113File "/home/coffeeindustry/coffeeindustry/coffeeindustry/server/apps/staff/api/views.py" in post
114 42. result = super().post(request, *args, **kwargs)
115
116File "/home/coffeeindustry/coffeeindustry/coffeeindustry/server/.venv/lib/python3.7/site-packages/rest_auth/views.py" in post
117 105. self.login()
118
119File "/home/coffeeindustry/coffeeindustry/coffeeindustry/server/.venv/lib/python3.7/site-packages/rest_auth/views.py" in login
120 71. self.process_login()
121
122File "/home/coffeeindustry/coffeeindustry/coffeeindustry/server/.venv/lib/python3.7/site-packages/rest_auth/views.py" in process_login
123 52. django_login(self.request, self.user)
124
125File "/home/coffeeindustry/coffeeindustry/coffeeindustry/server/.venv/lib/python3.7/site-packages/django/contrib/auth/__init__.py" in login
126 118. 'You have multiple authentication backends configured and '
127
128Exception Type: ValueError at /api/v1/auth/login/
129Exception Value: You have multiple authentication backends configured and therefore must provide the `backend` argument or set the `backend` attribute on the user.
130Request information:
131USER: AnonymousUser
132
133GET: No GET data
134
135POST: No POST data
136
137FILES: No FILES data
138
139COOKIES:
140_ga = 'GA1.2.1505130517.1602254930'
141csrftoken = 'k9gKcSIXr58TgzAcZXeJidbpWcEjbxDETzubGmaQBaB7THtgNvRbZEgI7emA5Rbx'
142view_count_news = 'Miwx'
143
144META:
145CONTENT_LENGTH = '67'
146CONTENT_TYPE = 'application/json'
147CSRF_COOKIE = 'k9gKcSIXr58TgzAcZXeJidbpWcEjbxDETzubGmaQBaB7THtgNvRbZEgI7emA5Rbx'
148HTTP_ACCEPT = '*/*'
149HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
150HTTP_ACCEPT_LANGUAGE = 'undefined'
151HTTP_CONNECTION = 'close'
152HTTP_COOKIE = '_ga=GA1.2.1505130517.1602254930; csrftoken=k9gKcSIXr58TgzAcZXeJidbpWcEjbxDETzubGmaQBaB7THtgNvRbZEgI7emA5Rbx; view_count_news=Miwx'
153HTTP_HOST = 'coffeeindustry.webcase-dev.com'
154HTTP_ORIGIN = 'https://coffeeindustry.webcase-dev.com'
155HTTP_REFERER = 'https://coffeeindustry.webcase-dev.com/client'
156HTTP_SEC_FETCH_DEST = 'empty'
157HTTP_SEC_FETCH_MODE = 'same-origin'
158HTTP_SEC_FETCH_SITE = 'same-origin'
159HTTP_USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36'
160HTTP_X_CSRFTOKEN = 'k9gKcSIXr58TgzAcZXeJidbpWcEjbxDETzubGmaQBaB7THtgNvRbZEgI7emA5Rbx'
161HTTP_X_FORWARDED_FOR = '185.248.130.27'
162HTTP_X_REQUESTED_WITH = 'XMLHttpRequest'
163PATH_INFO = '/api/v1/auth/login/'
164QUERY_STRING = ''
165RAW_URI = '/api/v1/auth/login/'
166REMOTE_ADDR = ''
167REQUEST_METHOD = 'POST'
168SCRIPT_NAME = ''
169SERVER_NAME = 'coffeeindustry.webcase-dev.com'
170SERVER_PORT = '80'
171SERVER_PROTOCOL = 'HTTP/1.0'
172SERVER_SOFTWARE = 'gunicorn/20.0.4'
173gunicorn.socket = <gevent._socket3.socket at 0x7fedbbd6fec0 object, fd=9, family=1, type=1, proto=0>
174wsgi.errors = <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7fedbbecee50>
175wsgi.file_wrapper = ''
176wsgi.input = <gunicorn.http.body.Body object at 0x7fedbbece490>
177wsgi.input_terminated = True
178wsgi.multiprocess = True
179wsgi.multithread = True
180wsgi.run_once = False
181wsgi.url_scheme = 'http'
182wsgi.version = '(1, 0)'
183
184Settings:
185Using settings module app.settings
186ABSOLUTE_URL_OVERRIDES = {}
187ACCOUNT_AUTHENTICATION_METHOD = 'email'
188ACCOUNT_CONFIRM_EMAIL_ON_GET = True
189ACCOUNT_EMAIL_REQUIRED = True
190ACCOUNT_EMAIL_VERIFICATION = 'mandatory'
191ACCOUNT_LOGIN_ON_EMAIL_CONFIRMATION = True
192ACCOUNT_USERNAME_REQUIRED = False
193ACCOUNT_USER_MODEL_USERNAME_FIELD = None
194ADMINS = []
195ALLOWED_HOSTS = ['46.101.175.73', 'coffeeindustry.webcase-dev.com']
196APPEND_SLASH = True
197AUTHENTICATION_BACKENDS = "('django.contrib.auth.backends.ModelBackend', 'allauth.account.auth_backends.AuthenticationBackend')"
198AUTH_PASSWORD_VALIDATORS = '********************'
199AUTH_USER_MODEL = 'staff.CustomUser'
200BASE_DIR = PosixPath('/home/coffeeindustry/coffeeindustry/coffeeindustry/server/app/settings/default.py')
201BASE_ROOT = PosixPath('/home/coffeeindustry/coffeeindustry/coffeeindustry/server/app')
202CACHES = {'default': {'BACKEND': 'django_redis.cache.RedisCache', 'LOCATION': 'redis://127.0.0.1:6379/1'}}
203CACHE_MIDDLEWARE_ALIAS = 'default'
204CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
205CACHE_MIDDLEWARE_SECONDS = 600
206CELERY_BROKER_URL = 'redis://127.0.0.1:6379/0'
207CKEDITOR_CONFIGS = {'default': {'language': 'en', 'skin': 'office2013', 'toolbar_Basic': [['Source', '-', 'Bold', 'Italic']], 'toolbar_YourCustomToolbarConfig': [{'name': 'document', 'items': ['Source', '-', 'Save', 'NewPage', 'Preview', 'Print', '-', 'Templates']}, {'name': 'clipboard', 'items': ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo']}, {'name': 'editing', 'items': ['Find', 'Replace', '-', 'SelectAll']}, {'name': 'forms', 'items': ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField']}, '/', {'name': 'basicstyles', 'items': ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat']}, {'name': 'paragraph', 'items': ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl', 'Language']}, {'name': 'links', 'items': ['Link', 'Unlink', 'Anchor']}, {'name': 'insert', 'items': ['Image', 'Flash', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak', 'Iframe']}, '/', {'name': 'styles', 'items': ['Styles', 'Format', 'Font', 'FontSize']}, {'name': 'colors', 'items': ['TextColor', 'BGColor']}, {'name': 'tools', 'items': ['Maximize', 'ShowBlocks']}, {'name': 'about', 'items': ['About', 'FilerImage', 'Youtube', 'Image']}, '/', {'name': 'yourcustomtools', 'items': ['Preview', 'Maximize']}], 'toolbar': 'YourCustomToolbarConfig', 'tabSpaces': 4, 'extraPlugins': 'uploadimage,div,autolink,autoembed,embedsemantic,widget,lineutils,clipboard,dialog,dialogui,elementspath,youtube,image2,wordcount', 'wordcount': {'showCharCount': True}, 'removePlugins': 'image', 'allowedContent': True}}
208CKEDITOR_UPLOAD_PATH = 'uploads/'
209CONSTANCE_CONFIG = {'DAY_NEW_PRODUCT': (4, 'Count day until product is new', <class 'int'>), 'PAGINATION_PRODUCT_LIST': (6, 'Count products in page', <class 'int'>), 'PAGINATION_PRODUCT_STAND': (20, 'Count products in stand', <class 'int'>), 'PAGINATION_PRODUCT_PC': (10, 'Count products in personal cabinet', <class 'int'>), 'INDEX_LIMIT_PRODUCT': (20, 'Count products in index', <class 'int'>), 'INDEX_LIMIT_NEWS': (3, 'Count news in index', <class 'int'>), 'PAGINATION_NEWS_LIST': (8, 'Count news in page', <class 'int'>), 'INDEX_LIMIT_SHOPS': (20, 'Count shops in index', <class 'int'>), 'STAND_LIMIT_SHOPS_SIMILAR': (10, 'Count shops similar in stand', <class 'int'>), 'PAGINATION_PDF_CATALOG_LIST': (20, 'Count pdf catalogs on list', <class 'int'>)}
210CONSTANCE_CONFIG_FIELDSETS = {'PRODUCT': ('DAY_NEW_PRODUCT', 'PAGINATION_PRODUCT_LIST', 'PAGINATION_PRODUCT_STAND', 'PAGINATION_PRODUCT_PC', 'INDEX_LIMIT_PRODUCT'), 'NEWS': ('INDEX_LIMIT_NEWS', 'PAGINATION_NEWS_LIST'), 'SHOPS': ('INDEX_LIMIT_SHOPS', 'STAND_LIMIT_SHOPS_SIMILAR'), 'PDF_CATALOG': ('PAGINATION_PDF_CATALOG_LIST',)}
211CONSTANCE_DATABASE_CACHE_AUTOFILL_TIMEOUT = None
212CONSTANCE_REDIS_CONNECTION_CLASS = 'django_redis.get_redis_connection'
213CSRF_COOKIE_AGE = 31449600
214CSRF_COOKIE_DOMAIN = None
215CSRF_COOKIE_HTTPONLY = False
216CSRF_COOKIE_NAME = 'csrftoken'
217CSRF_COOKIE_PATH = '/'
218CSRF_COOKIE_SAMESITE = 'Lax'
219CSRF_COOKIE_SECURE = False
220CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
221CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
222CSRF_TRUSTED_ORIGINS = []
223CSRF_USE_SESSIONS = False
224DATABASES = {'default': {'NAME': 'coffee_db', 'USER': 'coffee_db', 'PASSWORD': '********************', 'HOST': '127.0.0.1', 'PORT': 5432, 'ENGINE': 'django.db.backends.postgresql', 'CONN_MAX_AGE': 0, 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'OPTIONS': {}, 'TIME_ZONE': None, 'TEST': {'CHARSET': None, 'COLLATION': None, 'NAME': None, 'MIRROR': None}}}
225DATABASE_ROUTERS = []
226DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
227DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
228DATETIME_FORMAT = 'N j, Y, P'
229DATETIME_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']
230DATE_FORMAT = 'N j, Y'
231DATE_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']
232DEBUG = True
233DEBUG_PROPAGATE_EXCEPTIONS = False
234DECIMAL_SEPARATOR = '.'
235DEFAULT_CHARSET = 'utf-8'
236DEFAULT_CONTENT_TYPE = 'text/html'
237DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
238DEFAULT_EXTENSIONS = ['jinja2.ext.do', 'jinja2.ext.loopcontrols', 'jinja2.ext.with_', 'jinja2.ext.i18n', 'jinja2.ext.autoescape', 'django_jinja.builtins.extensions.DebugExtension', 'django_jinja.builtins.extensions.CsrfExtension', 'django_jinja.builtins.extensions.CacheExtension', 'django_jinja.builtins.extensions.TimezoneExtension', 'django_jinja.builtins.extensions.UrlsExtension', 'django_jinja.builtins.extensions.StaticFilesExtension', 'django_jinja.builtins.extensions.DjangoFiltersExtension']
239DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
240DEFAULT_FROM_EMAIL = 'admin@admin.admin'
241DEFAULT_INDEX_TABLESPACE = ''
242DEFAULT_TABLESPACE = ''
243DISALLOWED_USER_AGENTS = []
244DRF_RECAPTCHA_SECRET_KEY = '********************'
245DRF_RECAPTCHA_VERIFY_ENDPOINT = 'https://www.google.com/recaptcha/api/siteverify'
246EMAIL_BACKEND = 'des.backends.ConfiguredEmailBackend'
247EMAIL_CONFIG = {'EMAIL_FILE_PATH': '', 'EMAIL_HOST_USER': None, 'EMAIL_HOST_PASSWORD': '********************', 'EMAIL_HOST': '127.0.0.1', 'EMAIL_PORT': None, 'EMAIL_BACKEND': 'django.core.mail.backends.console.EmailBackend'}
248EMAIL_FILE_PATH = ''
249EMAIL_HOST = '127.0.0.1'
250EMAIL_HOST_PASSWORD = '********************'
251EMAIL_HOST_USER = None
252EMAIL_PORT = None
253EMAIL_SSL_CERTFILE = None
254EMAIL_SSL_KEYFILE = '********************'
255EMAIL_SUBJECT_PREFIX = '[Django] '
256EMAIL_TIMEOUT = None
257EMAIL_USE_LOCALTIME = False
258EMAIL_USE_SSL = False
259EMAIL_USE_TLS = False
260EXTRA_SLASHES_REDIRECT_EXEMPT_URLS = ['^$', '^api/v(?P<version>[1|2]+)/', '^vuejs-translate/', '^sitemap\\.xml$', '^robots\\.txt$', '^uploads/', '^i18n\\.js$', '^google-feed\\.csv$', '^rozetka\\.xml$', '^favicon\\.ico$']
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'
272GUNICORN_PID = '/tmp/coffee_industry.pid'
273HOME_URL = '/'
274IGNORABLE_404_URLS = []
275INSTALLED_APPS = ['markup', 'shared', 'apps.staff', 'apps.nations', 'apps.products', 'apps.attributes', 'apps.shops', 'apps.about', 'apps.organization', 'apps.news', 'apps.frontend', 'apps.optimized_image', 'rosetta', 'django_jinja', 'jet', 'import_export', 'modeltranslation', 'mptt', 'versatileimagefield', 'adminsortable2', 'constance', 'solo', 'rest_framework', 'rest_framework.authtoken', 'rest_framework_recaptcha', 'standards', 'postie', 'parler', 'codemirror2', 'des', 'ckeditor', 'ckeditor_uploader', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'allauth', 'allauth.account', 'allauth.socialaccount', 'allauth.socialaccount.providers.google', 'rest_auth', 'rest_auth.registration', 'webpack_loader']
276INTERNAL_IPS = []
277IS_TINY = False
278LANGUAGES = "(('en', 'English'), ('ru', 'Russian'))"
279LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
280LANGUAGE_CODE = 'en'
281LANGUAGE_COOKIE_AGE = None
282LANGUAGE_COOKIE_DOMAIN = None
283LANGUAGE_COOKIE_NAME = 'django_language'
284LANGUAGE_COOKIE_PATH = '/'
285LIST_ACCSESS = ['jpeg', 'jpg', 'svg', 'png']
286LOCALE_PATHS = "(PosixPath('/home/coffeeindustry/coffeeindustry/coffeeindustry/server/app/locale'),)"
287LOGGING = {'version': 1, 'disable_existing_loggers': False, 'handlers': {'console': {'level': 'DEBUG', 'class': 'logging.StreamHandler'}, 'logfile': {'level': 'DEBUG', 'class': 'logging.FileHandler', 'filename': PosixPath('/home/coffeeindustry/coffeeindustry/coffeeindustry/server/app/settings/default.py/../logfile.log')}}, 'root': {'level': 'INFO', 'handlers': ['console', 'logfile']}}
288LOGGING_CONFIG = 'logging.config.dictConfig'
289LOGIN_REDIRECT_URL = '/accounts/profile/'
290LOGIN_URL = '/accounts/login/'
291LOGOUT_REDIRECT_URL = None
292MANAGERS = []
293MEDIA_ROOT = PosixPath('/home/coffeeindustry/coffeeindustry/coffeeindustry/server/app/uploads')
294MEDIA_URL = '/uploads/'
295MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
296MIDDLEWARE = ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'shared.middleware.extra_slashes_redirect_middleware']
297MIGRATION_MODULES = {}
298MODELTRANSLATION_DEFAULT_LANGUAGE = 'en'
299MODELTRANSLATION_TRANSLATION_REGISTRY = 'markup.translation'
300MONTH_DAY_FORMAT = 'F j'
301NUMBER_GROUPING = 0
302OLD_PASSWORD_FIELD_ENABLED = '********************'
303PARLER_DEFAULT_LANGUAGE_CODE = 'en'
304PARLER_LANGUAGES = {1: ({'code': 'en', 'fallbacks': ['en'], 'hide_untranslated': False}, {'code': 'ru', 'fallbacks': ['en'], 'hide_untranslated': False}), 'default': {'fallbacks': ['en'], 'hide_untranslated': False, 'code': 'en'}}
305PASSWORD_HASHERS = '********************'
306PASSWORD_RESET_TIMEOUT_DAYS = '********************'
307POSTIE_HTML_ADMIN_WIDGET = {'widget': 'CKEditorWidget', 'widget_module': 'ckeditor.widgets', 'attrs': {'attrs': {}}}
308POSTIE_INSTANT_SEND = True
309POSTIE_TEMPLATE_CHOICES = Choices(('client_registration', 'client_registration', 'Client registration'), ('password_reset_confirm__user', 'password_reset_confirm__user', 'Client password reset'))
310POSTIE_TEMPLATE_CONTEXTS = {'client_registration': {'var_url_activation': 'URL activation email'}, 'password_reset_confirm__user': '********************'}
311PREPEND_WWW = False
312PROJECT_APPS = ['markup', 'shared', 'apps.staff', 'apps.nations', 'apps.products', 'apps.attributes', 'apps.shops', 'apps.about', 'apps.organization', 'apps.news', 'apps.frontend', 'apps.optimized_image']
313REST_FRAMEWORK = {'DEFAULT_METADATA_CLASS': 'standards.drf.metadata.FieldsetMetadata', 'DEFAULT_PARSER_CLASSES': ('standards.drf.parsers.CamelCaseORJSONParser', 'djangorestframework_camel_case.parser.CamelCaseFormParser', 'djangorestframework_camel_case.parser.CamelCaseMultiPartParser'), 'DEFAULT_RENDERER_CLASSES': ('djangorestframework_camel_case.render.CamelCaseJSONRenderer', 'djangorestframework_camel_case.render.CamelCaseBrowsableAPIRenderer'), 'EXCEPTION_HANDLER': 'standards.drf.handlers.exception_handler'}
314ROOT_URLCONF = 'app.urls'
315SECRET_KEY = '********************'
316SECURE_BROWSER_XSS_FILTER = False
317SECURE_CONTENT_TYPE_NOSNIFF = False
318SECURE_HSTS_INCLUDE_SUBDOMAINS = False
319SECURE_HSTS_PRELOAD = False
320SECURE_HSTS_SECONDS = 0
321SECURE_PROXY_SSL_HEADER = None
322SECURE_REDIRECT_EXEMPT = []
323SECURE_SSL_HOST = None
324SECURE_SSL_REDIRECT = False
325SERVER_EMAIL = 'root@localhost'
326SESSION_CACHE_ALIAS = 'default'
327SESSION_COOKIE_AGE = 1209600
328SESSION_COOKIE_DOMAIN = None
329SESSION_COOKIE_HTTPONLY = True
330SESSION_COOKIE_NAME = 'sessionid'
331SESSION_COOKIE_PATH = '/'
332SESSION_COOKIE_SAMESITE = 'Lax'
333SESSION_COOKIE_SECURE = False
334SESSION_ENGINE = 'django.contrib.sessions.backends.db'
335SESSION_EXPIRE_AT_BROWSER_CLOSE = False
336SESSION_FILE_PATH = None
337SESSION_SAVE_EVERY_REQUEST = False
338SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
339SETTINGS_MODULE = 'app.settings'
340SHORT_DATETIME_FORMAT = 'm/d/Y P'
341SHORT_DATE_FORMAT = 'm/d/Y'
342SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
343SILENCED_SYSTEM_CHECKS = []
344SITE_ID = 1
345SOCIALACCOUNT_ADAPTER = 'apps.staff.adapter.MyAdapter'
346SOCIALACCOUNT_PROVIDERS = {'google': {'SCOPE': ['profile', 'email'], 'AUTH_PARAMS': {'access_type': 'online'}}}
347STATICFILES_DIRS = []
348STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
349STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
350STATIC_ROOT = PosixPath('/home/coffeeindustry/coffeeindustry/coffeeindustry/server/app/static')
351STATIC_URL = '/static/'
352TEMPLATES = [{'BACKEND': 'django_jinja.backend.Jinja2', 'NAME': 'jinja2', 'APP_DIRS': True, 'DIRS': [], 'OPTIONS': {'environment': 'shared.env.jinja2.environment', 'match_extension': '.jinja', 'newstyle_gettext': True, 'auto_reload': True, 'undefined': <class 'jinja2.runtime.Undefined'>, 'debug': True, 'filters': {}, 'globals': {}, 'context_processors': ['django.contrib.auth.context_processors.auth', 'django.template.context_processors.debug', 'django.template.context_processors.i18n', 'django.template.context_processors.media', 'django.template.context_processors.static', 'django.template.context_processors.tz', 'django.contrib.messages.context_processors.messages'], 'extensions': ['jinja2.ext.do', 'jinja2.ext.loopcontrols', 'jinja2.ext.with_', 'jinja2.ext.i18n', 'jinja2.ext.autoescape', 'django_jinja.builtins.extensions.DebugExtension', 'django_jinja.builtins.extensions.CsrfExtension', 'django_jinja.builtins.extensions.CacheExtension', 'django_jinja.builtins.extensions.TimezoneExtension', 'django_jinja.builtins.extensions.UrlsExtension', 'django_jinja.builtins.extensions.StaticFilesExtension', 'django_jinja.builtins.extensions.DjangoFiltersExtension', 'webpack_loader.contrib.jinja2ext.WebpackExtension'], 'bytecode_cache': {'name': 'default', 'backend': 'django_jinja.cache.BytecodeCache', 'enabled': True}}}, {'DIRS': [], 'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'OPTIONS': {'context_processors': ['django.template.context_processors.media', 'django.template.context_processors.static', 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.messages.context_processors.messages', 'django.contrib.auth.context_processors.auth']}}]
353TEST_NON_SERIALIZED_APPS = []
354TEST_RUNNER = 'django.test.runner.DiscoverRunner'
355THOUSAND_SEPARATOR = ','
356TIME_FORMAT = 'P'
357TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
358TIME_ZONE = 'UTC'
359TINY_KEY = '********************'
360USE_I18N = True
361USE_L10N = True
362USE_THOUSAND_SEPARATOR = False
363USE_TZ = True
364USE_X_FORWARDED_HOST = False
365USE_X_FORWARDED_PORT = False
366VERSATILEIMAGEFIELD_RENDITION_KEY_SETS = '********************'
367VERSATILEIMAGEFIELD_SETTINGS = {'jpeg_resize_quality': 90, 'progressive_jpeg': True}
368WEBPACK_LOADER = {'DEFAULT': {'STATS_FILE': PosixPath('/home/coffeeindustry/coffeeindustry/coffeeindustry/server/apps/frontend/static/frontend/webpack-stats.json')}}
369WSGI_APPLICATION = 'app.wsgi.application'
370X_FRAME_OPTIONS = 'SAMEORIGIN'
371YEAR_MONTH_FORMAT = 'F Y'
372
373
374You're seeing this error because you have DEBUG = True in your
375Django settings file. Change that to False, and Django will
376display a standard page generated by the handler for this status code.
377
378