· 5 years ago · Sep 25, 2020, 01:26 PM
1IntegrityError at /api/v1/freight-orders/6/update/
2null value in column "weight" violates not-null constraint
3DETAIL: Failing row contains (6, , 2020-09-25 13:09:13.758381+00, 2020-09-25 13:17:59.46313+00, null, null, 0001000-new, , null, null, null, null, null, null, , null, 0.0000, null, , 24, null, 5, 2020-09-25 13:09:13.754812+00).
4
5
6Request Method: PATCH
7Request URL: http://tcg.webcase-dev.com/api/v1/freight-orders/6/update/
8Django Version: 3.0.8
9Python Executable: /home/django/tcg_logistic/tcg_logistic/server/.venv/bin/python
10Python Version: 3.8.3
11Python Path: ['/home/django/tcg_logistic/tcg_logistic/server', '/home/django/tcg_logistic/tcg_logistic/server/.venv/bin', '/home/django/.pyenv/versions/3.8.3/lib/python38.zip', '/home/django/.pyenv/versions/3.8.3/lib/python3.8', '/home/django/.pyenv/versions/3.8.3/lib/python3.8/lib-dynload', '/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages', '/home/django/tcg_logistic/tcg_logistic/server/packages/px-django-canned-cache', '/home/django/tcg_logistic/tcg_logistic/server/packages/px-django-dogpile-cache', '/home/django/tcg_logistic/tcg_logistic/server/packages/px-django-contentful', '/home/django/tcg_logistic/tcg_logistic/server/packages/px-django-category', '/home/django/tcg_logistic/tcg_logistic/server/packages/px-django-posts', '/home/django/tcg_logistic/tcg_logistic/server/packages/px-django-flatpages', '/home/django/tcg_logistic/tcg_logistic/server/packages/px-django-dependent-filters', '/home/django/tcg_logistic/tcg_logistic/server/packages/px-django-menu', '/home/django/tcg_logistic/tcg_logistic/server/packages/px-django-urls', '/home/django/tcg_logistic/tcg_logistic/server/packages/px-django-admin-utils', '/home/django/tcg_logistic/tcg_logistic/server/packages/px-django-seo-filters', '/home/django/tcg_logistic/tcg_logistic/server/packages/px-settings', '/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/odf', '/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/odf', '/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/odf', '/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/odf', '/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/odf', '/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/odf', '/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/odf']
12Server time: Пт, 25 Сен 2020 13:17:59 +0000
13Installed Applications:
14['markup',
15 'apps.frontend',
16 'apps.profile',
17 'apps.files',
18 'apps.delivery',
19 'apps.delivery.locations',
20 'apps.delivery.shipments',
21 'apps.delivery.freight_orders',
22 'apps.delivery.parcels',
23 'apps.delivery.orders',
24 'apps.delivery.frontend',
25 'apps.finances',
26 'constance',
27 'rest_auth',
28 'rest_framework',
29 'rest_framework.authtoken',
30 'vuejs_translate',
31 'ckeditor',
32 'ckeditor_uploader',
33 'des',
34 'standards',
35 'postie',
36 'parler',
37 'robots',
38 'drf_yasg',
39 'vendors.rosetta',
40 'rosetta',
41 'import_export',
42 'django_jinja',
43 'jet.dashboard',
44 'jet',
45 'silk',
46 'django.contrib.admin',
47 'django.contrib.gis',
48 'django.contrib.auth',
49 'django.contrib.contenttypes',
50 'django.contrib.messages',
51 'django.contrib.staticfiles',
52 'django.contrib.sessions',
53 'django.contrib.sites',
54 'webpack_loader']
55Installed Middleware:
56['django.middleware.security.SecurityMiddleware',
57 'django.contrib.sessions.middleware.SessionMiddleware',
58 'django.middleware.locale.LocaleMiddleware',
59 'django.middleware.common.CommonMiddleware',
60 'django.middleware.csrf.CsrfViewMiddleware',
61 'django.contrib.auth.middleware.AuthenticationMiddleware',
62 'django.contrib.messages.middleware.MessageMiddleware',
63 'django.middleware.clickjacking.XFrameOptionsMiddleware',
64 'silk.middleware.SilkyMiddleware']
65
66
67Traceback (most recent call last):
68 File "/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 86, in _execute
69 return self.cursor.execute(sql, params)
70
71The above exception (null value in column "weight" violates not-null constraint
72DETAIL: Failing row contains (6, , 2020-09-25 13:09:13.758381+00, 2020-09-25 13:17:59.46313+00, null, null, 0001000-new, , null, null, null, null, null, null, , null, 0.0000, null, , 24, null, 5, 2020-09-25 13:09:13.754812+00).
73) was the direct cause of the following exception:
74 File "/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 34, in inner
75 response = get_response(request)
76 File "/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 115, in _get_response
77 response = self.process_exception_by_middleware(e, request)
78 File "/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 113, in _get_response
79 response = wrapped_callback(request, *callback_args, **callback_kwargs)
80 File "/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
81 return view_func(*args, **kwargs)
82 File "/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/django/views/generic/base.py", line 71, in view
83 return self.dispatch(request, *args, **kwargs)
84 File "/home/django/tcg_logistic/tcg_logistic/server/shared/rest/mixins.py", line 19, in dispatch
85 return super().dispatch(request, *args, **kwargs)
86 File "/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/rest_framework/views.py", line 505, in dispatch
87 response = self.handle_exception(exc)
88 File "/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/rest_framework/views.py", line 465, in handle_exception
89 self.raise_uncaught_exception(exc)
90 File "/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/rest_framework/views.py", line 476, in raise_uncaught_exception
91 raise exc
92 File "/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/rest_framework/views.py", line 502, in dispatch
93 response = handler(request, *args, **kwargs)
94 File "/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/rest_framework/generics.py", line 229, in patch
95 return self.partial_update(request, *args, **kwargs)
96 File "/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/rest_framework/mixins.py", line 82, in partial_update
97 return self.update(request, *args, **kwargs)
98 File "/home/django/tcg_logistic/tcg_logistic/server/shared/views.py", line 53, in update
99 self.perform_update(serializer)
100 File "/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/rest_framework/mixins.py", line 78, in perform_update
101 serializer.save()
102 File "/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/rest_framework/serializers.py", line 207, in save
103 self.instance = self.update(self.instance, validated_data)
104 File "/home/django/tcg_logistic/tcg_logistic/server/apps/delivery/frontend/serializers/freight_orders.py", line 129, in update
105 update_freight_order(instance, data)
106 File "/home/django/tcg_logistic/tcg_logistic/server/apps/delivery/freight_orders/cases.py", line 72, in update_freight_order
107 instance = calculate_freight_order_dimensions(instance, save=True)
108 File "/home/django/.pyenv/versions/3.8.3/lib/python3.8/contextlib.py", line 75, in inner
109 return func(*args, **kwds)
110 File "/home/django/tcg_logistic/tcg_logistic/server/apps/delivery/freight_orders/cases.py", line 104, in calculate_freight_order_dimensions
111 freight_order.save(update_fields=(W, V, 'additional_weight_cost'))
112 File "/home/django/tcg_logistic/tcg_logistic/server/shared/models/obj_id.py", line 33, in save
113 return super().save(**kwargs)
114 File "/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/django/db/models/base.py", line 745, in save
115 self.save_base(using=using, force_insert=force_insert,
116 File "/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/django/db/models/base.py", line 782, in save_base
117 updated = self._save_table(
118 File "/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/django/db/models/base.py", line 864, in _save_table
119 updated = self._do_update(base_qs, using, pk_val, values, update_fields,
120 File "/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/django/db/models/base.py", line 917, in _do_update
121 return filtered._update(values) > 0
122 File "/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/django/db/models/query.py", line 771, in _update
123 return query.get_compiler(self.db).execute_sql(CURSOR)
124 File "/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1500, in execute_sql
125 cursor = super().execute_sql(result_type)
126 File "/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/silk/sql.py", line 48, in execute_sql
127 return self._execute_sql(*args, **kwargs)
128 File "/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1152, in execute_sql
129 cursor.execute(sql, params)
130 File "/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 100, in execute
131 return super().execute(sql, params)
132 File "/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 68, in execute
133 return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
134 File "/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 77, in _execute_with_wrappers
135 return executor(sql, params, many, context)
136 File "/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 86, in _execute
137 return self.cursor.execute(sql, params)
138 File "/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/django/db/utils.py", line 90, in __exit__
139 raise dj_exc_value.with_traceback(traceback) from exc_value
140 File "/home/django/tcg_logistic/tcg_logistic/server/.venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 86, in _execute
141 return self.cursor.execute(sql, params)
142
143Exception Type: IntegrityError at /api/v1/freight-orders/6/update/
144Exception Value: null value in column "weight" violates not-null constraint
145DETAIL: Failing row contains (6, , 2020-09-25 13:09:13.758381+00, 2020-09-25 13:17:59.46313+00, null, null, 0001000-new, , null, null, null, null, null, null, , null, 0.0000, null, , 24, null, 5, 2020-09-25 13:09:13.754812+00).
146
147Request information:
148USER: admin
149
150GET: No GET data
151
152POST: No POST data
153
154FILES: No FILES data
155
156COOKIES:
157csrftoken = '8fF9BrHN62GblxdK9CXsZCZZPdNY0FjbNtz3U1NMx816DELFGvGGPMhXbIJNUnKU'
158sessionid = 'no8x6b18lf5w4ta9ciwv71dcmoann1wy'
159
160META:
161CONTENT_LENGTH = '60'
162CONTENT_TYPE = 'application/json'
163CSRF_COOKIE = '8fF9BrHN62GblxdK9CXsZCZZPdNY0FjbNtz3U1NMx816DELFGvGGPMhXbIJNUnKU'
164HTTP_ACCEPT = '*/*'
165HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
166HTTP_ACCEPT_LANGUAGE = 'ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7'
167HTTP_CACHE_CONTROL = 'no-cache'
168HTTP_CONNECTION = 'close'
169HTTP_COOKIE = 'csrftoken=8fF9BrHN62GblxdK9CXsZCZZPdNY0FjbNtz3U1NMx816DELFGvGGPMhXbIJNUnKU; sessionid=no8x6b18lf5w4ta9ciwv71dcmoann1wy'
170HTTP_HOST = 'tcg.webcase-dev.com'
171HTTP_ORIGIN = 'https://tcg.webcase-dev.com'
172HTTP_PRAGMA = 'no-cache'
173HTTP_REFERER = 'https://tcg.webcase-dev.com/cabinet/delivery/freight-orders/6/edit/client'
174HTTP_SEC_FETCH_DEST = 'empty'
175HTTP_SEC_FETCH_MODE = 'same-origin'
176HTTP_SEC_FETCH_SITE = 'same-origin'
177HTTP_USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36'
178HTTP_X_CSRFTOKEN = '8fF9BrHN62GblxdK9CXsZCZZPdNY0FjbNtz3U1NMx816DELFGvGGPMhXbIJNUnKU'
179HTTP_X_FORWARDED_FOR = '194.31.168.66'
180PATH_INFO = '/api/v1/freight-orders/6/update/'
181QUERY_STRING = ''
182RAW_URI = '/api/v1/freight-orders/6/update/'
183REMOTE_ADDR = ''
184REQUEST_METHOD = 'PATCH'
185SCRIPT_NAME = ''
186SERVER_NAME = 'tcg.webcase-dev.com'
187SERVER_PORT = '80'
188SERVER_PROTOCOL = 'HTTP/1.0'
189SERVER_SOFTWARE = 'gunicorn/20.0.4'
190gunicorn.socket = <gevent._socket3.socket at 0x7fd8938170e0 object, fd=15, family=1, type=1, proto=0>
191wsgi.errors = <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7fd893833370>
192wsgi.file_wrapper = ''
193wsgi.input = <gunicorn.http.body.Body object at 0x7fd892ec0ac0>
194wsgi.input_terminated = True
195wsgi.multiprocess = True
196wsgi.multithread = True
197wsgi.run_once = False
198wsgi.url_scheme = 'http'
199wsgi.version = '(1, 0)'
200
201Settings:
202Using settings module app.settings
203ABSOLUTE_URL_OVERRIDES = {}
204ADMINS = []
205ALLOWED_HOSTS = ['tcg.webcase-dev.com']
206APPEND_SLASH = True
207AUTHENTICATION_BACKENDS = "('django.contrib.auth.backends.AllowAllUsersModelBackend',)"
208AUTH_PASSWORD_VALIDATORS = '********************'
209AUTH_USER_MODEL = 'auth.User'
210BASE_DIR = PosixPath('/home/django/tcg_logistic/tcg_logistic/server/app/settings/default.py')
211BASE_ROOT = PosixPath('/home/django/tcg_logistic/tcg_logistic/server/app')
212CACHES = {'default': {'BACKEND': 'django_redis.cache.RedisCache', 'LOCATION': 'redis://127.0.0.1:6379/1'}}
213CACHE_MIDDLEWARE_ALIAS = 'default'
214CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
215CACHE_MIDDLEWARE_SECONDS = 600
216CELERY_ACCEPT_CONTENT = ['json']
217CELERY_BROKER_URL = 'redis://127.0.0.1:6379/0'
218CELERY_RESULT_SERIALIZER = 'json'
219CELERY_TASK_SERIALIZER = 'json'
220CKEDITOR_CONFIGS = {'default': {'skin': 'office2013', 'CKEDITOR_BROWSE_SHOW_DIRS': True, '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,widget,lineutils,clipboard,dialog,dialogui,elementspath,uploadwidget'}}
221CKEDITOR_UPLOAD_PATH = ''
222CONSTANCE_CONFIG = {}
223CONSTANCE_CONFIG_FIELDSETS = {}
224CONSTANCE_REDIS_CONNECTION = 'redis://127.0.0.1:6379/1'
225CSRF_COOKIE_AGE = 31449600
226CSRF_COOKIE_DOMAIN = None
227CSRF_COOKIE_HTTPONLY = False
228CSRF_COOKIE_NAME = 'csrftoken'
229CSRF_COOKIE_PATH = '/'
230CSRF_COOKIE_SAMESITE = 'Lax'
231CSRF_COOKIE_SECURE = False
232CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
233CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
234CSRF_TRUSTED_ORIGINS = []
235CSRF_USE_SESSIONS = False
236DATABASES = {'default': {'NAME': 'tcg_db', 'USER': 'tcg_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}}}
237DATABASE_ROUTERS = []
238DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
239DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
240DATETIME_FORMAT = 'N j, Y, P'
241DATETIME_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']
242DATE_FORMAT = 'N j, Y'
243DATE_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']
244DEBUG = 'True'
245DEBUG_PROPAGATE_EXCEPTIONS = False
246DECIMAL_SEPARATOR = '.'
247DEFAULT_CHARSET = 'utf-8'
248DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
249DEFAULT_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']
250DEFAULT_FILE_STORAGE = 'shared.storages.LowerCaseStorage'
251DEFAULT_FROM_EMAIL = 'admin@admin.admin'
252DEFAULT_INDEX_TABLESPACE = ''
253DEFAULT_TABLESPACE = ''
254DISALLOWED_USER_AGENTS = []
255EMAIL_BACKEND = 'des.backends.ConfiguredEmailBackend'
256EMAIL_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'}
257EMAIL_FILE_PATH = ''
258EMAIL_HOST = '127.0.0.1'
259EMAIL_HOST_PASSWORD = '********************'
260EMAIL_HOST_USER = None
261EMAIL_PORT = None
262EMAIL_SSL_CERTFILE = None
263EMAIL_SSL_KEYFILE = '********************'
264EMAIL_SUBJECT_PREFIX = '[Django] '
265EMAIL_TIMEOUT = None
266EMAIL_USE_LOCALTIME = False
267EMAIL_USE_SSL = False
268EMAIL_USE_TLS = False
269FILE_CHARSET = 'utf-8'
270FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
271FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
272FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
273FILE_UPLOAD_PERMISSIONS = 420
274FILE_UPLOAD_TEMP_DIR = None
275FIRST_DAY_OF_WEEK = 0
276FIXTURE_DIRS = []
277FORCE_SCRIPT_NAME = None
278FORMAT_MODULE_PATH = None
279FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
280GUNICORN_PID = ''
281IGNORABLE_404_URLS = []
282INSTALLED_APPS = ['markup', 'apps.frontend', 'apps.profile', 'apps.files', 'apps.delivery', 'apps.delivery.locations', 'apps.delivery.shipments', 'apps.delivery.freight_orders', 'apps.delivery.parcels', 'apps.delivery.orders', 'apps.delivery.frontend', 'apps.finances', 'constance', 'rest_auth', 'rest_framework', 'rest_framework.authtoken', 'vuejs_translate', 'ckeditor', 'ckeditor_uploader', 'des', 'standards', 'postie', 'parler', 'robots', 'drf_yasg', 'vendors.rosetta', 'rosetta', 'import_export', 'django_jinja', 'jet.dashboard', 'jet', 'silk', 'django.contrib.admin', 'django.contrib.gis', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sessions', 'django.contrib.sites', 'webpack_loader']
283INTERNAL_IPS = []
284JET_DEFAULT_THEME = 'default'
285JET_SIDE_MENU_COMPACT = True
286JET_SIDE_MENU_ITEMS = "({'label': 'Delivery', 'items': ({'name': 'delivery_locations.location'}, {'name': 'delivery_orders.order'}, {'name': 'delivery_freight_orders.freightorder'}, {'name': 'delivery_parcels.parcel'}, {'name': 'delivery_shipments.shipment'})}, {'label': 'Emails', 'items': ({'name': 'postie.letter'}, {'name': 'postie.template'}, {'name': 'des.dynamicemailconfiguration'})}, {'label': 'Users', 'items': ({'name': 'auth.user'}, {'name': 'auth.group'}, {'name': 'authtoken.token'}, {'name': 'profile.note'})}, {'label': 'Configuration', 'items': ({'name': 'constance.config'}, {'name': 'sites.site'})}, {'label': 'Files', 'items': ({'name': 'files.file'},)})"
287LANGUAGES = "(('ru', 'Русский'), ('en', 'Английский'))"
288LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
289LANGUAGE_CODE = 'ru'
290LANGUAGE_COOKIE_AGE = None
291LANGUAGE_COOKIE_DOMAIN = None
292LANGUAGE_COOKIE_HTTPONLY = False
293LANGUAGE_COOKIE_NAME = 'django_language'
294LANGUAGE_COOKIE_PATH = '/'
295LANGUAGE_COOKIE_SAMESITE = None
296LANGUAGE_COOKIE_SECURE = False
297LOCALE_PATHS = "(PosixPath('/home/django/tcg_logistic/tcg_logistic/server/app/locale'),)"
298LOGGING = {'version': 1, 'disable_existing_loggers': False, 'handlers': {'console': {'level': 'DEBUG', 'class': 'logging.StreamHandler'}, 'logfile': {'level': 'DEBUG', 'class': 'logging.FileHandler', 'filename': PosixPath('/home/django/tcg_logistic/tcg_logistic/server/app/settings/default.py/../logfile.log')}}, 'root': {'level': 'INFO', 'handlers': ['console', 'logfile']}}
299LOGGING_CONFIG = 'logging.config.dictConfig'
300LOGIN_REDIRECT_URL = '/accounts/profile/'
301LOGIN_URL = '/'
302LOGOUT_REDIRECT_URL = None
303MANAGERS = []
304MEDIA_ROOT = '/home/django/tcg_logistic/tcg_logistic/server/app/uploads'
305MEDIA_URL = '/uploads/'
306MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
307MIDDLEWARE = ['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', 'silk.middleware.SilkyMiddleware']
308MIGRATION_MODULES = {}
309MONTH_DAY_FORMAT = 'F j'
310NUMBER_GROUPING = 0
311PARLER_DEFAULT_LANGUAGE_CODE = 'ru'
312PARLER_LANGUAGES = {1: ({'code': 'ru', 'fallbacks': ['ru'], 'hide_untranslated': False}, {'code': 'en', 'fallbacks': ['ru'], 'hide_untranslated': False}), 'default': {'fallbacks': ['ru'], 'hide_untranslated': False, 'code': 'ru'}}
313PASSWORD_HASHERS = '********************'
314PASSWORD_RESET_CONFIRM_PATH = '********************'
315PASSWORD_RESET_TIMEOUT_DAYS = '********************'
316POSTIE_HTML_ADMIN_WIDGET = {'widget': 'CKEditorUploadingWidget', 'widget_module': 'ckeditor_uploader.widgets', 'attrs': {}}
317POSTIE_INSTANT_SEND = False
318POSTIE_TEMPLATE_CHOICES = Choices(('user_password_reset_confirm', 'user_password_reset_confirm', 'Confirm password reset (user)'), ('user_password_change_notice', 'user_password_change_notice', 'Password change notice (user)'), ('registration', 'registration', 'Registration'))
319POSTIE_TEMPLATE_CONTEXTS = {'user_password_reset_confirm': '********************', 'user_password_change_notice': '********************', 'registration': {'display_name': "User's name", 'email': "User's email", 'url': 'Password set page link'}}
320PREPEND_WWW = False
321PROJECT_APPS = ['markup', 'apps.frontend', 'apps.profile', 'apps.files', 'apps.delivery', 'apps.delivery.locations', 'apps.delivery.shipments', 'apps.delivery.freight_orders', 'apps.delivery.parcels', 'apps.delivery.orders', 'apps.delivery.frontend', 'apps.finances']
322REST_AUTH_SERIALIZERS = {'USER_DETAILS_SERIALIZER': 'apps.profile.frontend.serializers.auth.UserSerializer', 'PASSWORD_RESET_SERIALIZER': '********************', 'PASSWORD_CHANGE_SERIALIZER': '********************', 'PASSWORD_RESET_CONFIRM_SERIALIZER': '********************'}
323REST_FRAMEWORK = {'SEARCH_PARAM': 's', 'DATE_FORMAT': '%Y-%m-%d', 'TIME_FORMAT': '%H:%M', 'DATETIME_FORMAT': '%Y-%m-%dT%H:%M:%S.%fZ', 'DEFAULT_PAGINATION_CLASS': 'shared.rest.pagination.CustomPageNumberPagination', 'PAGE_SIZE': 10, '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': ('standards.drf.renderers.CamelCaseORJSONRenderer', 'djangorestframework_camel_case.render.CamelCaseBrowsableAPIRenderer'), 'EXCEPTION_HANDLER': 'standards.drf.handlers.exception_handler'}
324ROOT_URLCONF = 'app.urls'
325ROSETTA_SHOW_AT_ADMIN_PANEL = True
326SECRET_KEY = '********************'
327SECURE_BROWSER_XSS_FILTER = False
328SECURE_CONTENT_TYPE_NOSNIFF = True
329SECURE_HSTS_INCLUDE_SUBDOMAINS = False
330SECURE_HSTS_PRELOAD = False
331SECURE_HSTS_SECONDS = 0
332SECURE_PROXY_SSL_HEADER = None
333SECURE_REDIRECT_EXEMPT = []
334SECURE_REFERRER_POLICY = None
335SECURE_SSL_HOST = None
336SECURE_SSL_REDIRECT = False
337SERVER_EMAIL = 'root@localhost'
338SESSION_CACHE_ALIAS = 'default'
339SESSION_COOKIE_AGE = 1209600
340SESSION_COOKIE_DOMAIN = None
341SESSION_COOKIE_HTTPONLY = True
342SESSION_COOKIE_NAME = 'sessionid'
343SESSION_COOKIE_PATH = '/'
344SESSION_COOKIE_SAMESITE = 'Lax'
345SESSION_COOKIE_SECURE = False
346SESSION_ENGINE = 'django.contrib.sessions.backends.db'
347SESSION_EXPIRE_AT_BROWSER_CLOSE = False
348SESSION_FILE_PATH = None
349SESSION_SAVE_EVERY_REQUEST = False
350SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
351SETTINGS_MODULE = 'app.settings'
352SHORT_DATETIME_FORMAT = 'm/d/Y P'
353SHORT_DATE_FORMAT = 'm/d/Y'
354SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
355SILENCED_SYSTEM_CHECKS = []
356SITE_ID = 1
357STATICFILES_DIRS = []
358STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
359STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
360STATIC_ROOT = '/home/django/tcg_logistic/tcg_logistic/server/app/static'
361STATIC_URL = '/static/'
362TEMPLATES = [{'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.ChainableUndefined'>, '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', 'constance.context_processors.config'], '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', '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', 'constance.context_processors.config']}}]
363TEST_NON_SERIALIZED_APPS = []
364TEST_RUNNER = 'django.test.runner.DiscoverRunner'
365THOUSAND_SEPARATOR = ','
366TIME_FORMAT = 'P'
367TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
368TIME_ZONE = 'UTC'
369USE_I18N = True
370USE_L10N = True
371USE_THOUSAND_SEPARATOR = False
372USE_TZ = True
373USE_X_FORWARDED_HOST = False
374USE_X_FORWARDED_PORT = False
375WEBPACK_LOADER = {'DEFAULT': {'STATS_FILE': PosixPath('/home/django/tcg_logistic/tcg_logistic/server/apps/frontend/static/frontend/webpack-stats.json')}}
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