· 4 years ago · Nov 05, 2020, 01:48 PM
1TypeError at /api/export/products/list
2expected string or bytes-like object
3
4Request Method: GET
5Request URL: http://pnevmat.webcase-dev.com/api/export/products/list?p=1&page_size=10&changed_from=12
6Django Version: 3.0.10
7Python Executable: /home/pneumat_website/pneumat_website/pneumat_website/server/.venv/bin/python3.8
8Python Version: 3.8.0
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/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages', '/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/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-composable-views', '/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/src/django-jet', '/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/src/django-vuejs-translate', '/home/pneumat_website/pneumat_website/pneumat_website/server/packages/px-django-canned-cache', '/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/odf', '/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/odf', '/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/odf', '/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/odf', '/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/odf', '/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/odf', '/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/odf']
10Server time: Чт, 5 Ноя 2020 13:40:08 +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 'apps.wishlist',
26 'apps.comparison',
27 'apps.checkout',
28 'apps.export',
29 'jet',
30 'seo',
31 'rosetta',
32 'rest_framework',
33 'django_filters',
34 'standards',
35 'mptt',
36 'django_jinja',
37 'solo',
38 'adminsortable2',
39 'drf_recaptcha',
40 'drf_yasg',
41 'postie',
42 'parler',
43 'codemirror2',
44 'ckeditor',
45 'ckeditor_uploader',
46 'des',
47 'vuejs_translate',
48 'modeltranslation',
49 'streamfield',
50 'mapwidgets',
51 'jsoneditor',
52 'import_export',
53 'qsessions',
54 'robots',
55 'rest_framework_tracking',
56 'cy_cart',
57 'cy_cart.integrations.django',
58 'django.contrib.gis',
59 'django.contrib.admin',
60 'django.contrib.auth',
61 'django.contrib.contenttypes',
62 'django.contrib.sessions',
63 'django.contrib.messages',
64 'django.contrib.staticfiles',
65 'django.contrib.sites']
66Installed Middleware:
67['django.middleware.security.SecurityMiddleware',
68 'qsessions.middleware.SessionMiddleware',
69 'shared.middlewares.SessionTimeoutMiddleware',
70 'django.middleware.locale.LocaleMiddleware',
71 'django.middleware.common.CommonMiddleware',
72 'django.middleware.csrf.CsrfViewMiddleware',
73 'django.contrib.auth.middleware.AuthenticationMiddleware',
74 'django.contrib.messages.middleware.MessageMiddleware',
75 'django.middleware.clickjacking.XFrameOptionsMiddleware']
76
77
78Traceback (most recent call last):
79 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 34, in inner
80 response = get_response(request)
81 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 115, in _get_response
82 response = self.process_exception_by_middleware(e, request)
83 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 113, in _get_response
84 response = wrapped_callback(request, *callback_args, **callback_kwargs)
85 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
86 return view_func(*args, **kwargs)
87 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/views/generic/base.py", line 71, in view
88 return self.dispatch(request, *args, **kwargs)
89 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/rest_framework/views.py", line 509, in dispatch
90 response = self.handle_exception(exc)
91 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/rest_framework_tracking/base_mixins.py", line 42, in handle_exception
92 response = super(BaseLoggingMixin, self).handle_exception(exc)
93 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/rest_framework/views.py", line 469, in handle_exception
94 self.raise_uncaught_exception(exc)
95 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
96 raise exc
97 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/rest_framework/views.py", line 506, in dispatch
98 response = handler(request, *args, **kwargs)
99 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/rest_framework/generics.py", line 199, in get
100 return self.list(request, *args, **kwargs)
101 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/rest_framework/mixins.py", line 38, in list
102 queryset = self.filter_queryset(self.get_queryset())
103 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/rest_framework/generics.py", line 150, in filter_queryset
104 queryset = backend().filter_queryset(self.request, queryset, self)
105 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django_filters/rest_framework/backends.py", line 96, in filter_queryset
106 return filterset.qs
107 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django_filters/filterset.py", line 243, in qs
108 qs = self.filter_queryset(qs)
109 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django_filters/filterset.py", line 230, in filter_queryset
110 queryset = self.filters[name].filter(queryset, value)
111 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django_filters/filters.py", line 146, in filter
112 qs = self.get_method(qs)(**{lookup: value})
113 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/db/models/query.py", line 904, in filter
114 return self._filter_or_exclude(False, *args, **kwargs)
115 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/modeltranslation/manager.py", line 307, in _filter_or_exclude
116 return super(MultilingualQuerySet, self)._filter_or_exclude(negate, *args, **kwargs)
117 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/db/models/query.py", line 923, in _filter_or_exclude
118 clone.query.add_q(Q(*args, **kwargs))
119 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/db/models/sql/query.py", line 1354, in add_q
120 clause, _ = self._add_q(q_object, self.used_aliases)
121 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/db/models/sql/query.py", line 1381, in _add_q
122 child_clause, needed_inner = self.build_filter(
123 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/db/models/sql/query.py", line 1315, in build_filter
124 condition = self.build_lookup(lookups, col, value)
125 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/db/models/sql/query.py", line 1169, in build_lookup
126 lookup = lookup_class(lhs, rhs)
127 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/db/models/lookups.py", line 22, in __init__
128 self.rhs = self.get_prep_lookup()
129 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/db/models/lookups.py", line 72, in get_prep_lookup
130 return self.lhs.output_field.get_prep_value(self.rhs)
131 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/db/models/fields/__init__.py", line 1355, in get_prep_value
132 value = super().get_prep_value(value)
133 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/db/models/fields/__init__.py", line 1215, in get_prep_value
134 return self.to_python(value)
135 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/db/models/fields/__init__.py", line 1316, in to_python
136 parsed = parse_datetime(value)
137 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/utils/dateparse.py", line 107, in parse_datetime
138 match = datetime_re.match(value)
139
140Exception Type: TypeError at /api/export/products/list
141Exception Value: expected string or bytes-like object
142Request information:
143USER: AnonymousUser
144
145GET:
146p = '1'
147page_size = '10'
148changed_from = '12'
149
150POST: No POST data
151
152FILES: No FILES data
153
154COOKIES: No cookie data
155
156META:
157HTTP_ACCEPT = '*/*'
158HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
159HTTP_CONNECTION = 'close'
160HTTP_EXPORT_KEY = '6UNV6r8WMbkUhQSbbUqEgkceRH9cQSgUtAnptR7v24MUdRBiSeFq8jOhLt4b4sE'
161HTTP_HOST = 'pnevmat.webcase-dev.com'
162HTTP_POSTMAN_TOKEN = 'ef31d42e-7375-4098-9546-ee6483d37414'
163HTTP_USER_AGENT = 'PostmanRuntime/7.26.8'
164HTTP_X_FORWARDED_FOR = '185.248.130.27'
165PATH_INFO = '/api/export/products/list'
166QUERY_STRING = 'p=1&page_size=10&changed_from=12'
167RAW_URI = '/api/export/products/list?p=1&page_size=10&changed_from=12'
168REMOTE_ADDR = ''
169REQUEST_METHOD = 'GET'
170SCRIPT_NAME = ''
171SERVER_NAME = 'pnevmat.webcase-dev.com'
172SERVER_PORT = '80'
173SERVER_PROTOCOL = 'HTTP/1.0'
174SERVER_SOFTWARE = 'gunicorn/20.0.4'
175gunicorn.socket = <gevent._socket3.socket at 0x7fe536c31f40 object, fd=14, family=1, type=1, proto=0>
176wsgi.errors = <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7fe53765d160>
177wsgi.file_wrapper = ''
178wsgi.input = <gunicorn.http.body.Body object at 0x7fe537105430>
179wsgi.input_terminated = True
180wsgi.multiprocess = True
181wsgi.multithread = True
182wsgi.run_once = False
183wsgi.url_scheme = 'http'
184wsgi.version = '(1, 0)'
185
186Settings:
187Using settings module app.settings
188ABSOLUTE_URL_OVERRIDES = {}
189ADMINS = []
190ALLOWED_HOSTS = ['pnevmat.webcase-dev.com', '64.227.123.124']
191APPEND_SLASH = True
192AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend', 'apps.staff.authentication.EmailBackend']
193AUTH_PASSWORD_VALIDATORS = '********************'
194AUTH_USER_MODEL = 'staff.User'
195BASE_DIR = PosixPath('/home/pneumat_website/pneumat_website/pneumat_website/server/app/settings/default.py')
196BASE_ROOT = PosixPath('/home/pneumat_website/pneumat_website/pneumat_website/server/app')
197CACHES = {'default': {'BACKEND': 'django_redis.cache.RedisCache', 'LOCATION': 'redis://127.0.0.1:6379/1'}}
198CACHE_MIDDLEWARE_ALIAS = 'default'
199CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
200CACHE_MIDDLEWARE_SECONDS = 600
201CELERY_ACCEPT_CONTENT = ['json']
202CELERY_BROKER_URL = 'redis://127.0.0.1:6379/0'
203CELERY_RESULT_SERIALIZER = 'json'
204CELERY_TASK_SERIALIZER = 'json'
205CKEDITOR_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'}}
206CKEDITOR_UPLOAD_PATH = PosixPath('/home/pneumat_website/pneumat_website/pneumat_website/server/app/uploads')
207CSRF_COOKIE_AGE = 31449600
208CSRF_COOKIE_DOMAIN = None
209CSRF_COOKIE_HTTPONLY = False
210CSRF_COOKIE_NAME = 'csrftoken'
211CSRF_COOKIE_PATH = '/'
212CSRF_COOKIE_SAMESITE = 'Lax'
213CSRF_COOKIE_SECURE = False
214CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
215CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
216CSRF_TRUSTED_ORIGINS = []
217CSRF_USE_SESSIONS = False
218DATABASES = {'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}}}
219DATABASE_ROUTERS = []
220DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
221DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
222DATETIME_FORMAT = 'N j, Y, P'
223DATETIME_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']
224DATE_FORMAT = 'N j, Y'
225DATE_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']
226DEBUG = True
227DEBUG_PROPAGATE_EXCEPTIONS = False
228DECIMAL_SEPARATOR = '.'
229DEFAULT_CHARSET = 'utf-8'
230DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
231DEFAULT_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']
232DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
233DEFAULT_FROM_EMAIL = 'admin@admin.admin'
234DEFAULT_INDEX_TABLESPACE = ''
235DEFAULT_TABLESPACE = ''
236DISALLOWED_USER_AGENTS = []
237DJANGO_SHOP_CART = {'CART_ITEM_SERIALIZERS': {'apps.shop.models.Product': 'apps.shop.serializers.CartProductSerializer'}}
238DRF_RECAPTCHA_SECRET_KEY = '********************'
239EMAIL_BACKEND = 'des.backends.ConfiguredEmailBackend'
240EMAIL_HOST = 'localhost'
241EMAIL_HOST_PASSWORD = '********************'
242EMAIL_HOST_USER = ''
243EMAIL_PORT = 25
244EMAIL_SSL_CERTFILE = None
245EMAIL_SSL_KEYFILE = '********************'
246EMAIL_SUBJECT_PREFIX = '[Django] '
247EMAIL_TIMEOUT = None
248EMAIL_USE_LOCALTIME = False
249EMAIL_USE_SSL = False
250EMAIL_USE_TLS = False
251FILE_CHARSET = 'utf-8'
252FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
253FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
254FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
255FILE_UPLOAD_PERMISSIONS = 420
256FILE_UPLOAD_TEMP_DIR = None
257FIRST_DAY_OF_WEEK = 0
258FIXTURE_DIRS = []
259FORCE_SCRIPT_NAME = None
260FORMAT_MODULE_PATH = None
261FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
262FTP_AVAILABILITY_DOWNLOAD = PosixPath('/home/pneumat_website/pneumat_website/pneumat_website/server/app/uploads')
263FTP_AVAILABILITY_FILE = 'Pneumat_Item_Availability.csv'
264FTP_AVAILABILITY_HOST = ''
265FTP_AVAILABILITY_PASSWORD = '********************'
266FTP_AVAILABILITY_PATH = 'Pneumat_Item_Availability'
267FTP_AVAILABILITY_PORT = ''
268FTP_AVAILABILITY_USER = ''
269FULLTEXT_LANGUAGES = {'uk': 'ukrainian', 'ru': 'russian'}
270GOOGLE_MAP_API_KEY = '********************'
271GUNICORN_PID = '/run/pneumat_website_gunicorn/pneumat_website_gunicorn.pid'
272IGNORABLE_404_URLS = []
273IMPORT_UPLOADS_BASE_URL = 'https://pnparser.webcase-dev.com/uploads'
274INSTALLED_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', 'apps.wishlist', 'apps.comparison', 'apps.checkout', 'apps.export', 'jet', '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', 'rest_framework_tracking', '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']
275INTERNAL_IPS = []
276JET_SIDE_MENU_COMPACT = True
277LANGUAGES = "(('ru', 'Русский'), ('uk', 'Украинский'))"
278LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
279LANGUAGE_CODE = 'ru'
280LANGUAGE_COOKIE_AGE = None
281LANGUAGE_COOKIE_DOMAIN = None
282LANGUAGE_COOKIE_HTTPONLY = False
283LANGUAGE_COOKIE_NAME = 'django_language'
284LANGUAGE_COOKIE_PATH = '/'
285LANGUAGE_COOKIE_SAMESITE = None
286LANGUAGE_COOKIE_SECURE = False
287LOCALE_PATHS = "(PosixPath('/home/pneumat_website/pneumat_website/pneumat_website/server/app/locale'),)"
288LOGGING = {'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']}}
289LOGGING_CONFIG = 'logging.config.dictConfig'
290LOGIN_REDIRECT_URL = '/accounts/profile/'
291LOGIN_URL = '/auth/login/'
292LOGOUT_REDIRECT_URL = '/'
293MANAGERS = []
294MAP_WIDGETS = {'GOOGLE_MAP_API_KEY': '********************'}
295MEDIA_ROOT = PosixPath('/home/pneumat_website/pneumat_website/pneumat_website/server/app/uploads')
296MEDIA_URL = '/uploads/'
297MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
298MIDDLEWARE = ['django.middleware.security.SecurityMiddleware', 'qsessions.middleware.SessionMiddleware', 'shared.middlewares.SessionTimeoutMiddleware', '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']
299MIGRATION_MODULES = {}
300MODELTRANSLATION_CUSTOM_FIELDS = "('JSONField', 'SearchVectorField')"
301MODELTRANSLATION_DEFAULT_LANGUAGE = 'uk'
302MODELTRANSLATION_FALLBACK_LANGUAGES = "('ru', 'uk', 'pl')"
303MODELTRANSLATION_LANGUAGES = "('pl', 'uk', 'ru')"
304MONTH_DAY_FORMAT = 'F j'
305NUMBER_GROUPING = 0
306PASSWORD_HASHERS = '********************'
307PASSWORD_RESET_TIMEOUT_DAYS = '********************'
308POSTIE_INSTANT_SEND = False
309POSTIE_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', 'Перезвонить'), ('new_request', 'New request'), ('new_question', 'New question'), ('new_contact_request', 'New contact request'))"
310POSTIE_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'}, 'new_request': {'username': 'Имя и фамилия', 'phone': 'Номер телефона', 'email': 'Адрес электронной почты', 'itn': 'ИНН', 'code': 'Код товара', 'comment': 'Комментарий пользователя'}, 'new_question': {'username': 'ФИО', 'phone': 'Номер телефона', 'email': 'Адрес электронной почты', 'question': 'вопрос', 'admin_url': 'ссылка на вопрос пользователя в админ-панели'}, 'new_contact_request': {'username': 'ФИО', 'phone': 'Номер телефона', 'email': 'Адрес электронной почты', 'comment': 'вопрос', 'admin_url': 'ссылка на запрос пользователя в админ-панели'}}
311PREPEND_WWW = False
312PROJECT_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', 'apps.wishlist', 'apps.comparison', 'apps.checkout', 'apps.export']
313PXD_CANNED_CACHE = {'UPDATE_TASK_LOCATION': 'shared.tasks.update_cache_task'}
314REST_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'), 'EXCEPTION_HANDLER': 'standards.drf.handlers.exception_handler'}
315ROOT_URLCONF = 'app.urls'
316ROSETTA_SHOW_AT_ADMIN_PANEL = True
317SECRET_KEY = '********************'
318SECURE_BROWSER_XSS_FILTER = False
319SECURE_CONTENT_TYPE_NOSNIFF = True
320SECURE_HSTS_INCLUDE_SUBDOMAINS = False
321SECURE_HSTS_PRELOAD = False
322SECURE_HSTS_SECONDS = 0
323SECURE_PROXY_SSL_HEADER = None
324SECURE_REDIRECT_EXEMPT = []
325SECURE_REFERRER_POLICY = None
326SECURE_SSL_HOST = None
327SECURE_SSL_REDIRECT = False
328SEO_HTML_ADMIN_WIDGET = {'widget': 'CKEditorUploadingWidget', 'widget_path': 'ckeditor_uploader.widgets'}
329SEO_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']
330SEO_VIEWS_CHOICES = "(('news', 'News index'),)"
331SEO_VIEWS_CONTEXT_NAME = 'instance_seo'
332SERVER_EMAIL = 'root@localhost'
333SESSION_CACHE_ALIAS = 'default'
334SESSION_COOKIE_AGE = 1209600
335SESSION_COOKIE_DOMAIN = None
336SESSION_COOKIE_HTTPONLY = True
337SESSION_COOKIE_NAME = 'sessionid'
338SESSION_COOKIE_PATH = '/'
339SESSION_COOKIE_SAMESITE = 'Lax'
340SESSION_COOKIE_SECURE = False
341SESSION_ENGINE = 'qsessions.backends.cached_db'
342SESSION_EXPIRE_AFTER_LAST_ACTIVITY = True
343SESSION_EXPIRE_AT_BROWSER_CLOSE = False
344SESSION_EXPIRE_SECONDS = 3600
345SESSION_FILE_PATH = None
346SESSION_SAVE_EVERY_REQUEST = False
347SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
348SESSION_TIMEOUT_REDIRECT = False
349SETTINGS_MODULE = 'app.settings'
350SHORT_DATETIME_FORMAT = 'm/d/Y P'
351SHORT_DATE_FORMAT = 'm/d/Y'
352SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
353SILENCED_SYSTEM_CHECKS = []
354SITE_ID = 1
355SOLO_CACHE = 'default'
356STATICFILES_DIRS = []
357STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
358STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
359STATIC_ROOT = PosixPath('/home/pneumat_website/pneumat_website/pneumat_website/server/app/static')
360STATIC_URL = '/static/'
361STREAMFIELD_STREAMBLOCKS_APP_PATH = 'apps.streamblocks'
362SWAGGER_SETTINGS = {'DEFAULT_PAGINATOR_INSPECTORS': ['shared.inspectors.StandardsPaginatorInspector', 'drf_yasg.inspectors.DjangoRestResponsePagination', 'drf_yasg.inspectors.CoreAPICompatInspector'], 'SECURITY_DEFINITIONS': {'Bearer': {'type': 'apiKey', 'name': 'EXPORT-KEY', 'in': 'header'}}}
363TEMPLATES = [{'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']}}]
364TEST_NON_SERIALIZED_APPS = []
365TEST_RUNNER = 'django.test.runner.DiscoverRunner'
366THOUSAND_SEPARATOR = ','
367TIME_FORMAT = 'P'
368TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
369TIME_ZONE = 'UTC'
370USE_I18N = True
371USE_L10N = True
372USE_THOUSAND_SEPARATOR = False
373USE_TZ = True
374USE_X_FORWARDED_HOST = False
375USE_X_FORWARDED_PORT = False
376WSGI_APPLICATION = 'app.wsgi.application'
377X_FRAME_OPTIONS = 'DENY'
378YEAR_MONTH_FORMAT = 'F Y'
379
380
381You're seeing this error because you have DEBUG = True in your
382Django settings file. Change that to False, and Django will
383display a standard page generated by the handler for this status code.
384
385