· 4 years ago · Jun 30, 2021, 06:24 AM
1AssertionError at /api/v1/onec/orders-status/
2The field 'id_order' was declared on serializer OrderStatusesModelSerializer, but has not been included in the 'fields' option.
3
4Request Method: POST
5Request URL: http://dinternal.webcase-dev.com/api/v1/onec/orders-status/
6Django Version: 3.0
7Python Executable: /home/dinternal-shop/dinternal-shop/dinternal-shop/server/.venv/bin/python
8Python Version: 3.7.10
9Python Path: ['/home/dinternal-shop/dinternal-shop/dinternal-shop/server', '/home/dinternal-shop/dinternal-shop/dinternal-shop/server', '/home/dinternal-shop/dinternal-shop/dinternal-shop/server/.venv/bin', '/usr/lib/python37.zip', '/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', '/home/dinternal-shop/dinternal-shop/dinternal-shop/server/.venv/lib/python3.7/site-packages']
10Server time: Ср, 30 Чер 2021 09:17:37 +0300
11Installed Applications:
12['markup',
13 'shared',
14 'apps.frontend',
15 'apps.staff',
16 'apps.products',
17 'apps.organization',
18 'apps.menus',
19 'apps.attributes',
20 'apps.product_extensions',
21 'apps.django_novaposhta',
22 'apps.orders',
23 'apps.blogs',
24 'apps.other_pages',
25 'apps.faqs',
26 'rosetta',
27 'django_jinja',
28 'jet',
29 'rangefilter',
30 'rest_framework',
31 'standards',
32 'ckeditor',
33 'ckeditor_uploader',
34 'versatileimagefield',
35 'solo',
36 'adminsortable2',
37 'modeltranslation',
38 'mptt',
39 'constance',
40 'robots',
41 'ok_cart',
42 'hijack',
43 'compat',
44 'dal',
45 'dal_select2',
46 'postie',
47 'parler',
48 'codemirror2',
49 'des',
50 'social_django',
51 'script_pattern',
52 'ok_redirects',
53 'dj_template_admin_urls',
54 'seo',
55 'vuejs_translate',
56 'drf_recaptcha',
57 'django.contrib.admin',
58 'django.contrib.auth',
59 'django.contrib.contenttypes',
60 'django.contrib.sessions',
61 'django.contrib.messages',
62 'django.contrib.staticfiles',
63 'django.contrib.sites',
64 'webpack_loader']
65Installed Middleware:
66['django.middleware.security.SecurityMiddleware',
67 'django.contrib.sessions.middleware.SessionMiddleware',
68 'django.middleware.locale.LocaleMiddleware',
69 'django.middleware.common.CommonMiddleware',
70 'django.middleware.csrf.CsrfViewMiddleware',
71 'django.contrib.auth.middleware.AuthenticationMiddleware',
72 'django.contrib.messages.middleware.MessageMiddleware',
73 'django.middleware.clickjacking.XFrameOptionsMiddleware',
74 'shared.middleware.extra_slashes_redirect_middleware',
75 'social_django.middleware.SocialAuthExceptionMiddleware',
76 'apps.other_pages.middlewares.DefaultCiityMiddleware',
77 'seo.middleware.url_seo_middleware',
78 'ok_redirects.middleware.RedirectMiddleware']
79
80
81Traceback (most recent call last):
82 File "/home/dinternal-shop/dinternal-shop/dinternal-shop/server/.venv/lib/python3.7/site-packages/django/core/handlers/exception.py", line 34, in inner
83 response = get_response(request)
84 File "/home/dinternal-shop/dinternal-shop/dinternal-shop/server/.venv/lib/python3.7/site-packages/django/core/handlers/base.py", line 115, in _get_response
85 response = self.process_exception_by_middleware(e, request)
86 File "/home/dinternal-shop/dinternal-shop/dinternal-shop/server/.venv/lib/python3.7/site-packages/django/core/handlers/base.py", line 113, in _get_response
87 response = wrapped_callback(request, *callback_args, **callback_kwargs)
88 File "/home/dinternal-shop/dinternal-shop/dinternal-shop/server/.venv/lib/python3.7/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
89 return view_func(*args, **kwargs)
90 File "/home/dinternal-shop/dinternal-shop/dinternal-shop/server/.venv/lib/python3.7/site-packages/django/views/generic/base.py", line 71, in view
91 return self.dispatch(request, *args, **kwargs)
92 File "/home/dinternal-shop/dinternal-shop/dinternal-shop/server/.venv/lib/python3.7/site-packages/rest_framework/views.py", line 509, in dispatch
93 response = self.handle_exception(exc)
94 File "/home/dinternal-shop/dinternal-shop/dinternal-shop/server/.venv/lib/python3.7/site-packages/rest_framework/views.py", line 469, in handle_exception
95 self.raise_uncaught_exception(exc)
96 File "/home/dinternal-shop/dinternal-shop/dinternal-shop/server/.venv/lib/python3.7/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
97 raise exc
98 File "/home/dinternal-shop/dinternal-shop/dinternal-shop/server/.venv/lib/python3.7/site-packages/rest_framework/views.py", line 506, in dispatch
99 response = handler(request, *args, **kwargs)
100 File "/home/dinternal-shop/dinternal-shop/dinternal-shop/server/apps/organization/api/views/order_status.py", line 76, in post
101 "statuses": OrderStatusesModelSerializer(qs_order, many=True).data
102 File "/home/dinternal-shop/dinternal-shop/dinternal-shop/server/.venv/lib/python3.7/site-packages/rest_framework/serializers.py", line 745, in data
103 ret = super().data
104 File "/home/dinternal-shop/dinternal-shop/dinternal-shop/server/.venv/lib/python3.7/site-packages/rest_framework/serializers.py", line 246, in data
105 self._data = self.to_representation(self.instance)
106 File "/home/dinternal-shop/dinternal-shop/dinternal-shop/server/.venv/lib/python3.7/site-packages/rest_framework/serializers.py", line 664, in to_representation
107 self.child.to_representation(item) for item in iterable
108 File "/home/dinternal-shop/dinternal-shop/dinternal-shop/server/.venv/lib/python3.7/site-packages/rest_framework/serializers.py", line 664, in <listcomp>
109 self.child.to_representation(item) for item in iterable
110 File "/home/dinternal-shop/dinternal-shop/dinternal-shop/server/.venv/lib/python3.7/site-packages/rest_framework/serializers.py", line 500, in to_representation
111 for field in fields:
112 File "/home/dinternal-shop/dinternal-shop/dinternal-shop/server/.venv/lib/python3.7/site-packages/rest_framework/serializers.py", line 361, in _readable_fields
113 for field in self.fields.values():
114 File "/home/dinternal-shop/dinternal-shop/dinternal-shop/server/.venv/lib/python3.7/site-packages/django/utils/functional.py", line 48, in __get__
115 res = instance.__dict__[self.name] = self.func(instance)
116 File "/home/dinternal-shop/dinternal-shop/dinternal-shop/server/.venv/lib/python3.7/site-packages/rest_framework/serializers.py", line 349, in fields
117 for key, value in self.get_fields().items():
118 File "/home/dinternal-shop/dinternal-shop/dinternal-shop/server/.venv/lib/python3.7/site-packages/rest_framework/serializers.py", line 1029, in get_fields
119 field_names = self.get_field_names(declared_fields, info)
120 File "/home/dinternal-shop/dinternal-shop/dinternal-shop/server/.venv/lib/python3.7/site-packages/rest_framework/serializers.py", line 1130, in get_field_names
121 serializer_class=self.__class__.__name__
122
123Exception Type: AssertionError at /api/v1/onec/orders-status/
124Exception Value: The field 'id_order' was declared on serializer OrderStatusesModelSerializer, but has not been included in the 'fields' option.
125Request information:
126USER: AnonymousUser
127
128GET: No GET data
129
130POST: No POST data
131
132FILES: No FILES data
133
134COOKIES:
135default-city = '3'
136
137META:
138CONTENT_LENGTH = '99'
139CONTENT_TYPE = 'application/json'
140HTTP_ACCEPT = '*/*'
141HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
142HTTP_CACHE_CONTROL = 'no-cache'
143HTTP_CONNECTION = 'close'
144HTTP_COOKIE = 'default-city=3'
145HTTP_HOST = 'dinternal.webcase-dev.com'
146HTTP_POSTMAN_TOKEN = 'c6517eb9-163b-45e0-a259-f1715e6a3d44'
147HTTP_USER_AGENT = 'PostmanRuntime/7.28.0'
148HTTP_X_FORWARDED_FOR = '185.248.128.230'
149PATH_INFO = '/api/v1/onec/orders-status/'
150QUERY_STRING = ''
151RAW_URI = '/api/v1/onec/orders-status/'
152REMOTE_ADDR = ''
153REQUEST_METHOD = 'POST'
154SCRIPT_NAME = ''
155SERVER_NAME = 'dinternal.webcase-dev.com'
156SERVER_PORT = '80'
157SERVER_PROTOCOL = 'HTTP/1.0'
158SERVER_SOFTWARE = 'gunicorn/20.1.0'
159gunicorn.socket = <gevent._socket3.socket at 0x7fbc38061830 object, fd=13, family=1, type=1, proto=0>
160wsgi.errors = <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7fbc33fc5890>
161wsgi.file_wrapper = ''
162wsgi.input = <gunicorn.http.body.Body object at 0x7fbc33fc5a50>
163wsgi.input_terminated = True
164wsgi.multiprocess = True
165wsgi.multithread = True
166wsgi.run_once = False
167wsgi.url_scheme = 'http'
168wsgi.version = '(1, 0)'
169
170Settings:
171Using settings module app.settings
172ABSOLUTE_URL_OVERRIDES = {}
173ADMINS = []
174ALLOWED_HOSTS = ['165.227.146.70', 'dinternal.webcase-dev.com', 'www.dinternal.webcase-dev.com']
175APPEND_SLASH = True
176AUTHENTICATION_BACKENDS = "('shared.social.backends.MyGoogle', 'shared.social.backends.MyFacebook', 'django.contrib.auth.backends.ModelBackend')"
177AUTH_PASSWORD_VALIDATORS = '********************'
178AUTH_USER_MODEL = 'staff.CustomUser'
179BASE_DIR = PosixPath('/home/dinternal-shop/dinternal-shop/dinternal-shop/server/app/settings/default.py')
180BASE_ROOT = PosixPath('/home/dinternal-shop/dinternal-shop/dinternal-shop/server/app')
181CACHES = {'default': {'BACKEND': 'django_redis.cache.RedisCache', 'LOCATION': 'redis://127.0.0.1:6379/1'}}
182CACHE_MIDDLEWARE_ALIAS = 'default'
183CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
184CACHE_MIDDLEWARE_SECONDS = 600
185CART_ADD_PIPELINES = "('apps.product_extensions.cart.pipelines.save_shop_id_to_cart_parameters',)"
186CART_ELEMENT_ALLOWED_TYPES = "(('products', 'product'),)"
187CART_ELEMENT_REPRESENTATION_SERIALIZERS = {'products.Product': 'apps.product_extensions.api.serializers.ProductCartSerializer'}
188CART_POST_ADD_PIPELINES = {'apps.product_extensions.cart.pipelines.apply_product_prices_to_cart'}
189CELERY_BROKER_URL = 'redis://127.0.0.1:6379/0'
190CKEDITOR_CONFIGS = {'default': {'language': 'en', 'skin': 'office2013', 'toolbar_Basic': [['Source', '-', 'Bold', 'Italic']], 'toolbar_YourCustomToolbarConfig': [{'name': 'document', 'items': ['Source', '-', 'Save', 'NewPage', 'Preview', 'Print', '-', 'Templates']}, {'name': 'clipboard', 'items': ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo']}, {'name': 'editing', 'items': ['Find', 'Replace', '-', 'SelectAll']}, {'name': 'forms', 'items': ['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField']}, '/', {'name': 'basicstyles', 'items': ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat']}, {'name': 'paragraph', 'items': ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', 'CreateDiv', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl', 'Language']}, {'name': 'links', 'items': ['Link', 'Unlink', 'Anchor']}, {'name': 'insert', 'items': ['Image', 'Flash', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak', 'Iframe']}, '/', {'name': 'styles', 'items': ['Styles', 'Format', 'Font', 'FontSize']}, {'name': 'colors', 'items': ['TextColor', 'BGColor']}, {'name': 'tools', 'items': ['Maximize', 'ShowBlocks']}, {'name': 'about', 'items': ['About', 'FilerImage', 'Youtube', 'Image']}, '/', {'name': 'yourcustomtools', 'items': ['Preview', 'Maximize']}], 'toolbar': 'YourCustomToolbarConfig', 'tabSpaces': 4, 'extraPlugins': 'uploadimage,div,autolink,autoembed,embedsemantic,widget,lineutils,clipboard,dialog,dialogui,elementspath,youtube,image2,wordcount', 'wordcount': {'showCharCount': True}, 'removePlugins': 'image', 'allowedContent': True}, 'min_set': {'toolbar': 'Custom', 'toolbar_Custom': [['Format', 'Bold', 'Italic', 'Color', 'Undo', 'Redo', 'Cut', 'Copy', 'Paste', 'TextColor', 'BGColor']]}}
191CKEDITOR_UPLOAD_PATH = 'uploads/'
192CONSTANCE_CONFIG = {'PAGINATION_CATALOG_PRODUCT': (16, 'Count product in catalog', <class 'int'>), 'COUNT_VIEWS_PRODUCT': (6, 'Count product alredy view by visiter', <class 'int'>), 'PAGINATION_TRACKER_PRODUCT': (6, 'Count tracker product in PC', <class 'int'>), 'PAGINATION_SEARCH_PRODUCT': (6, 'Count search product in search page', <class 'int'>), 'LIMIT_SEARCH_HEADER': (3, 'Count search product in search header', <class 'int'>), 'COUNT_BLOGS_INDEX': (4, 'Count show articles in index page', <class 'int'>), 'PAGINATION_BLOGS': (6, 'Count news partition in list', <class 'int'>), 'COUNT_OTHER_ARTICLE': (3, 'Count other news in page news detail', <class 'int'>), 'PAGINATION_ORDERS_PC': (6, 'Count order in list PC', <class 'int'>)}
193CONSTANCE_CONFIG_FIELDSETS = {'PRODUCT': ('PAGINATION_CATALOG_PRODUCT', 'COUNT_VIEWS_PRODUCT', 'PAGINATION_TRACKER_PRODUCT', 'PAGINATION_SEARCH_PRODUCT', 'LIMIT_SEARCH_HEADER'), 'BLOGS': ('COUNT_BLOGS_INDEX', 'PAGINATION_BLOGS', 'COUNT_OTHER_ARTICLE'), 'ORDER': ('PAGINATION_ORDERS_PC',)}
194CONSTANCE_DATABASE_CACHE_AUTOFILL_TIMEOUT = None
195CONSTANCE_REDIS_CONNECTION_CLASS = 'django_redis.get_redis_connection'
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': 'dinternal_education_shop_db', 'USER': 'dinternal_education_shop_db', 'PASSWORD': '********************', 'HOST': '127.0.0.1', 'PORT': 5432, 'ENGINE': 'django.db.backends.postgresql', 'CONN_MAX_AGE': 0, 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'OPTIONS': {}, 'TIME_ZONE': None, 'TEST': {'CHARSET': None, 'COLLATION': None, 'NAME': None, 'MIRROR': None}}}
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.i18n', '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 = []
226DRF_RECAPTCHA_SECRET_KEY = '********************'
227EMAIL_BACKEND = 'des.backends.ConfiguredEmailBackend'
228EMAIL_CONFIG = {'EMAIL_FILE_PATH': '', 'EMAIL_HOST_USER': None, 'EMAIL_HOST_PASSWORD': '********************', 'EMAIL_HOST': '127.0.0.1', 'EMAIL_PORT': None, 'EMAIL_BACKEND': 'django.core.mail.backends.console.EmailBackend'}
229EMAIL_FILE_PATH = ''
230EMAIL_HOST = '127.0.0.1'
231EMAIL_HOST_PASSWORD = '********************'
232EMAIL_HOST_USER = None
233EMAIL_PORT = None
234EMAIL_SSL_CERTFILE = None
235EMAIL_SSL_KEYFILE = '********************'
236EMAIL_SUBJECT_PREFIX = '[Django] '
237EMAIL_TIMEOUT = None
238EMAIL_USE_LOCALTIME = False
239EMAIL_USE_SSL = False
240EMAIL_USE_TLS = False
241FILE_CHARSET = 'utf-8'
242FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
243FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
244FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
245FILE_UPLOAD_PERMISSIONS = 420
246FILE_UPLOAD_TEMP_DIR = None
247FIRST_DAY_OF_WEEK = 0
248FIXTURE_DIRS = []
249FORCE_SCRIPT_NAME = None
250FORMAT_MODULE_PATH = None
251FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
252GUNICORN_PID = '/tmp/dinternal_education_shop.pid'
253HIJACK_ALLOW_GET_REQUESTS = True
254HIJACK_LOGIN_REDIRECT_URL = '/cabinet/settings/'
255HIJACK_LOGOUT_REDIRECT_URL = '/admin/staff/customuser/'
256HOME_URL = '/'
257IGNORABLE_404_URLS = []
258IMAGE_ALLOWED_EXTENSIONS = ['jpg', 'jpeg', 'png']
259IMAGE_MAX_FILE_SIZE = 10
260INSTALLED_APPS = ['markup', 'shared', 'apps.frontend', 'apps.staff', 'apps.products', 'apps.organization', 'apps.menus', 'apps.attributes', 'apps.product_extensions', 'apps.django_novaposhta', 'apps.orders', 'apps.blogs', 'apps.other_pages', 'apps.faqs', 'rosetta', 'django_jinja', 'jet', 'rangefilter', 'rest_framework', 'standards', 'ckeditor', 'ckeditor_uploader', 'versatileimagefield', 'solo', 'adminsortable2', 'modeltranslation', 'mptt', 'constance', 'robots', 'ok_cart', 'hijack', 'compat', 'dal', 'dal_select2', 'postie', 'parler', 'codemirror2', 'des', 'social_django', 'script_pattern', 'ok_redirects', 'dj_template_admin_urls', 'seo', 'vuejs_translate', 'drf_recaptcha', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'webpack_loader']
261INTERNAL_IPS = []
262LANGUAGES = "(('uk', 'Ukrainian'), ('ru', 'Russian'), ('en', 'English'))"
263LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
264LANGUAGE_CODE = 'uk'
265LANGUAGE_COOKIE_AGE = None
266LANGUAGE_COOKIE_DOMAIN = None
267LANGUAGE_COOKIE_HTTPONLY = False
268LANGUAGE_COOKIE_NAME = 'django_language'
269LANGUAGE_COOKIE_PATH = '/'
270LANGUAGE_COOKIE_SAMESITE = None
271LANGUAGE_COOKIE_SECURE = False
272LOCALE_PATHS = "(PosixPath('/home/dinternal-shop/dinternal-shop/dinternal-shop/server/app/locale'),)"
273LOGGING = {'version': 1, 'disable_existing_loggers': False, 'handlers': {'console': {'level': 'DEBUG', 'class': 'logging.StreamHandler'}, 'logfile': {'level': 'DEBUG', 'class': 'logging.FileHandler', 'filename': PosixPath('/home/dinternal-shop/dinternal-shop/dinternal-shop/server/app/settings/default.py/../logfile.log')}}, 'root': {'level': 'INFO', 'handlers': ['console', 'logfile']}}
274LOGGING_CONFIG = 'logging.config.dictConfig'
275LOGIN_REDIRECT_URL = '/'
276LOGIN_URL = '/accounts/login/'
277LOGOUT_REDIRECT_URL = '/'
278MANAGERS = []
279MEDIA_ROOT = PosixPath('/home/dinternal-shop/dinternal-shop/dinternal-shop/server/app/uploads')
280MEDIA_URL = '/uploads/'
281MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
282MIDDLEWARE = ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.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', 'shared.middleware.extra_slashes_redirect_middleware', 'social_django.middleware.SocialAuthExceptionMiddleware', 'apps.other_pages.middlewares.DefaultCiityMiddleware', 'seo.middleware.url_seo_middleware', 'ok_redirects.middleware.RedirectMiddleware']
283MIGRATION_MODULES = {}
284MODELTRANSLATION_DEFAULT_LANGUAGE = 'uk'
285MODELTRANSLATION_TRANSLATION_REGISTRY = 'shared.translation'
286MONTH_DAY_FORMAT = 'F j'
287NUMBER_GROUPING = 0
288PARLER_DEFAULT_LANGUAGE_CODE = 'uk'
289PARLER_LANGUAGES = {1: ({'code': 'uk', 'fallbacks': ['uk'], 'hide_untranslated': False}, {'code': 'ru', 'fallbacks': ['uk'], 'hide_untranslated': False}, {'code': 'en', 'fallbacks': ['uk'], 'hide_untranslated': False}), 'default': {'fallbacks': ['uk'], 'hide_untranslated': False, 'code': 'uk'}}
290PASSWORD_HASHERS = '********************'
291PASSWORD_RESET_TIMEOUT_DAYS = '********************'
292POSTIE_HTML_ADMIN_WIDGET = {'widget': 'CKEditorWidget', 'widget_module': 'ckeditor.widgets', 'attrs': {'attrs': {}}}
293POSTIE_INSTANT_SEND = True
294POSTIE_TEMPLATE_CHOICES = Choices(('confirm_email', 'confirm_email', 'Confirm email'), ('confirm_email_pc', 'confirm_email_pc', 'Confirm email update email'), ('set_confirm_pswd', 'set_confirm_pswd', 'Confirm set password'), ('product_appeared', 'product_appeared', 'Product appeared'), ('mailing_blog', 'mailing_blog', 'Blog mailing'), ('subscribe_blog', 'subscribe_blog', 'Blog subscribe'), ('un_subscribe_blog', 'un_subscribe_blog', 'Blog un subscribe'), ('new_appeal', 'new_appeal', 'New appeal'), ('new_faq', 'new_faq', 'New faq'), ('new_order_admin', 'new_order_admin', 'New Order admin'), ('new_order_user', 'new_order_user', 'New Order user'), ('change_order_status', 'change_order_status', 'Change Order Status'), ('change_order_deliver', 'change_order_deliver', 'Change Order Deliver'))
295POSTIE_TEMPLATE_CONTEXTS = {'confirm_email': {'var_url_email_confirm': 'url confirm email'}, 'confirm_email_pc': {'var_url_email_confirm_pc': 'url confirm email after change'}, 'set_confirm_pswd': {'url_confirm_set_pswd': 'url confirm set password'}, 'product_appeared': {'var_url_product': 'url product'}, 'mailing_blog': {'var_url_news': 'url news'}, 'subscribe_blog': {'var_url_un_subscribe': 'url un_subscribe'}, 'new_appeal': {'var_url_appeal': 'url appeal', 'var_name': 'Name', 'var_phone': 'Phone', 'var_email': 'Email', 'var_comment': 'Comment'}, 'new_faq': {'var_url_faq': 'url faq'}, 'new_order_admin': {'var_frst_name': 'first name', 'var_lst_name': 'last name', 'var_url_order_adm': 'url to order in admin'}, 'change_order_status': {'var_frst_name': 'first name', 'var_lst_name': 'last name', 'var_url_order_pc': 'url orders pc', 'var_status': 'status order'}, 'change_order_deliver': {'var_frst_name': 'first name', 'var_lst_name': 'last name', 'var_url_order_pc': 'url orders pc', 'var_order_deliver': 'status deliver order'}}
296PREPEND_WWW = False
297PROJECT_APPS = ['markup', 'shared', 'apps.frontend', 'apps.staff', 'apps.products', 'apps.organization', 'apps.menus', 'apps.attributes', 'apps.product_extensions', 'apps.django_novaposhta', 'apps.orders', 'apps.blogs', 'apps.other_pages', 'apps.faqs']
298REDIRECTS_IGNORE_PATH_PREFIXES = "('/admin/', '/uploads/', '/static/', '/vuejs-translate/')"
299REST_FRAMEWORK = {'DATETIME_INPUT_FORMATS': ['%d-%m-%Y %H:%M', '%d-%m-%Y', '%d-%m-%Y %H:%M:%S'], 'DEFAULT_METADATA_CLASS': 'standards.drf.metadata.FieldsetMetadata', 'DEFAULT_PARSER_CLASSES': ('standards.drf.parsers.CamelCaseORJSONParser', 'djangorestframework_camel_case.parser.CamelCaseFormParser', 'djangorestframework_camel_case.parser.CamelCaseMultiPartParser'), 'DEFAULT_RENDERER_CLASSES': ('djangorestframework_camel_case.render.CamelCaseJSONRenderer', 'djangorestframework_camel_case.render.CamelCaseBrowsableAPIRenderer'), 'EXCEPTION_HANDLER': 'standards.drf.handlers.exception_handler'}
300ROOT_URLCONF = 'app.urls'
301ROSETTA_SHOW_AT_ADMIN_PANEL = True
302SECRET_KEY = '********************'
303SECURE_BROWSER_XSS_FILTER = False
304SECURE_CONTENT_TYPE_NOSNIFF = True
305SECURE_HSTS_INCLUDE_SUBDOMAINS = False
306SECURE_HSTS_PRELOAD = False
307SECURE_HSTS_SECONDS = 0
308SECURE_PROXY_SSL_HEADER = None
309SECURE_REDIRECT_EXEMPT = []
310SECURE_REFERRER_POLICY = None
311SECURE_SSL_HOST = None
312SECURE_SSL_REDIRECT = False
313SEO_DEBUG_MODE = False
314SEO_HTML_ADMIN_WIDGET = {'widget': 'CKEditorWidget', 'widget_path': 'ckeditor.widgets'}
315SEO_MODELS = ['blogs.Article', 'products.Product', 'products.Category', 'products.ProductSeries', 'products.ProductLevel', 'other_pages.TemplatePage']
316SEO_USE_URL_FULL_PATH = True
317SEO_USE_URL_SEO = False
318SEO_VIEWS_CHOICES = "(('blogs_list', 'Blogs list'), ('about', 'About'), ('delivery-pay', 'Delivery pay'), ('contact', 'Contact'), ('faq', 'Faq list'), ('favorite_list', 'Favorite list'), ('index', 'Index'))"
319SERVER_EMAIL = 'root@localhost'
320SESSION_CACHE_ALIAS = 'default'
321SESSION_COOKIE_AGE = 1209600
322SESSION_COOKIE_DOMAIN = None
323SESSION_COOKIE_HTTPONLY = True
324SESSION_COOKIE_NAME = 'sessionid'
325SESSION_COOKIE_PATH = '/'
326SESSION_COOKIE_SAMESITE = 'Lax'
327SESSION_COOKIE_SECURE = False
328SESSION_ENGINE = 'django.contrib.sessions.backends.db'
329SESSION_EXPIRE_AT_BROWSER_CLOSE = False
330SESSION_FILE_PATH = None
331SESSION_SAVE_EVERY_REQUEST = False
332SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
333SETTINGS_MODULE = 'app.settings'
334SHORT_DATETIME_FORMAT = 'm/d/Y P'
335SHORT_DATE_FORMAT = 'm/d/Y'
336SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
337SILENCED_SYSTEM_CHECKS = []
338SITE_ID = 1
339SOCIAL_AUTH_FACEBOOK_SCOPE = ['email', 'public_profile']
340SOCIAL_AUTH_PIPELINE = "('social_core.pipeline.social_auth.social_details', 'social_core.pipeline.social_auth.social_uid', 'social_core.pipeline.social_auth.auth_allowed', 'social_core.pipeline.social_auth.social_user', 'apps.staff.social_pipelines.require_email', 'social_core.pipeline.social_auth.associate_by_email', 'social_core.pipeline.user.get_username', 'apps.staff.social_pipelines.create_user', 'social_core.pipeline.social_auth.associate_user', 'social_core.pipeline.social_auth.load_extra_data', 'apps.staff.social_pipelines.user_details', 'apps.staff.social_pipelines.merge_cart')"
341SOCIAL_AUTH_POSTGRES_JSONFIELD = True
342SOCIAL_AUTH_REDIRECT_IS_HTTPS = True
343SOCIAL_AUTH_URL_NAMESPACE = 'social'
344STATICFILES_DIRS = []
345STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
346STATICFILES_STORAGE = 'markup.storages.DjsManifestStaticFilesStorage'
347STATIC_ROOT = PosixPath('/home/dinternal-shop/dinternal-shop/dinternal-shop/server/app/static')
348STATIC_URL = '/static/'
349TEMPLATES = [{'BACKEND': 'django_jinja.backend.Jinja2', 'NAME': 'jinja2', 'APP_DIRS': True, 'DIRS': [], 'OPTIONS': {'environment': 'shared.env.jinja2.environment', 'match_extension': '.jinja', 'newstyle_gettext': True, 'auto_reload': True, 'undefined': <class 'jinja2.runtime.Undefined'>, 'debug': True, 'filters': {}, 'globals': {}, 'context_processors': ['django.contrib.auth.context_processors.auth', 'django.template.context_processors.debug', 'django.template.context_processors.i18n', 'django.template.context_processors.media', 'django.template.context_processors.static', 'django.template.context_processors.tz', 'django.contrib.messages.context_processors.messages'], 'extensions': ['jinja2.ext.do', 'jinja2.ext.loopcontrols', 'jinja2.ext.i18n', 'django_jinja.builtins.extensions.DebugExtension', 'django_jinja.builtins.extensions.CsrfExtension', 'django_jinja.builtins.extensions.CacheExtension', 'django_jinja.builtins.extensions.TimezoneExtension', 'django_jinja.builtins.extensions.UrlsExtension', 'django_jinja.builtins.extensions.StaticFilesExtension', 'django_jinja.builtins.extensions.DjangoFiltersExtension', 'webpack_loader.contrib.jinja2ext.WebpackExtension'], 'bytecode_cache': {'name': 'default', 'backend': 'django_jinja.cache.BytecodeCache', 'enabled': True}}}, {'DIRS': [], 'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'OPTIONS': {'context_processors': ['django.template.context_processors.media', 'django.template.context_processors.static', 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.messages.context_processors.messages', 'django.contrib.auth.context_processors.auth']}}]
350TEST_NON_SERIALIZED_APPS = []
351TEST_RUNNER = 'django.test.runner.DiscoverRunner'
352THOUSAND_SEPARATOR = ','
353TIME_FORMAT = 'P'
354TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
355TIME_ZONE = 'Europe/Kiev'
356USE_I18N = True
357USE_L10N = True
358USE_THOUSAND_SEPARATOR = False
359USE_TZ = True
360USE_X_FORWARDED_HOST = False
361USE_X_FORWARDED_PORT = False
362VERSATILEIMAGEFIELD_RENDITION_KEY_SETS = '********************'
363WEBPACK_LOADER = {'DEFAULT': {'STATS_FILE': PosixPath('/home/dinternal-shop/dinternal-shop/dinternal-shop/server/apps/frontend/static/frontend/webpack-stats.json')}}
364WSGI_APPLICATION = 'app.wsgi.application'
365X_FRAME_OPTIONS = 'SAMEORIGIN'
366YEAR_MONTH_FORMAT = 'F Y'
367
368
369You're seeing this error because you have DEBUG = True in your
370Django settings file. Change that to False, and Django will
371display a standard page generated by the handler for this status code.
372
373