· 5 years ago · Aug 07, 2020, 07:14 AM
1MultipleObjectsReturned at /api/cart/quantity
2get() returned more than one Cart -- it returned 2!
3
4Request Method: GET
5Request URL: http://pnevmat.webcase-dev.com/api/cart/quantity
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:07:35 +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 208, in get
91 return self.retrieve(request, *args, **kwargs)
92 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.7/site-packages/rest_framework/mixins.py", line 54, in retrieve
93 instance = self.get_object()
94 File "/home/pneumat_website/pneumat_website/pneumat_website/server/packages/cy-cart/cy_cart/integrations/django/views.py", line 27, in get_object
95 cart = cart_settings.CART.load(self.request, self.request.user)
96 File "/home/pneumat_website/pneumat_website/pneumat_website/server/packages/cy-cart/cy_cart/integrations/django/cart.py", line 44, in load
97 cart = cls.storage().load(request, user)
98 File "/usr/lib/python3.7/contextlib.py", line 74, in inner
99 return func(*args, **kwds)
100 File "/home/pneumat_website/pneumat_website/pneumat_website/server/packages/cy-cart/cy_cart/integrations/django/storage.py", line 39, in load
101 cart, was_created = cls.get_or_create(request, user)
102 File "/home/pneumat_website/pneumat_website/pneumat_website/server/packages/cy-cart/cy_cart/integrations/django/storage.py", line 17, in get_or_create
103 defaults={'session_key': request.session.session_key},
104 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.7/site-packages/django/db/models/query.py", line 559, in get_or_create
105 return self.get(**kwargs), False
106 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.7/site-packages/django/db/models/query.py", line 422, in get
107 num if not limit or num < limit else 'more than %s' % (limit - 1),
108
109Exception Type: MultipleObjectsReturned at /api/cart/quantity
110Exception Value: get() returned more than one Cart -- it returned 2!
111Request information:
112USER: ad
113
114GET: No GET data
115
116POST: No POST data
117
118FILES: No FILES data
119
120COOKIES:
121_ga = 'GA1.2.1875088613.1585902011'
122bpmRef = ''
123bpmTrackingId = '05dc6bc6-0b7d-6791-cb64-368a6500616c'
124bpmHref = 'http://lse.webcase-dev.com/'
125csrftoken = 'NjyDxsyUKjefqMPCiFJY86aAbBHOk0NHC5H1XTW2LtPkAVVTRixxnq7q29j2yAjD'
126sessionid = 'slcqx7tofd3xvuo1kyv28lxtydj7k64d'
127googtrans = '/auto/ru'
128_fbp = 'fb.1.1596442719099.2018978858'
129_hjid = 'edf86996-04c7-49b1-b3ef-d9f7315ded6b'
130_gid = 'GA1.2.846630349.1596709712'
131
132META:
133CONTENT_TYPE = 'application/json'
134CSRF_COOKIE = 'NjyDxsyUKjefqMPCiFJY86aAbBHOk0NHC5H1XTW2LtPkAVVTRixxnq7q29j2yAjD'
135HTTP_ACCEPT = '*/*'
136HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
137HTTP_ACCEPT_LANGUAGE = 'undefined'
138HTTP_CACHE_CONTROL = 'no-cache'
139HTTP_CONNECTION = 'close'
140HTTP_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'
141HTTP_HOST = 'pnevmat.webcase-dev.com'
142HTTP_PRAGMA = 'no-cache'
143HTTP_REFERER = 'https://pnevmat.webcase-dev.com/client'
144HTTP_SEC_FETCH_DEST = 'empty'
145HTTP_SEC_FETCH_MODE = 'same-origin'
146HTTP_SEC_FETCH_SITE = 'same-origin'
147HTTP_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'
148HTTP_X_CSRFTOKEN = 'NjyDxsyUKjefqMPCiFJY86aAbBHOk0NHC5H1XTW2LtPkAVVTRixxnq7q29j2yAjD'
149HTTP_X_FORWARDED_FOR = '185.248.130.27'
150HTTP_X_REQUESTED_WITH = 'XMLHttpRequest'
151PATH_INFO = '/api/cart/quantity'
152QUERY_STRING = ''
153RAW_URI = '/api/cart/quantity'
154REMOTE_ADDR = ''
155REQUEST_METHOD = 'GET'
156SCRIPT_NAME = ''
157SERVER_NAME = 'pnevmat.webcase-dev.com'
158SERVER_PORT = '80'
159SERVER_PROTOCOL = 'HTTP/1.0'
160SERVER_SOFTWARE = 'gunicorn/20.0.4'
161gunicorn.socket = <gevent._socket3.socket at 0x7f8d42c41f50 object, fd=9, family=1, type=1, proto=0>
162wsgi.errors = <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f8d429ed190>
163wsgi.file_wrapper = ''
164wsgi.input = <gunicorn.http.body.Body object at 0x7f8d429ed910>
165wsgi.input_terminated = True
166wsgi.multiprocess = True
167wsgi.multithread = True
168wsgi.run_once = False
169wsgi.url_scheme = 'http'
170wsgi.version = '(1, 0)'
171
172Settings:
173Using settings module app.settings
174ABSOLUTE_URL_OVERRIDES = {}
175ADMINS = []
176ALLOWED_HOSTS = ['pnevmat.webcase-dev.com', '64.227.123.124']
177APPEND_SLASH = True
178AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend', 'apps.staff.authentication.EmailBackend']
179AUTH_PASSWORD_VALIDATORS = '********************'
180AUTH_USER_MODEL = 'staff.User'
181BASE_DIR = PosixPath('/home/pneumat_website/pneumat_website/pneumat_website/server/app/settings/default.py')
182BASE_ROOT = PosixPath('/home/pneumat_website/pneumat_website/pneumat_website/server/app')
183CACHES = {'default': {'BACKEND': 'django_redis.cache.RedisCache', 'LOCATION': 'redis://127.0.0.1:6379/1'}}
184CACHE_MIDDLEWARE_ALIAS = 'default'
185CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
186CACHE_MIDDLEWARE_SECONDS = 600
187CELERY_ACCEPT_CONTENT = ['json']
188CELERY_BROKER_URL = 'redis://127.0.0.1:6379/0'
189CELERY_RESULT_SERIALIZER = 'json'
190CELERY_TASK_SERIALIZER = 'json'
191CKEDITOR_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'}}
192CKEDITOR_UPLOAD_PATH = PosixPath('/home/pneumat_website/pneumat_website/pneumat_website/server/app/uploads')
193CSRF_COOKIE_AGE = 31449600
194CSRF_COOKIE_DOMAIN = None
195CSRF_COOKIE_HTTPONLY = False
196CSRF_COOKIE_NAME = 'csrftoken'
197CSRF_COOKIE_PATH = '/'
198CSRF_COOKIE_SAMESITE = 'Lax'
199CSRF_COOKIE_SECURE = False
200CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
201CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
202CSRF_TRUSTED_ORIGINS = []
203CSRF_USE_SESSIONS = False
204DATABASES = {'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}}}
205DATABASE_ROUTERS = []
206DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
207DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
208DATETIME_FORMAT = 'N j, Y, P'
209DATETIME_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']
210DATE_FORMAT = 'N j, Y'
211DATE_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']
212DEBUG = True
213DEBUG_PROPAGATE_EXCEPTIONS = False
214DECIMAL_SEPARATOR = '.'
215DEFAULT_CHARSET = 'utf-8'
216DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
217DEFAULT_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']
218DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
219DEFAULT_FROM_EMAIL = 'admin@admin.admin'
220DEFAULT_INDEX_TABLESPACE = ''
221DEFAULT_TABLESPACE = ''
222DISALLOWED_USER_AGENTS = []
223DJANGO_SHOP_CART = {'CART_ITEM_SERIALIZERS': {'apps.shop.models.Product': 'apps.shop.serializers.CartProductSerializer'}}
224DRF_RECAPTCHA_SECRET_KEY = '********************'
225EMAIL_BACKEND = 'des.backends.ConfiguredEmailBackend'
226EMAIL_HOST = 'localhost'
227EMAIL_HOST_PASSWORD = '********************'
228EMAIL_HOST_USER = ''
229EMAIL_PORT = 25
230EMAIL_SSL_CERTFILE = None
231EMAIL_SSL_KEYFILE = '********************'
232EMAIL_SUBJECT_PREFIX = '[Django] '
233EMAIL_TIMEOUT = None
234EMAIL_USE_LOCALTIME = False
235EMAIL_USE_SSL = False
236EMAIL_USE_TLS = False
237FILE_CHARSET = 'utf-8'
238FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
239FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
240FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
241FILE_UPLOAD_PERMISSIONS = 420
242FILE_UPLOAD_TEMP_DIR = None
243FIRST_DAY_OF_WEEK = 0
244FIXTURE_DIRS = []
245FORCE_SCRIPT_NAME = None
246FORMAT_MODULE_PATH = None
247FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
248GOOGLE_MAP_API_KEY = '********************'
249GUNICORN_PID = '/tmp/pneumat.pid'
250IGNORABLE_404_URLS = []
251IMPORT_UPLOADS_BASE_URL = 'http://165.22.80.47/uploads'
252INSTALLED_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']
253INTERNAL_IPS = []
254LANGUAGES = "(('ru', 'Русский'), ('uk', 'Украинский'))"
255LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
256LANGUAGE_CODE = 'ru'
257LANGUAGE_COOKIE_AGE = None
258LANGUAGE_COOKIE_DOMAIN = None
259LANGUAGE_COOKIE_HTTPONLY = False
260LANGUAGE_COOKIE_NAME = 'django_language'
261LANGUAGE_COOKIE_PATH = '/'
262LANGUAGE_COOKIE_SAMESITE = None
263LANGUAGE_COOKIE_SECURE = False
264LOCALE_PATHS = "(PosixPath('/home/pneumat_website/pneumat_website/pneumat_website/server/app/locale'),)"
265LOGGING = {'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']}}
266LOGGING_CONFIG = 'logging.config.dictConfig'
267LOGIN_REDIRECT_URL = '/accounts/profile/'
268LOGIN_URL = '/accounts/login/'
269LOGOUT_REDIRECT_URL = None
270MANAGERS = []
271MAP_WIDGETS = {'GOOGLE_MAP_API_KEY': '********************'}
272MEDIA_ROOT = PosixPath('/home/pneumat_website/pneumat_website/pneumat_website/server/app/uploads')
273MEDIA_URL = '/uploads/'
274MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
275MIDDLEWARE = ['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']
276MIGRATION_MODULES = {}
277MODELTRANSLATION_CUSTOM_FIELDS = "('JSONField',)"
278MODELTRANSLATION_DEFAULT_LANGUAGE = 'uk'
279MODELTRANSLATION_FALLBACK_LANGUAGES = "('ru', 'uk', 'pl')"
280MODELTRANSLATION_LANGUAGES = "('pl', 'uk', 'ru')"
281MONTH_DAY_FORMAT = 'F j'
282NUMBER_GROUPING = 0
283PASSWORD_HASHERS = '********************'
284PASSWORD_RESET_TIMEOUT_DAYS = '********************'
285POSTIE_INSTANT_SEND = False
286POSTIE_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', 'Перезвонить'))"
287POSTIE_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'}}
288PREPEND_WWW = False
289PROJECT_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']
290PXD_CANNED_CACHE = {'UPDATE_TASK_LOCATION': 'shared.tasks.update_cache_task'}
291REST_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')}
292ROOT_URLCONF = 'app.urls'
293SECRET_KEY = '********************'
294SECURE_BROWSER_XSS_FILTER = False
295SECURE_CONTENT_TYPE_NOSNIFF = True
296SECURE_HSTS_INCLUDE_SUBDOMAINS = False
297SECURE_HSTS_PRELOAD = False
298SECURE_HSTS_SECONDS = 0
299SECURE_PROXY_SSL_HEADER = None
300SECURE_REDIRECT_EXEMPT = []
301SECURE_REFERRER_POLICY = None
302SECURE_SSL_HOST = None
303SECURE_SSL_REDIRECT = False
304SEO_HTML_ADMIN_WIDGET = {'widget': 'CKEditorUploadingWidget', 'widget_path': 'ckeditor_uploader.widgets'}
305SEO_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']
306SEO_VIEWS_CHOICES = "(('news', 'News index'),)"
307SEO_VIEWS_CONTEXT_NAME = 'instance_seo'
308SERVER_EMAIL = 'root@localhost'
309SESSION_CACHE_ALIAS = 'default'
310SESSION_COOKIE_AGE = 1209600
311SESSION_COOKIE_DOMAIN = None
312SESSION_COOKIE_HTTPONLY = True
313SESSION_COOKIE_NAME = 'sessionid'
314SESSION_COOKIE_PATH = '/'
315SESSION_COOKIE_SAMESITE = 'Lax'
316SESSION_COOKIE_SECURE = False
317SESSION_ENGINE = 'qsessions.backends.cached_db'
318SESSION_EXPIRE_AT_BROWSER_CLOSE = False
319SESSION_FILE_PATH = None
320SESSION_SAVE_EVERY_REQUEST = False
321SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
322SETTINGS_MODULE = 'app.settings'
323SHORT_DATETIME_FORMAT = 'm/d/Y P'
324SHORT_DATE_FORMAT = 'm/d/Y'
325SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
326SILENCED_SYSTEM_CHECKS = []
327SITE_ID = 1
328STATICFILES_DIRS = []
329STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
330STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
331STATIC_ROOT = PosixPath('/home/pneumat_website/pneumat_website/pneumat_website/server/app/static')
332STATIC_URL = '/static/'
333STREAMFIELD_STREAMBLOCKS_APP_PATH = 'apps.streamblocks'
334SWAGGER_SETTINGS = {'DEFAULT_PAGINATOR_INSPECTORS': ['shared.inspectors.StandardsPaginatorInspector', 'drf_yasg.inspectors.DjangoRestResponsePagination', 'drf_yasg.inspectors.CoreAPICompatInspector']}
335TEMPLATES = [{'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']}}]
336TEST_NON_SERIALIZED_APPS = []
337TEST_RUNNER = 'django.test.runner.DiscoverRunner'
338THOUSAND_SEPARATOR = ','
339TIME_FORMAT = 'P'
340TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
341TIME_ZONE = 'UTC'
342USE_I18N = True
343USE_L10N = True
344USE_THOUSAND_SEPARATOR = False
345USE_TZ = True
346USE_X_FORWARDED_HOST = False
347USE_X_FORWARDED_PORT = False
348WSGI_APPLICATION = 'app.wsgi.application'
349X_FRAME_OPTIONS = 'DENY'
350YEAR_MONTH_FORMAT = 'F Y'
351
352
353You're seeing this error because you have DEBUG = True in your
354Django settings file. Change that to False, and Django will
355display a standard page generated by the handler for this status code.
356