· 4 years ago · Nov 05, 2020, 01:14 PM
1IntegrityError at /api/export/orders/bills/create
2null value in column "checkout_id" violates not-null constraint
3DETAIL: Failing row contains (10, billnumber1, 2, 1765432.54, 1764332.54, freightorder_26_pm5d096.pdf, 2020-11-05 11:36:56.995+00, null).
4
5
6Request Method: POST
7Request URL: http://pnevmat.webcase-dev.com/api/export/orders/bills/create
8Django Version: 3.0.10
9Python Executable: /home/pneumat_website/pneumat_website/pneumat_website/server/.venv/bin/python3.8
10Python Version: 3.8.0
11Python Path: ['/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']
12Server time: Чт, 5 Ноя 2020 13:06:11 +0000
13Installed Applications:
14['markup',
15 'shared',
16 'apps.importer',
17 'apps.staff',
18 'apps.shop',
19 'apps.novaposhta',
20 'apps.news',
21 'apps.streamblocks',
22 'apps.pages',
23 'apps.menu',
24 'apps.contacts',
25 'apps.reviews',
26 'apps.settings',
27 'apps.wishlist',
28 'apps.comparison',
29 'apps.checkout',
30 'apps.export',
31 'jet',
32 'seo',
33 'rosetta',
34 'rest_framework',
35 'django_filters',
36 'standards',
37 'mptt',
38 'django_jinja',
39 'solo',
40 'adminsortable2',
41 'drf_recaptcha',
42 'drf_yasg',
43 'postie',
44 'parler',
45 'codemirror2',
46 'ckeditor',
47 'ckeditor_uploader',
48 'des',
49 'vuejs_translate',
50 'modeltranslation',
51 'streamfield',
52 'mapwidgets',
53 'jsoneditor',
54 'import_export',
55 'qsessions',
56 'robots',
57 'rest_framework_tracking',
58 'cy_cart',
59 'cy_cart.integrations.django',
60 'django.contrib.gis',
61 'django.contrib.admin',
62 'django.contrib.auth',
63 'django.contrib.contenttypes',
64 'django.contrib.sessions',
65 'django.contrib.messages',
66 'django.contrib.staticfiles',
67 'django.contrib.sites']
68Installed Middleware:
69['django.middleware.security.SecurityMiddleware',
70 'qsessions.middleware.SessionMiddleware',
71 'shared.middlewares.SessionTimeoutMiddleware',
72 'django.middleware.locale.LocaleMiddleware',
73 'django.middleware.common.CommonMiddleware',
74 'django.middleware.csrf.CsrfViewMiddleware',
75 'django.contrib.auth.middleware.AuthenticationMiddleware',
76 'django.contrib.messages.middleware.MessageMiddleware',
77 'django.middleware.clickjacking.XFrameOptionsMiddleware']
78
79
80Traceback (most recent call last):
81 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 86, in _execute
82 return self.cursor.execute(sql, params)
83
84The above exception (null value in column "checkout_id" violates not-null constraint
85DETAIL: Failing row contains (10, billnumber1, 2, 1765432.54, 1764332.54, freightorder_26_pm5d096.pdf, 2020-11-05 11:36:56.995+00, null).
86) was the direct cause of the following exception:
87 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 34, in inner
88 response = get_response(request)
89 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
90 response = self.process_exception_by_middleware(e, request)
91 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
92 response = wrapped_callback(request, *callback_args, **callback_kwargs)
93 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
94 return view_func(*args, **kwargs)
95 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/views/generic/base.py", line 71, in view
96 return self.dispatch(request, *args, **kwargs)
97 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/rest_framework/views.py", line 509, in dispatch
98 response = self.handle_exception(exc)
99 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
100 response = super(BaseLoggingMixin, self).handle_exception(exc)
101 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/rest_framework/views.py", line 469, in handle_exception
102 self.raise_uncaught_exception(exc)
103 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
104 raise exc
105 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/rest_framework/views.py", line 506, in dispatch
106 response = handler(request, *args, **kwargs)
107 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/rest_framework/generics.py", line 190, in post
108 return self.create(request, *args, **kwargs)
109 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/rest_framework/mixins.py", line 19, in create
110 self.perform_create(serializer)
111 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/rest_framework/mixins.py", line 24, in perform_create
112 serializer.save()
113 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/rest_framework/serializers.py", line 205, in save
114 self.instance = self.create(validated_data)
115 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/rest_framework/serializers.py", line 939, in create
116 instance = ModelClass._default_manager.create(**validated_data)
117 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/db/models/manager.py", line 82, in manager_method
118 return getattr(self.get_queryset(), name)(*args, **kwargs)
119 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/db/models/query.py", line 433, in create
120 obj.save(force_insert=True, using=self.db)
121 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/db/models/base.py", line 748, in save
122 self.save_base(using=using, force_insert=force_insert,
123 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/db/models/base.py", line 785, in save_base
124 updated = self._save_table(
125 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/db/models/base.py", line 890, in _save_table
126 results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw)
127 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/db/models/base.py", line 927, in _do_insert
128 return manager._insert(
129 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/db/models/manager.py", line 82, in manager_method
130 return getattr(self.get_queryset(), name)(*args, **kwargs)
131 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/db/models/query.py", line 1204, in _insert
132 return query.get_compiler(using=using).execute_sql(returning_fields)
133 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1394, in execute_sql
134 cursor.execute(sql, params)
135 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 100, in execute
136 return super().execute(sql, params)
137 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 68, in execute
138 return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
139 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 77, in _execute_with_wrappers
140 return executor(sql, params, many, context)
141 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 86, in _execute
142 return self.cursor.execute(sql, params)
143 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/db/utils.py", line 90, in __exit__
144 raise dj_exc_value.with_traceback(traceback) from exc_value
145 File "/home/pneumat_website/pneumat_website/pneumat_website/server/.venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 86, in _execute
146 return self.cursor.execute(sql, params)
147
148Exception Type: IntegrityError at /api/export/orders/bills/create
149Exception Value: null value in column "checkout_id" violates not-null constraint
150DETAIL: Failing row contains (10, billnumber1, 2, 1765432.54, 1764332.54, freightorder_26_pm5d096.pdf, 2020-11-05 11:36:56.995+00, null).
151
152Request information:
153USER: AnonymousUser
154
155GET: No GET data
156
157POST:
158number = 'billnumber1'
159payment_status = '2'
160price = '1765432.54'
161price_without_nds = '1764332.54'
162generated_at = '2020-11-05T11:36:56.995Z'
163checkout_id = '"dasdasd"'
164
165FILES:
166file = <InMemoryUploadedFile: freightorder_26.pdf (application/pdf)>
167
168COOKIES: No cookie data
169
170META:
171CONTENT_LENGTH = '17062'
172CONTENT_TYPE = 'multipart/form-data; boundary=--------------------------770533716326159657765615'
173HTTP_ACCEPT = '*/*'
174HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
175HTTP_CONNECTION = 'close'
176HTTP_EXPORT_KEY = '6UNV6r8WMbkUhQSbbUqEgkceRH9cQSgUtAnptR7v24MUdRBiSeFq8jOhLt4b4sE'
177HTTP_HOST = 'pnevmat.webcase-dev.com'
178HTTP_POSTMAN_TOKEN = 'd4422f43-76c6-4995-bcd6-19690c6bef41'
179HTTP_USER_AGENT = 'PostmanRuntime/7.26.8'
180HTTP_X_FORWARDED_FOR = '185.248.130.27'
181PATH_INFO = '/api/export/orders/bills/create'
182QUERY_STRING = ''
183RAW_URI = '/api/export/orders/bills/create'
184REMOTE_ADDR = ''
185REQUEST_METHOD = 'POST'
186SCRIPT_NAME = ''
187SERVER_NAME = 'pnevmat.webcase-dev.com'
188SERVER_PORT = '80'
189SERVER_PROTOCOL = 'HTTP/1.0'
190SERVER_SOFTWARE = 'gunicorn/20.0.4'
191gunicorn.socket = <gevent._socket3.socket at 0x7fe536ff6450 object, fd=8, family=1, type=1, proto=0>
192wsgi.errors = <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7fe537159b50>
193wsgi.file_wrapper = ''
194wsgi.input = <gunicorn.http.body.Body object at 0x7fe537159dc0>
195wsgi.input_terminated = True
196wsgi.multiprocess = True
197wsgi.multithread = True
198wsgi.run_once = False
199wsgi.url_scheme = 'http'
200wsgi.version = '(1, 0)'
201
202Settings:
203Using settings module app.settings
204ABSOLUTE_URL_OVERRIDES = {}
205ADMINS = []
206ALLOWED_HOSTS = ['pnevmat.webcase-dev.com', '64.227.123.124']
207APPEND_SLASH = True
208AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend', 'apps.staff.authentication.EmailBackend']
209AUTH_PASSWORD_VALIDATORS = '********************'
210AUTH_USER_MODEL = 'staff.User'
211BASE_DIR = PosixPath('/home/pneumat_website/pneumat_website/pneumat_website/server/app/settings/default.py')
212BASE_ROOT = PosixPath('/home/pneumat_website/pneumat_website/pneumat_website/server/app')
213CACHES = {'default': {'BACKEND': 'django_redis.cache.RedisCache', 'LOCATION': 'redis://127.0.0.1:6379/1'}}
214CACHE_MIDDLEWARE_ALIAS = 'default'
215CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
216CACHE_MIDDLEWARE_SECONDS = 600
217CELERY_ACCEPT_CONTENT = ['json']
218CELERY_BROKER_URL = 'redis://127.0.0.1:6379/0'
219CELERY_RESULT_SERIALIZER = 'json'
220CELERY_TASK_SERIALIZER = 'json'
221CKEDITOR_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'}}
222CKEDITOR_UPLOAD_PATH = PosixPath('/home/pneumat_website/pneumat_website/pneumat_website/server/app/uploads')
223CSRF_COOKIE_AGE = 31449600
224CSRF_COOKIE_DOMAIN = None
225CSRF_COOKIE_HTTPONLY = False
226CSRF_COOKIE_NAME = 'csrftoken'
227CSRF_COOKIE_PATH = '/'
228CSRF_COOKIE_SAMESITE = 'Lax'
229CSRF_COOKIE_SECURE = False
230CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
231CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
232CSRF_TRUSTED_ORIGINS = []
233CSRF_USE_SESSIONS = False
234DATABASES = {'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}}}
235DATABASE_ROUTERS = []
236DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
237DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
238DATETIME_FORMAT = 'N j, Y, P'
239DATETIME_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']
240DATE_FORMAT = 'N j, Y'
241DATE_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']
242DEBUG = True
243DEBUG_PROPAGATE_EXCEPTIONS = False
244DECIMAL_SEPARATOR = '.'
245DEFAULT_CHARSET = 'utf-8'
246DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
247DEFAULT_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']
248DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
249DEFAULT_FROM_EMAIL = 'admin@admin.admin'
250DEFAULT_INDEX_TABLESPACE = ''
251DEFAULT_TABLESPACE = ''
252DISALLOWED_USER_AGENTS = []
253DJANGO_SHOP_CART = {'CART_ITEM_SERIALIZERS': {'apps.shop.models.Product': 'apps.shop.serializers.CartProductSerializer'}}
254DRF_RECAPTCHA_SECRET_KEY = '********************'
255EMAIL_BACKEND = 'des.backends.ConfiguredEmailBackend'
256EMAIL_HOST = 'localhost'
257EMAIL_HOST_PASSWORD = '********************'
258EMAIL_HOST_USER = ''
259EMAIL_PORT = 25
260EMAIL_SSL_CERTFILE = None
261EMAIL_SSL_KEYFILE = '********************'
262EMAIL_SUBJECT_PREFIX = '[Django] '
263EMAIL_TIMEOUT = None
264EMAIL_USE_LOCALTIME = False
265EMAIL_USE_SSL = False
266EMAIL_USE_TLS = False
267FILE_CHARSET = 'utf-8'
268FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
269FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
270FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
271FILE_UPLOAD_PERMISSIONS = 420
272FILE_UPLOAD_TEMP_DIR = None
273FIRST_DAY_OF_WEEK = 0
274FIXTURE_DIRS = []
275FORCE_SCRIPT_NAME = None
276FORMAT_MODULE_PATH = None
277FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
278FTP_AVAILABILITY_DOWNLOAD = PosixPath('/home/pneumat_website/pneumat_website/pneumat_website/server/app/uploads')
279FTP_AVAILABILITY_FILE = 'Pneumat_Item_Availability.csv'
280FTP_AVAILABILITY_HOST = ''
281FTP_AVAILABILITY_PASSWORD = '********************'
282FTP_AVAILABILITY_PATH = 'Pneumat_Item_Availability'
283FTP_AVAILABILITY_PORT = ''
284FTP_AVAILABILITY_USER = ''
285FULLTEXT_LANGUAGES = {'uk': 'ukrainian', 'ru': 'russian'}
286GOOGLE_MAP_API_KEY = '********************'
287GUNICORN_PID = '/run/pneumat_website_gunicorn/pneumat_website_gunicorn.pid'
288IGNORABLE_404_URLS = []
289IMPORT_UPLOADS_BASE_URL = 'https://pnparser.webcase-dev.com/uploads'
290INSTALLED_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']
291INTERNAL_IPS = []
292JET_SIDE_MENU_COMPACT = True
293LANGUAGES = "(('ru', 'Русский'), ('uk', 'Украинский'))"
294LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
295LANGUAGE_CODE = 'ru'
296LANGUAGE_COOKIE_AGE = None
297LANGUAGE_COOKIE_DOMAIN = None
298LANGUAGE_COOKIE_HTTPONLY = False
299LANGUAGE_COOKIE_NAME = 'django_language'
300LANGUAGE_COOKIE_PATH = '/'
301LANGUAGE_COOKIE_SAMESITE = None
302LANGUAGE_COOKIE_SECURE = False
303LOCALE_PATHS = "(PosixPath('/home/pneumat_website/pneumat_website/pneumat_website/server/app/locale'),)"
304LOGGING = {'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']}}
305LOGGING_CONFIG = 'logging.config.dictConfig'
306LOGIN_REDIRECT_URL = '/accounts/profile/'
307LOGIN_URL = '/auth/login/'
308LOGOUT_REDIRECT_URL = '/'
309MANAGERS = []
310MAP_WIDGETS = {'GOOGLE_MAP_API_KEY': '********************'}
311MEDIA_ROOT = PosixPath('/home/pneumat_website/pneumat_website/pneumat_website/server/app/uploads')
312MEDIA_URL = '/uploads/'
313MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
314MIDDLEWARE = ['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']
315MIGRATION_MODULES = {}
316MODELTRANSLATION_CUSTOM_FIELDS = "('JSONField', 'SearchVectorField')"
317MODELTRANSLATION_DEFAULT_LANGUAGE = 'uk'
318MODELTRANSLATION_FALLBACK_LANGUAGES = "('ru', 'uk', 'pl')"
319MODELTRANSLATION_LANGUAGES = "('pl', 'uk', 'ru')"
320MONTH_DAY_FORMAT = 'F j'
321NUMBER_GROUPING = 0
322PASSWORD_HASHERS = '********************'
323PASSWORD_RESET_TIMEOUT_DAYS = '********************'
324POSTIE_INSTANT_SEND = False
325POSTIE_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'))"
326POSTIE_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': 'ссылка на запрос пользователя в админ-панели'}}
327PREPEND_WWW = False
328PROJECT_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']
329PXD_CANNED_CACHE = {'UPDATE_TASK_LOCATION': 'shared.tasks.update_cache_task'}
330REST_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'}
331ROOT_URLCONF = 'app.urls'
332ROSETTA_SHOW_AT_ADMIN_PANEL = True
333SECRET_KEY = '********************'
334SECURE_BROWSER_XSS_FILTER = False
335SECURE_CONTENT_TYPE_NOSNIFF = True
336SECURE_HSTS_INCLUDE_SUBDOMAINS = False
337SECURE_HSTS_PRELOAD = False
338SECURE_HSTS_SECONDS = 0
339SECURE_PROXY_SSL_HEADER = None
340SECURE_REDIRECT_EXEMPT = []
341SECURE_REFERRER_POLICY = None
342SECURE_SSL_HOST = None
343SECURE_SSL_REDIRECT = False
344SEO_HTML_ADMIN_WIDGET = {'widget': 'CKEditorUploadingWidget', 'widget_path': 'ckeditor_uploader.widgets'}
345SEO_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']
346SEO_VIEWS_CHOICES = "(('news', 'News index'),)"
347SEO_VIEWS_CONTEXT_NAME = 'instance_seo'
348SERVER_EMAIL = 'root@localhost'
349SESSION_CACHE_ALIAS = 'default'
350SESSION_COOKIE_AGE = 1209600
351SESSION_COOKIE_DOMAIN = None
352SESSION_COOKIE_HTTPONLY = True
353SESSION_COOKIE_NAME = 'sessionid'
354SESSION_COOKIE_PATH = '/'
355SESSION_COOKIE_SAMESITE = 'Lax'
356SESSION_COOKIE_SECURE = False
357SESSION_ENGINE = 'qsessions.backends.cached_db'
358SESSION_EXPIRE_AFTER_LAST_ACTIVITY = True
359SESSION_EXPIRE_AT_BROWSER_CLOSE = False
360SESSION_EXPIRE_SECONDS = 3600
361SESSION_FILE_PATH = None
362SESSION_SAVE_EVERY_REQUEST = False
363SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
364SESSION_TIMEOUT_REDIRECT = False
365SETTINGS_MODULE = 'app.settings'
366SHORT_DATETIME_FORMAT = 'm/d/Y P'
367SHORT_DATE_FORMAT = 'm/d/Y'
368SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
369SILENCED_SYSTEM_CHECKS = []
370SITE_ID = 1
371SOLO_CACHE = 'default'
372STATICFILES_DIRS = []
373STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
374STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
375STATIC_ROOT = PosixPath('/home/pneumat_website/pneumat_website/pneumat_website/server/app/static')
376STATIC_URL = '/static/'
377STREAMFIELD_STREAMBLOCKS_APP_PATH = 'apps.streamblocks'
378SWAGGER_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'}}}
379TEMPLATES = [{'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']}}]
380TEST_NON_SERIALIZED_APPS = []
381TEST_RUNNER = 'django.test.runner.DiscoverRunner'
382THOUSAND_SEPARATOR = ','
383TIME_FORMAT = 'P'
384TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
385TIME_ZONE = 'UTC'
386USE_I18N = True
387USE_L10N = True
388USE_THOUSAND_SEPARATOR = False
389USE_TZ = True
390USE_X_FORWARDED_HOST = False
391USE_X_FORWARDED_PORT = False
392WSGI_APPLICATION = 'app.wsgi.application'
393X_FRAME_OPTIONS = 'DENY'
394YEAR_MONTH_FORMAT = 'F Y'
395
396
397You're seeing this error because you have DEBUG = True in your
398Django settings file. Change that to False, and Django will
399display a standard page generated by the handler for this status code.
400
401