· 4 years ago · Nov 02, 2020, 10:54 AM
1DataError at /api/v1/lead/index/create/
2value too long for type character varying(150)
3
4
5Request Method: POST
6Request URL: http://estate.webcase-dev.com/api/v1/lead/index/create/
7Django Version: 3.0
8Python Executable: /home/agent_test/agent_test/agent_test/server/.venv/bin/python
9Python Version: 3.7.9
10Python Path: ['/home/agent_test/agent_test/agent_test/server', '/home/agent_test/agent_test/agent_test/server/.venv/bin', '/usr/lib/python37.zip', '/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', '/home/agent_test/agent_test/agent_test/server/.venv/lib/python3.7/site-packages']
11Server time: Пн, 2 Ноя 2020 12:45:11 +0200
12Installed Applications:
13['markup',
14 'shared',
15 'apps.staff',
16 'apps.pages',
17 'apps.organization',
18 'apps.locations',
19 'apps.vacancies',
20 'apps.news',
21 'apps.leads',
22 'apps.advertisement',
23 'apps.attribute',
24 'rosetta',
25 'postie',
26 'des',
27 'django_jinja',
28 'django_filters',
29 'parler',
30 'ckeditor',
31 'ckeditor_uploader',
32 'solo',
33 'seo',
34 'jet',
35 'modeltranslation',
36 'adminsortable2',
37 'mptt',
38 'rest_framework',
39 'rest_framework.authtoken',
40 'rest_auth',
41 'rest_framework_recaptcha',
42 'allauth',
43 'allauth.account',
44 'allauth.socialaccount',
45 'drf_yasg',
46 'versatileimagefield',
47 'standards',
48 'django.contrib.admin',
49 'django.contrib.auth',
50 'django.contrib.contenttypes',
51 'django.contrib.sessions',
52 'django.contrib.messages',
53 'django.contrib.staticfiles',
54 'django.contrib.sites']
55Installed Middleware:
56['django.middleware.security.SecurityMiddleware',
57 'django.contrib.sessions.middleware.SessionMiddleware',
58 'django.middleware.common.CommonMiddleware',
59 'django.middleware.csrf.CsrfViewMiddleware',
60 'django.contrib.auth.middleware.AuthenticationMiddleware',
61 'django.contrib.messages.middleware.MessageMiddleware',
62 'django.middleware.clickjacking.XFrameOptionsMiddleware']
63
64
65Traceback (most recent call last):
66 File "/home/agent_test/agent_test/agent_test/server/.venv/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
67 return self.cursor.execute(sql, params)
68
69The above exception (value too long for type character varying(150)
70) was the direct cause of the following exception:
71 File "/home/agent_test/agent_test/agent_test/server/.venv/lib/python3.7/site-packages/django/core/handlers/exception.py", line 34, in inner
72 response = get_response(request)
73 File "/home/agent_test/agent_test/agent_test/server/.venv/lib/python3.7/site-packages/django/core/handlers/base.py", line 115, in _get_response
74 response = self.process_exception_by_middleware(e, request)
75 File "/home/agent_test/agent_test/agent_test/server/.venv/lib/python3.7/site-packages/django/core/handlers/base.py", line 113, in _get_response
76 response = wrapped_callback(request, *callback_args, **callback_kwargs)
77 File "/home/agent_test/agent_test/agent_test/server/.venv/lib/python3.7/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
78 return view_func(*args, **kwargs)
79 File "/home/agent_test/agent_test/agent_test/server/.venv/lib/python3.7/site-packages/django/views/generic/base.py", line 71, in view
80 return self.dispatch(request, *args, **kwargs)
81 File "/home/agent_test/agent_test/agent_test/server/.venv/lib/python3.7/site-packages/rest_framework/views.py", line 505, in dispatch
82 response = self.handle_exception(exc)
83 File "/home/agent_test/agent_test/agent_test/server/.venv/lib/python3.7/site-packages/rest_framework/views.py", line 465, in handle_exception
84 self.raise_uncaught_exception(exc)
85 File "/home/agent_test/agent_test/agent_test/server/.venv/lib/python3.7/site-packages/rest_framework/views.py", line 476, in raise_uncaught_exception
86 raise exc
87 File "/home/agent_test/agent_test/agent_test/server/.venv/lib/python3.7/site-packages/rest_framework/views.py", line 502, in dispatch
88 response = handler(request, *args, **kwargs)
89 File "/home/agent_test/agent_test/agent_test/server/.venv/lib/python3.7/site-packages/rest_framework/generics.py", line 190, in post
90 return self.create(request, *args, **kwargs)
91 File "/home/agent_test/agent_test/agent_test/server/.venv/lib/python3.7/site-packages/rest_framework/mixins.py", line 19, in create
92 self.perform_create(serializer)
93 File "/home/agent_test/agent_test/agent_test/server/.venv/lib/python3.7/site-packages/rest_framework/mixins.py", line 24, in perform_create
94 serializer.save()
95 File "/home/agent_test/agent_test/agent_test/server/.venv/lib/python3.7/site-packages/rest_framework/serializers.py", line 212, in save
96 self.instance = self.create(validated_data)
97 File "/home/agent_test/agent_test/agent_test/server/apps/leads/serializers.py", line 102, in create
98 instance = super().create(validate_date)
99 File "/home/agent_test/agent_test/agent_test/server/.venv/lib/python3.7/site-packages/rest_framework/serializers.py", line 948, in create
100 instance = ModelClass._default_manager.create(**validated_data)
101 File "/home/agent_test/agent_test/agent_test/server/.venv/lib/python3.7/site-packages/django/db/models/manager.py", line 82, in manager_method
102 return getattr(self.get_queryset(), name)(*args, **kwargs)
103 File "/home/agent_test/agent_test/agent_test/server/.venv/lib/python3.7/site-packages/django/db/models/query.py", line 433, in create
104 obj.save(force_insert=True, using=self.db)
105 File "/home/agent_test/agent_test/agent_test/server/shared/models/time_model.py", line 28, in save
106 super().save(**kwargs)
107 File "/home/agent_test/agent_test/agent_test/server/.venv/lib/python3.7/site-packages/django/db/models/base.py", line 746, in save
108 force_update=force_update, update_fields=update_fields)
109 File "/home/agent_test/agent_test/agent_test/server/.venv/lib/python3.7/site-packages/django/db/models/base.py", line 784, in save_base
110 force_update, using, update_fields,
111 File "/home/agent_test/agent_test/agent_test/server/.venv/lib/python3.7/site-packages/django/db/models/base.py", line 886, in _save_table
112 results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw)
113 File "/home/agent_test/agent_test/agent_test/server/.venv/lib/python3.7/site-packages/django/db/models/base.py", line 925, in _do_insert
114 using=using, raw=raw,
115 File "/home/agent_test/agent_test/agent_test/server/.venv/lib/python3.7/site-packages/django/db/models/manager.py", line 82, in manager_method
116 return getattr(self.get_queryset(), name)(*args, **kwargs)
117 File "/home/agent_test/agent_test/agent_test/server/.venv/lib/python3.7/site-packages/django/db/models/query.py", line 1204, in _insert
118 return query.get_compiler(using=using).execute_sql(returning_fields)
119 File "/home/agent_test/agent_test/agent_test/server/.venv/lib/python3.7/site-packages/django/db/models/sql/compiler.py", line 1377, in execute_sql
120 cursor.execute(sql, params)
121 File "/home/agent_test/agent_test/agent_test/server/.venv/lib/python3.7/site-packages/django/db/backends/utils.py", line 100, in execute
122 return super().execute(sql, params)
123 File "/home/agent_test/agent_test/agent_test/server/.venv/lib/python3.7/site-packages/django/db/backends/utils.py", line 68, in execute
124 return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
125 File "/home/agent_test/agent_test/agent_test/server/.venv/lib/python3.7/site-packages/django/db/backends/utils.py", line 77, in _execute_with_wrappers
126 return executor(sql, params, many, context)
127 File "/home/agent_test/agent_test/agent_test/server/.venv/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
128 return self.cursor.execute(sql, params)
129 File "/home/agent_test/agent_test/agent_test/server/.venv/lib/python3.7/site-packages/django/db/utils.py", line 90, in __exit__
130 raise dj_exc_value.with_traceback(traceback) from exc_value
131 File "/home/agent_test/agent_test/agent_test/server/.venv/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
132 return self.cursor.execute(sql, params)
133
134Exception Type: DataError at /api/v1/lead/index/create/
135Exception Value: value too long for type character varying(150)
136
137Request information:
138USER: admin
139
140GET: No GET data
141
142POST: No POST data
143
144FILES: No FILES data
145
146COOKIES:
147csrftoken = 'nshcjytwQEJBEmhjYo9rYkSihstg8j6ZM7JJOWJTWWcb1CezyTNbMokT6ia1cl7w'
148sessionid = 'tg334gnzhwo4fmog4v5abokgc2hau73i'
149messages = 'f90756aec0c214de78ec6d743315a743fb176dd0$["__messagesnotfinished__"]'
150
151META:
152CONTENT_LENGTH = '276'
153CONTENT_TYPE = 'application/json'
154CSRF_COOKIE = 'nshcjytwQEJBEmhjYo9rYkSihstg8j6ZM7JJOWJTWWcb1CezyTNbMokT6ia1cl7w'
155HTTP_ACCEPT = '*/*'
156HTTP_ACCEPT_ENCODING = 'gzip, deflate'
157HTTP_ACCEPT_LANGUAGE = 'undefined'
158HTTP_CACHE_CONTROL = 'no-cache'
159HTTP_CONNECTION = 'close'
160HTTP_COOKIE = 'csrftoken=nshcjytwQEJBEmhjYo9rYkSihstg8j6ZM7JJOWJTWWcb1CezyTNbMokT6ia1cl7w; sessionid=tg334gnzhwo4fmog4v5abokgc2hau73i; messages="f90756aec0c214de78ec6d743315a743fb176dd0$[\\"__messagesnotfinished__\\"]"'
161HTTP_HOST = 'estate.webcase-dev.com'
162HTTP_ORIGIN = 'http://estate.webcase-dev.com'
163HTTP_PRAGMA = 'no-cache'
164HTTP_REFERER = 'http://estate.webcase-dev.com/client'
165HTTP_USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36'
166HTTP_X_CSRFTOKEN = 'nshcjytwQEJBEmhjYo9rYkSihstg8j6ZM7JJOWJTWWcb1CezyTNbMokT6ia1cl7w'
167HTTP_X_FORWARDED_FOR = '185.248.130.27'
168HTTP_X_REQUESTED_WITH = 'XMLHttpRequest'
169PATH_INFO = '/api/v1/lead/index/create/'
170QUERY_STRING = ''
171RAW_URI = '/api/v1/lead/index/create/'
172REMOTE_ADDR = ''
173REQUEST_METHOD = 'POST'
174SCRIPT_NAME = ''
175SERVER_NAME = 'estate.webcase-dev.com'
176SERVER_PORT = '80'
177SERVER_PROTOCOL = 'HTTP/1.0'
178SERVER_SOFTWARE = 'gunicorn/20.0.4'
179gunicorn.socket = <gevent._socket3.socket at 0x7ff353a5fbf0 object, fd=8, family=1, type=1, proto=0>
180wsgi.errors = <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7ff35306d1d0>
181wsgi.file_wrapper = ''
182wsgi.input = <gunicorn.http.body.Body object at 0x7ff35306d250>
183wsgi.input_terminated = True
184wsgi.multiprocess = True
185wsgi.multithread = True
186wsgi.run_once = False
187wsgi.url_scheme = 'http'
188wsgi.version = '(1, 0)'
189
190Settings:
191Using settings module app.settings
192ABSOLUTE_URL_OVERRIDES = {}
193ACCOUNT_ADAPTER = 'apps.staff.adapters.MAccountAdapter'
194ACCOUNT_AUTHENTICATION_METHOD = 'email'
195ACCOUNT_CONFIRM_EMAIL_ON_GET = True
196ACCOUNT_EMAIL_REQUIRED = True
197ACCOUNT_EMAIL_VERIFICATION = 'mandatory'
198ACCOUNT_LOGIN_ON_PASSWORD_RESET = '********************'
199ACCOUNT_USERNAME_REQUIRED = False
200ADMINS = []
201ALLOWED_HOSTS = ['46.101.106.180', 'estate.webcase-dev.com']
202API_PREFIX = '********************'
203APPEND_SLASH = True
204AUTHENTICATION_BACKENDS = "('django.contrib.auth.backends.ModelBackend', 'allauth.account.auth_backends.AuthenticationBackend')"
205AUTH_PASSWORD_VALIDATORS = '********************'
206AUTH_USER_MODEL = 'staff.User'
207BASE_DIR = PosixPath('/home/agent_test/agent_test/agent_test/server/app/settings/default.py')
208BASE_ROOT = PosixPath('/home/agent_test/agent_test/agent_test/server/app')
209CACHES = {'default': {'BACKEND': 'django_redis.cache.RedisCache', 'LOCATION': 'redis://127.0.0.1:6379/1'}}
210CACHE_MIDDLEWARE_ALIAS = 'default'
211CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
212CACHE_MIDDLEWARE_SECONDS = 600
213CELERY_ACCEPT_CONTENT = ['json']
214CELERY_BROKER_URL = 'redis://127.0.0.1:6379/0'
215CELERY_RESULT_SERIALIZER = 'json'
216CELERY_TASK_SERIALIZER = 'json'
217CKEDITOR_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}}
218CKEDITOR_UPLOAD_PATH = ''
219CSRF_COOKIE_AGE = 31449600
220CSRF_COOKIE_DOMAIN = None
221CSRF_COOKIE_HTTPONLY = False
222CSRF_COOKIE_NAME = 'csrftoken'
223CSRF_COOKIE_PATH = '/'
224CSRF_COOKIE_SAMESITE = 'Lax'
225CSRF_COOKIE_SECURE = False
226CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
227CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
228CSRF_TRUSTED_ORIGINS = []
229CSRF_USE_SESSIONS = False
230DATABASES = {'default': {'NAME': 'agent_estate_db', 'USER': 'agent_estate_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}}}
231DATABASE_ROUTERS = []
232DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
233DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
234DATETIME_FORMAT = 'N j, Y, P'
235DATETIME_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']
236DATE_FORMAT = 'N j, Y'
237DATE_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']
238DEBUG = True
239DEBUG_PROPAGATE_EXCEPTIONS = False
240DECIMAL_SEPARATOR = '.'
241DEFAULT_CHARSET = 'utf-8'
242DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
243DEFAULT_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']
244DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
245DEFAULT_FROM_EMAIL = 'admin@admin.admin'
246DEFAULT_INDEX_TABLESPACE = ''
247DEFAULT_TABLESPACE = ''
248DISALLOWED_USER_AGENTS = []
249DRF_RECAPTCHA_SECRET_KEY = '********************'
250DRF_RECAPTCHA_VERIFY_ENDPOINT = 'https://www.google.com/recaptcha/api/siteverify'
251EMAIL_BACKEND = 'des.backends.ConfiguredEmailBackend'
252EMAIL_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'}
253EMAIL_FILE_PATH = ''
254EMAIL_HOST = '127.0.0.1'
255EMAIL_HOST_PASSWORD = '********************'
256EMAIL_HOST_USER = None
257EMAIL_PORT = None
258EMAIL_SSL_CERTFILE = None
259EMAIL_SSL_KEYFILE = '********************'
260EMAIL_SUBJECT_PREFIX = '[Django] '
261EMAIL_TIMEOUT = None
262EMAIL_USE_LOCALTIME = False
263EMAIL_USE_SSL = False
264EMAIL_USE_TLS = False
265FILE_CHARSET = 'utf-8'
266FILE_UPLOAD_DIRECTORY_PERMISSIONS = 509
267FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
268FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
269FILE_UPLOAD_PERMISSIONS = 509
270FILE_UPLOAD_TEMP_DIR = None
271FIRST_DAY_OF_WEEK = 0
272FIXTURE_DIRS = []
273FORCE_SCRIPT_NAME = None
274FORMAT_MODULE_PATH = None
275FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
276GUNICORN_PID = '/tmp/agent_estate.pid'
277IGNORABLE_404_URLS = []
278INSTALLED_APPS = ['markup', 'shared', 'apps.staff', 'apps.pages', 'apps.organization', 'apps.locations', 'apps.vacancies', 'apps.news', 'apps.leads', 'apps.advertisement', 'apps.attribute', 'rosetta', 'postie', 'des', 'django_jinja', 'django_filters', 'parler', 'ckeditor', 'ckeditor_uploader', 'solo', 'seo', 'jet', 'modeltranslation', 'adminsortable2', 'mptt', 'rest_framework', 'rest_framework.authtoken', 'rest_auth', 'rest_framework_recaptcha', 'allauth', 'allauth.account', 'allauth.socialaccount', 'drf_yasg', 'versatileimagefield', 'standards', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites']
279INTERNAL_IPS = []
280JET_SIDE_MENU_COMPACT = True
281LANGUAGES = "(('ru', 'Russian'),)"
282LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
283LANGUAGE_CODE = 'ru'
284LANGUAGE_COOKIE_AGE = None
285LANGUAGE_COOKIE_DOMAIN = None
286LANGUAGE_COOKIE_HTTPONLY = False
287LANGUAGE_COOKIE_NAME = 'django_language'
288LANGUAGE_COOKIE_PATH = '/'
289LANGUAGE_COOKIE_SAMESITE = None
290LANGUAGE_COOKIE_SECURE = False
291LOCALE_PATHS = "(PosixPath('/home/agent_test/agent_test/agent_test/server/app/locale'),)"
292LOGGING = {'version': 1, 'disable_existing_loggers': False, 'handlers': {'console': {'level': 'DEBUG', 'class': 'logging.StreamHandler'}, 'logfile': {'level': 'DEBUG', 'class': 'logging.FileHandler', 'filename': PosixPath('/home/agent_test/agent_test/agent_test/server/app/settings/default.py/../logfile.log')}}, 'root': {'level': 'INFO', 'handlers': ['console', 'logfile']}}
293LOGGING_CONFIG = 'logging.config.dictConfig'
294LOGIN_REDIRECT_URL = '/accounts/profile/'
295LOGIN_URL = '/accounts/login/'
296LOGOUT_REDIRECT_URL = None
297MANAGERS = []
298MEDIA_ROOT = PosixPath('/home/agent_test/agent_test/agent_test/server/app/uploads')
299MEDIA_URL = '/uploads/'
300MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
301MIDDLEWARE = ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware']
302MIGRATION_MODULES = {}
303MONTH_DAY_FORMAT = 'F j'
304NUMBER_GROUPING = 0
305OLD_PASSWORD_FIELD_ENABLED = '********************'
306PASSWORD_HASHERS = '********************'
307PASSWORD_RESET_TIMEOUT_DAYS = '********************'
308POSTIE_HTML_ADMIN_WIDGET = {'widget': 'CKEditorWidget', 'widget_module': 'ckeditor.widgets', 'attrs': {}}
309POSTIE_INSTANT_SEND = True
310POSTIE_TEMPLATE_CHOICES = Choices(('add_lead', 'add_lead', 'Create lead'), ('confirm_email', 'confirm_email', 'Confirm email'), ('password_reset_confirm', 'password_reset_confirm', 'Confirm password reset'))
311POSTIE_TEMPLATE_CONTEXTS = {'add_lead': {'link': 'Admin link'}, 'confirm_email': {'login': 'Login', 'name': 'Name', 'link': 'Confirmation link'}, 'password_reset_confirm': '********************'}
312PREPEND_WWW = False
313PROJECT_APPS = ['markup', 'shared', 'apps.staff', 'apps.pages', 'apps.organization', 'apps.locations', 'apps.vacancies', 'apps.news', 'apps.leads', 'apps.advertisement', 'apps.attribute']
314REST_FRAMEWORK = {'EXCEPTION_HANDLER': 'shared.rest.handlers.exception_handler'}
315ROOT_URLCONF = 'app.urls'
316ROSETTA_SHOW_AT_ADMIN_PANEL = True
317SECRET_KEY = '********************'
318SECURE_BROWSER_XSS_FILTER = False
319SECURE_CONTENT_TYPE_NOSNIFF = True
320SECURE_HSTS_INCLUDE_SUBDOMAINS = False
321SECURE_HSTS_PRELOAD = False
322SECURE_HSTS_SECONDS = 0
323SECURE_PROXY_SSL_HEADER = None
324SECURE_REDIRECT_EXEMPT = []
325SECURE_REFERRER_POLICY = None
326SECURE_SSL_HOST = None
327SECURE_SSL_REDIRECT = False
328SEO_HTML_ADMIN_WIDGET = {'widget': 'CKEditorWidget', 'widget_path': 'ckeditor.widgets'}
329SERVER_EMAIL = 'root@localhost'
330SESSION_CACHE_ALIAS = 'default'
331SESSION_COOKIE_AGE = 1209600
332SESSION_COOKIE_DOMAIN = None
333SESSION_COOKIE_HTTPONLY = True
334SESSION_COOKIE_NAME = 'sessionid'
335SESSION_COOKIE_PATH = '/'
336SESSION_COOKIE_SAMESITE = 'Lax'
337SESSION_COOKIE_SECURE = False
338SESSION_ENGINE = 'django.contrib.sessions.backends.db'
339SESSION_EXPIRE_AT_BROWSER_CLOSE = False
340SESSION_FILE_PATH = None
341SESSION_SAVE_EVERY_REQUEST = False
342SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
343SETTINGS_MODULE = 'app.settings'
344SHORT_DATETIME_FORMAT = 'm/d/Y P'
345SHORT_DATE_FORMAT = 'm/d/Y'
346SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
347SILENCED_SYSTEM_CHECKS = []
348SITE_ID = 1
349STATICFILES_DIRS = []
350STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
351STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
352STATIC_ROOT = PosixPath('/home/agent_test/agent_test/agent_test/server/app/static')
353STATIC_URL = '/static/'
354TEMPLATES = [{'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.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']}}]
355TEST_NON_SERIALIZED_APPS = []
356TEST_RUNNER = 'django.test.runner.DiscoverRunner'
357THOUSAND_SEPARATOR = ','
358TIME_FORMAT = 'P'
359TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
360TIME_ZONE = 'Europe/Kiev'
361USE_I18N = True
362USE_L10N = True
363USE_THOUSAND_SEPARATOR = False
364USE_TZ = True
365USE_X_FORWARDED_HOST = False
366USE_X_FORWARDED_PORT = False
367VERSATILEIMAGEFIELD_RENDITION_KEY_SETS = '********************'
368VERSATILEIMAGEFIELD_SETTINGS = {'jpeg_resize_quality': 90, 'progressive_jpeg': True}
369WSGI_APPLICATION = 'app.wsgi.application'
370X_FRAME_OPTIONS = 'SAMEORIGIN'
371YEAR_MONTH_FORMAT = 'F Y'
372
373
374You're seeing this error because you have DEBUG = True in your
375Django settings file. Change that to False, and Django will
376display a standard page generated by the handler for this status code.
377