· 5 years ago · Aug 07, 2020, 07:32 AM
1TypeError at /api/shop/search/list/
2object of type 'Response' has no len()
3
4Request Method: GET
5Request URL: http://pnevmat.webcase-dev.com/api/shop/search/list/?filters=%7B%22category%22%3A%22%22%2C%22search%22%3A%22Bez%20prezentacji%20na%20WWW%22%7D
6Django Version: 3.0.8
7Python Executable: /home/pneumat_website/pneumat_website/pneumat_website/server/.venv/bin/python3.7
8Python Version: 3.7.5
9Python Path: ['/home/pneumat_website/pneumat_website/pneumat_website/server', '/home/pneumat_website/pneumat_website/pneumat_website/server', '/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/bin', '/usr/lib/python37.zip', '/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', '/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.7/site-packages', '/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/src/django-composable-views', '/home/pneumat_website/pneumat_website/pneumat_website/server/packages/px-settings', '/home/pneumat_website/pneumat_website/pneumat_website/server/packages/px-django-dogpile-cache', '/home/pneumat_website/pneumat_website/pneumat_website/server/packages/px-django-canned-cache', '/home/pneumat_website/pneumat_website/pneumat_website/server/packages/cy-cart', '/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/src/django-awesome-standards', '/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/src/django-vuejs-translate', '/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.7/site-packages/odf', '/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.7/site-packages/odf', '/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.7/site-packages/odf', '/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.7/site-packages/odf', '/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.7/site-packages/odf', '/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.7/site-packages/odf', '/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.7/site-packages/odf']
10Server time: Пт, 7 Авг 2020 07:24:12 +0000
11Installed Applications:
12['markup',
13 'shared',
14 'apps.importer',
15 'apps.staff',
16 'apps.shop',
17 'apps.novaposhta',
18 'apps.news',
19 'apps.streamblocks',
20 'apps.pages',
21 'apps.menu',
22 'apps.contacts',
23 'apps.reviews',
24 'apps.settings',
25 'seo',
26 'rosetta',
27 'rest_framework',
28 'django_filters',
29 'standards',
30 'mptt',
31 'django_jinja',
32 'solo',
33 'adminsortable2',
34 'drf_recaptcha',
35 'drf_yasg',
36 'postie',
37 'parler',
38 'codemirror2',
39 'ckeditor',
40 'ckeditor_uploader',
41 'des',
42 'vuejs_translate',
43 'modeltranslation',
44 'streamfield',
45 'mapwidgets',
46 'jsoneditor',
47 'import_export',
48 'qsessions',
49 'robots',
50 'cy_cart',
51 'cy_cart.integrations.django',
52 'django.contrib.gis',
53 'django.contrib.admin',
54 'django.contrib.auth',
55 'django.contrib.contenttypes',
56 'django.contrib.sessions',
57 'django.contrib.messages',
58 'django.contrib.staticfiles',
59 'django.contrib.sites']
60Installed Middleware:
61['django.middleware.security.SecurityMiddleware',
62 'qsessions.middleware.SessionMiddleware',
63 'django.middleware.locale.LocaleMiddleware',
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 (most recent call last):
72 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.7/site-packages/django/core/handlers/exception.py", line 34, in inner
73 response = get_response(request)
74 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.7/site-packages/django/core/handlers/base.py", line 115, in _get_response
75 response = self.process_exception_by_middleware(e, request)
76 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.7/site-packages/django/core/handlers/base.py", line 113, in _get_response
77 response = wrapped_callback(request, *callback_args, **callback_kwargs)
78 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.7/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
79 return view_func(*args, **kwargs)
80 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.7/site-packages/django/views/generic/base.py", line 71, in view
81 return self.dispatch(request, *args, **kwargs)
82 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.7/site-packages/rest_framework/views.py", line 505, in dispatch
83 response = self.handle_exception(exc)
84 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.7/site-packages/rest_framework/views.py", line 465, in handle_exception
85 self.raise_uncaught_exception(exc)
86 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.7/site-packages/rest_framework/views.py", line 476, in raise_uncaught_exception
87 raise exc
88 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.7/site-packages/rest_framework/views.py", line 502, in dispatch
89 response = handler(request, *args, **kwargs)
90 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.7/site-packages/rest_framework/generics.py", line 199, in get
91 return self.list(request, *args, **kwargs)
92 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.7/site-packages/rest_framework/mixins.py", line 40, in list
93 page = self.paginate_queryset(queryset)
94 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.7/site-packages/rest_framework/generics.py", line 171, in paginate_queryset
95 return self.paginator.paginate_queryset(queryset, self.request, view=self)
96 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.7/site-packages/rest_framework/pagination.py", line 206, in paginate_queryset
97 self.page = paginator.page(page_number)
98 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.7/site-packages/django/core/paginator.py", line 70, in page
99 number = self.validate_number(number)
100 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.7/site-packages/django/core/paginator.py", line 48, in validate_number
101 if number > self.num_pages:
102 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.7/site-packages/django/utils/functional.py", line 48, in __get__
103 res = instance.__dict__[self.name] = self.func(instance)
104 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.7/site-packages/django/core/paginator.py", line 97, in num_pages
105 if self.count == 0 and not self.allow_empty_first_page:
106 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.7/site-packages/django/utils/functional.py", line 48, in __get__
107 res = instance.__dict__[self.name] = self.func(instance)
108 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.7/site-packages/django/core/paginator.py", line 92, in count
109 return len(self.object_list)
110
111Exception Type: TypeError at /api/shop/search/list/
112Exception Value: object of type 'Response' has no len()
113Request information:
114USER: ad
115
116GET:
117filters = '{"category":"","search":"Bez prezentacji na WWW"}'
118
119POST: No POST data
120
121FILES: No FILES data
122
123COOKIES:
124_ga = 'GA1.2.1875088613.1585902011'
125bpmRef = ''
126bpmTrackingId = '05dc6bc6-0b7d-6791-cb64-368a6500616c'
127bpmHref = 'http://lse.webcase-dev.com/'
128csrftoken = 'NjyDxsyUKjefqMPCiFJY86aAbBHOk0NHC5H1XTW2LtPkAVVTRixxnq7q29j2yAjD'
129sessionid = 'slcqx7tofd3xvuo1kyv28lxtydj7k64d'
130googtrans = '/auto/ru'
131_fbp = 'fb.1.1596442719099.2018978858'
132_hjid = 'edf86996-04c7-49b1-b3ef-d9f7315ded6b'
133_gid = 'GA1.2.846630349.1596709712'
134
135META:
136CONTENT_TYPE = 'application/json'
137CSRF_COOKIE = 'NjyDxsyUKjefqMPCiFJY86aAbBHOk0NHC5H1XTW2LtPkAVVTRixxnq7q29j2yAjD'
138HTTP_ACCEPT = '*/*'
139HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
140HTTP_ACCEPT_LANGUAGE = 'undefined'
141HTTP_CACHE_CONTROL = 'no-cache'
142HTTP_CONNECTION = 'close'
143HTTP_COOKIE = '_ga=GA1.2.1875088613.1585902011; bpmRef=; bpmTrackingId=05dc6bc6-0b7d-6791-cb64-368a6500616c; bpmHref=http://lse.webcase-dev.com/; csrftoken=NjyDxsyUKjefqMPCiFJY86aAbBHOk0NHC5H1XTW2LtPkAVVTRixxnq7q29j2yAjD; sessionid=slcqx7tofd3xvuo1kyv28lxtydj7k64d; googtrans=/auto/ru; _fbp=fb.1.1596442719099.2018978858; _hjid=edf86996-04c7-49b1-b3ef-d9f7315ded6b; _gid=GA1.2.846630349.1596709712'
144HTTP_HOST = 'pnevmat.webcase-dev.com'
145HTTP_PRAGMA = 'no-cache'
146HTTP_REFERER = 'https://pnevmat.webcase-dev.com/client'
147HTTP_SEC_FETCH_DEST = 'empty'
148HTTP_SEC_FETCH_MODE = 'same-origin'
149HTTP_SEC_FETCH_SITE = 'same-origin'
150HTTP_USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36'
151HTTP_X_CSRFTOKEN = 'NjyDxsyUKjefqMPCiFJY86aAbBHOk0NHC5H1XTW2LtPkAVVTRixxnq7q29j2yAjD'
152HTTP_X_FORWARDED_FOR = '185.248.130.27'
153HTTP_X_REQUESTED_WITH = 'XMLHttpRequest'
154PATH_INFO = '/api/shop/search/list/'
155QUERY_STRING = 'filters=%7B%22category%22%3A%22%22%2C%22search%22%3A%22Bez%20prezentacji%20na%20WWW%22%7D'
156RAW_URI = '/api/shop/search/list/?filters=%7B%22category%22%3A%22%22%2C%22search%22%3A%22Bez%20prezentacji%20na%20WWW%22%7D'
157REMOTE_ADDR = ''
158REQUEST_METHOD = 'GET'
159SCRIPT_NAME = ''
160SERVER_NAME = 'pnevmat.webcase-dev.com'
161SERVER_PORT = '80'
162SERVER_PROTOCOL = 'HTTP/1.0'
163SERVER_SOFTWARE = 'gunicorn/20.0.4'
164gunicorn.socket = <gevent._socket3.socket at 0x7f8d4135fbf0 object, fd=8, family=1, type=1, proto=0>
165wsgi.errors = <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f8d42c01b10>
166wsgi.file_wrapper = ''
167wsgi.input = <gunicorn.http.body.Body object at 0x7f8d42c01710>
168wsgi.input_terminated = True
169wsgi.multiprocess = True
170wsgi.multithread = True
171wsgi.run_once = False
172wsgi.url_scheme = 'http'
173wsgi.version = '(1, 0)'
174
175Settings:
176Using settings module app.settings
177ABSOLUTE_URL_OVERRIDES = {}
178ADMINS = []
179ALLOWED_HOSTS = ['pnevmat.webcase-dev.com', '64.227.123.124']
180APPEND_SLASH = True
181AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend', 'apps.staff.authentication.EmailBackend']
182AUTH_PASSWORD_VALIDATORS = '********************'
183AUTH_USER_MODEL = 'staff.User'
184BASE_DIR = PosixPath('/home/pneumat_website/pneumat_website/pneumat_website/server/app/settings/default.py')
185BASE_ROOT = PosixPath('/home/pneumat_website/pneumat_website/pneumat_website/server/app')
186CACHES = {'default': {'BACKEND': 'django_redis.cache.RedisCache', 'LOCATION': 'redis://127.0.0.1:6379/1'}}
187CACHE_MIDDLEWARE_ALIAS = 'default'
188CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
189CACHE_MIDDLEWARE_SECONDS = 600
190CELERY_ACCEPT_CONTENT = ['json']
191CELERY_BROKER_URL = 'redis://127.0.0.1:6379/0'
192CELERY_RESULT_SERIALIZER = 'json'
193CELERY_TASK_SERIALIZER = 'json'
194CKEDITOR_CONFIGS = {'default': {'skin': 'moono', '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']}, '/', {'name': 'yourcustomtools', 'items': ['Preview', 'Maximize']}], 'toolbar': 'YourCustomToolbarConfig', 'tabSpaces': 4, 'extraPlugins': 'uploadimage,div,autolink,autoembed,embedsemantic,autogrow,widget,lineutils,clipboard,dialog,dialogui,elementspath'}}
195CKEDITOR_UPLOAD_PATH = PosixPath('/home/pneumat_website/pneumat_website/pneumat_website/server/app/uploads')
196CSRF_COOKIE_AGE = 31449600
197CSRF_COOKIE_DOMAIN = None
198CSRF_COOKIE_HTTPONLY = False
199CSRF_COOKIE_NAME = 'csrftoken'
200CSRF_COOKIE_PATH = '/'
201CSRF_COOKIE_SAMESITE = 'Lax'
202CSRF_COOKIE_SECURE = False
203CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
204CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
205CSRF_TRUSTED_ORIGINS = []
206CSRF_USE_SESSIONS = False
207DATABASES = {'default': {'NAME': 'pneumat_website_db', 'USER': 'pneumat_website_db', 'PASSWORD': '********************', 'HOST': '127.0.0.1', 'PORT': 5432, 'ENGINE': 'django.contrib.gis.db.backends.postgis', 'CONN_MAX_AGE': 0, 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'OPTIONS': {}, 'TIME_ZONE': None, 'TEST': {'CHARSET': None, 'COLLATION': None, 'NAME': None, 'MIRROR': None}}}
208DATABASE_ROUTERS = []
209DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
210DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
211DATETIME_FORMAT = 'N j, Y, P'
212DATETIME_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']
213DATE_FORMAT = 'N j, Y'
214DATE_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']
215DEBUG = True
216DEBUG_PROPAGATE_EXCEPTIONS = False
217DECIMAL_SEPARATOR = '.'
218DEFAULT_CHARSET = 'utf-8'
219DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
220DEFAULT_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']
221DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
222DEFAULT_FROM_EMAIL = 'admin@admin.admin'
223DEFAULT_INDEX_TABLESPACE = ''
224DEFAULT_TABLESPACE = ''
225DISALLOWED_USER_AGENTS = []
226DJANGO_SHOP_CART = {'CART_ITEM_SERIALIZERS': {'apps.shop.models.Product': 'apps.shop.serializers.CartProductSerializer'}}
227DRF_RECAPTCHA_SECRET_KEY = '********************'
228EMAIL_BACKEND = 'des.backends.ConfiguredEmailBackend'
229EMAIL_HOST = 'localhost'
230EMAIL_HOST_PASSWORD = '********************'
231EMAIL_HOST_USER = ''
232EMAIL_PORT = 25
233EMAIL_SSL_CERTFILE = None
234EMAIL_SSL_KEYFILE = '********************'
235EMAIL_SUBJECT_PREFIX = '[Django] '
236EMAIL_TIMEOUT = None
237EMAIL_USE_LOCALTIME = False
238EMAIL_USE_SSL = False
239EMAIL_USE_TLS = False
240FILE_CHARSET = 'utf-8'
241FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
242FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
243FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
244FILE_UPLOAD_PERMISSIONS = 420
245FILE_UPLOAD_TEMP_DIR = None
246FIRST_DAY_OF_WEEK = 0
247FIXTURE_DIRS = []
248FORCE_SCRIPT_NAME = None
249FORMAT_MODULE_PATH = None
250FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
251GOOGLE_MAP_API_KEY = '********************'
252GUNICORN_PID = '/tmp/pneumat.pid'
253IGNORABLE_404_URLS = []
254IMPORT_UPLOADS_BASE_URL = 'http://165.22.80.47/uploads'
255INSTALLED_APPS = ['markup', 'shared', 'apps.importer', 'apps.staff', 'apps.shop', 'apps.novaposhta', 'apps.news', 'apps.streamblocks', 'apps.pages', 'apps.menu', 'apps.contacts', 'apps.reviews', 'apps.settings', 'seo', 'rosetta', 'rest_framework', 'django_filters', 'standards', 'mptt', 'django_jinja', 'solo', 'adminsortable2', 'drf_recaptcha', 'drf_yasg', 'postie', 'parler', 'codemirror2', 'ckeditor', 'ckeditor_uploader', 'des', 'vuejs_translate', 'modeltranslation', 'streamfield', 'mapwidgets', 'jsoneditor', 'import_export', 'qsessions', 'robots', 'cy_cart', 'cy_cart.integrations.django', 'django.contrib.gis', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites']
256INTERNAL_IPS = []
257LANGUAGES = "(('ru', 'Русский'), ('uk', 'Украинский'))"
258LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
259LANGUAGE_CODE = 'ru'
260LANGUAGE_COOKIE_AGE = None
261LANGUAGE_COOKIE_DOMAIN = None
262LANGUAGE_COOKIE_HTTPONLY = False
263LANGUAGE_COOKIE_NAME = 'django_language'
264LANGUAGE_COOKIE_PATH = '/'
265LANGUAGE_COOKIE_SAMESITE = None
266LANGUAGE_COOKIE_SECURE = False
267LOCALE_PATHS = "(PosixPath('/home/pneumat_website/pneumat_website/pneumat_website/server/app/locale'),)"
268LOGGING = {'version': 1, 'disable_existing_loggers': False, 'handlers': {'console': {'level': 'DEBUG', 'class': 'logging.StreamHandler'}, 'logfile': {'level': 'DEBUG', 'class': 'logging.FileHandler', 'filename': PosixPath('/home/pneumat_website/pneumat_website/pneumat_website/server/app/settings/default.py/../logfile.log')}}, 'root': {'level': 'INFO', 'handlers': ['console', 'logfile']}}
269LOGGING_CONFIG = 'logging.config.dictConfig'
270LOGIN_REDIRECT_URL = '/accounts/profile/'
271LOGIN_URL = '/accounts/login/'
272LOGOUT_REDIRECT_URL = None
273MANAGERS = []
274MAP_WIDGETS = {'GOOGLE_MAP_API_KEY': '********************'}
275MEDIA_ROOT = PosixPath('/home/pneumat_website/pneumat_website/pneumat_website/server/app/uploads')
276MEDIA_URL = '/uploads/'
277MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
278MIDDLEWARE = ['django.middleware.security.SecurityMiddleware', 'qsessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware']
279MIGRATION_MODULES = {}
280MODELTRANSLATION_CUSTOM_FIELDS = "('JSONField',)"
281MODELTRANSLATION_DEFAULT_LANGUAGE = 'uk'
282MODELTRANSLATION_FALLBACK_LANGUAGES = "('ru', 'uk', 'pl')"
283MODELTRANSLATION_LANGUAGES = "('pl', 'uk', 'ru')"
284MONTH_DAY_FORMAT = 'F j'
285NUMBER_GROUPING = 0
286PASSWORD_HASHERS = '********************'
287PASSWORD_RESET_TIMEOUT_DAYS = '********************'
288POSTIE_INSTANT_SEND = False
289POSTIE_TEMPLATE_CHOICES = "(('confirm_email', 'Confirm email'), ('admin_new_user', 'Admin check new user'), ('user_refusal_registration', 'User account refusal registration'), ('password_reset', 'User password reset'), ('callback_email', 'Обратная связь'), ('callback_phone', 'Перезвонить'))"
290POSTIE_TEMPLATE_CONTEXTS = {'confirm_email': {'url': 'Confirmation email url', 'email': 'User email'}, 'admin_new_user': {'url': 'Admin new user', 'email': 'User email'}, 'user_refusal_registration': {'email': 'User email', 'reason': 'User registration refusal reason'}, 'password_reset': '********************', 'callback_email': {'email': 'User email', 'employee': 'Employee username'}, 'callback_phone': {'email': 'User phone', 'employee': 'Employee username'}}
291PREPEND_WWW = False
292PROJECT_APPS = ['markup', 'shared', 'apps.importer', 'apps.staff', 'apps.shop', 'apps.novaposhta', 'apps.news', 'apps.streamblocks', 'apps.pages', 'apps.menu', 'apps.contacts', 'apps.reviews', 'apps.settings']
293PXD_CANNED_CACHE = {'UPDATE_TASK_LOCATION': 'shared.tasks.update_cache_task'}
294REST_FRAMEWORK = {'DEFAULT_METADATA_CLASS': 'standards.drf.metadata.FieldsetMetadata', 'DEFAULT_PARSER_CLASSES': ('djangorestframework_camel_case.parser.CamelCaseJSONParser', 'djangorestframework_camel_case.parser.CamelCaseFormParser', 'djangorestframework_camel_case.parser.CamelCaseMultiPartParser'), 'DEFAULT_RENDERER_CLASSES': ('djangorestframework_camel_case.render.CamelCaseJSONRenderer', 'djangorestframework_camel_case.render.CamelCaseBrowsableAPIRenderer')}
295ROOT_URLCONF = 'app.urls'
296SECRET_KEY = '********************'
297SECURE_BROWSER_XSS_FILTER = False
298SECURE_CONTENT_TYPE_NOSNIFF = True
299SECURE_HSTS_INCLUDE_SUBDOMAINS = False
300SECURE_HSTS_PRELOAD = False
301SECURE_HSTS_SECONDS = 0
302SECURE_PROXY_SSL_HEADER = None
303SECURE_REDIRECT_EXEMPT = []
304SECURE_REFERRER_POLICY = None
305SECURE_SSL_HOST = None
306SECURE_SSL_REDIRECT = False
307SEO_HTML_ADMIN_WIDGET = {'widget': 'CKEditorUploadingWidget', 'widget_path': 'ckeditor_uploader.widgets'}
308SEO_MODELS = ['shop.Category', 'shop.Product', 'shop.ProductGroup', 'news.Category', 'news.News', 'pages.Page', 'pages.FAQPage', 'pages.Index', 'pages.HistoryPage', 'pages.FilesPage', 'pages.TechnologicalPage', 'pages.ContactsPage', 'pages.MediaPage', 'pages.AwardsPage']
309SEO_VIEWS_CHOICES = "(('news', 'News index'),)"
310SEO_VIEWS_CONTEXT_NAME = 'instance_seo'
311SERVER_EMAIL = 'root@localhost'
312SESSION_CACHE_ALIAS = 'default'
313SESSION_COOKIE_AGE = 1209600
314SESSION_COOKIE_DOMAIN = None
315SESSION_COOKIE_HTTPONLY = True
316SESSION_COOKIE_NAME = 'sessionid'
317SESSION_COOKIE_PATH = '/'
318SESSION_COOKIE_SAMESITE = 'Lax'
319SESSION_COOKIE_SECURE = False
320SESSION_ENGINE = 'qsessions.backends.cached_db'
321SESSION_EXPIRE_AT_BROWSER_CLOSE = False
322SESSION_FILE_PATH = None
323SESSION_SAVE_EVERY_REQUEST = False
324SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
325SETTINGS_MODULE = 'app.settings'
326SHORT_DATETIME_FORMAT = 'm/d/Y P'
327SHORT_DATE_FORMAT = 'm/d/Y'
328SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
329SILENCED_SYSTEM_CHECKS = []
330SITE_ID = 1
331STATICFILES_DIRS = []
332STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
333STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
334STATIC_ROOT = PosixPath('/home/pneumat_website/pneumat_website/pneumat_website/server/app/static')
335STATIC_URL = '/static/'
336STREAMFIELD_STREAMBLOCKS_APP_PATH = 'apps.streamblocks'
337SWAGGER_SETTINGS = {'DEFAULT_PAGINATOR_INSPECTORS': ['shared.inspectors.StandardsPaginatorInspector', 'drf_yasg.inspectors.DjangoRestResponsePagination', 'drf_yasg.inspectors.CoreAPICompatInspector']}
338TEMPLATES = [{'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', 'seo.context_processors.seo'], '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'], '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', 'seo.context_processors.seo']}}]
339TEST_NON_SERIALIZED_APPS = []
340TEST_RUNNER = 'django.test.runner.DiscoverRunner'
341THOUSAND_SEPARATOR = ','
342TIME_FORMAT = 'P'
343TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
344TIME_ZONE = 'UTC'
345USE_I18N = True
346USE_L10N = True
347USE_THOUSAND_SEPARATOR = False
348USE_TZ = True
349USE_X_FORWARDED_HOST = False
350USE_X_FORWARDED_PORT = False
351WSGI_APPLICATION = 'app.wsgi.application'
352X_FRAME_OPTIONS = 'DENY'
353YEAR_MONTH_FORMAT = 'F Y'
354
355
356You're seeing this error because you have DEBUG = True in your
357Django settings file. Change that to False, and Django will
358display a standard page generated by the handler for this status code.
359