· 4 years ago · Jul 02, 2021, 11:42 AM
1AttributeError at /api/v1/profile/autocomplite/authors/
2'NoneType' object has no attribute 'avatar'
3Request Method: GET
4Request URL: https://kupipai.webcase-dev.com/api/v1/profile/autocomplite/authors/
5Django Version: 3.2.4
6Exception Type: AttributeError
7Exception Value:
8'NoneType' object has no attribute 'avatar'
9Exception Location: /home/kupipai/kupipai/kupipai/server/apps/staff/api/serializers/profile.py, line 260, in get_avatar
10Python Executable: /home/kupipai/kupipai/kupipai/server/.venv/bin/python
11Python Version: 3.8.10
12Python Path:
13['/home/kupipai/kupipai/kupipai/server',
14 '/home/kupipai/kupipai/kupipai/server/.venv/bin',
15 '/usr/lib/python38.zip',
16 '/usr/lib/python3.8',
17 '/usr/lib/python3.8/lib-dynload',
18 '/home/kupipai/kupipai/kupipai/server/.venv/lib/python3.8/site-packages']
19Server time: Fri, 02 Jul 2021 11:35:18 +0000
20Traceback Switch to copy-and-paste view
21/home/kupipai/kupipai/kupipai/server/.venv/lib/python3.8/site-packages/django/core/handlers/exception.py, line 47, in inner
22 response = await sync_to_async(response_for_exception, thread_sensitive=False)(request, exc)
23 return response
24 return inner
25 else:
26 @wraps(get_response)
27 def inner(request):
28 try:
29 response = get_response(request) …
30 except Exception as exc:
31 response = response_for_exception(request, exc)
32 return response
33 return inner
34▶ Local vars
35Variable Value
36exc
37AttributeError("'NoneType' object has no attribute 'avatar'")
38get_response
39<bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7fb36f09b460>>
40request
41<WSGIRequest: GET '/api/v1/profile/autocomplite/authors/'>
42/home/kupipai/kupipai/kupipai/server/.venv/lib/python3.8/site-packages/django/core/handlers/base.py, line 181, in _get_response
43 if response is None:
44 wrapped_callback = self.make_view_atomic(callback)
45 # If it is an asynchronous view, run it in a subthread.
46 if asyncio.iscoroutinefunction(wrapped_callback):
47 wrapped_callback = async_to_sync(wrapped_callback)
48 try:
49 response = wrapped_callback(request, *callback_args, **callback_kwargs) …
50 except Exception as e:
51 response = self.process_exception_by_middleware(e, request)
52 if response is None:
53 raise
54 # Complain if the view returned None (a common error).
55▶ Local vars
56Variable Value
57callback
58<function AuthorsAutocompliteAPIView at 0x7fb3676041f0>
59callback_args
60()
61callback_kwargs
62{}
63middleware_method
64<bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7fb3684d94c0>>
65request
66<WSGIRequest: GET '/api/v1/profile/autocomplite/authors/'>
67response
68None
69self
70<django.core.handlers.wsgi.WSGIHandler object at 0x7fb36f09b460>
71wrapped_callback
72<function AuthorsAutocompliteAPIView at 0x7fb3676041f0>
73/home/kupipai/kupipai/kupipai/server/.venv/lib/python3.8/site-packages/django/views/decorators/csrf.py, line 54, in wrapped_view
74def csrf_exempt(view_func):
75 """Mark a view function as being exempt from the CSRF view protection."""
76 # view_func.csrf_exempt = True would also work, but decorators are nicer
77 # if they don't have side effects, so return a new function.
78 def wrapped_view(*args, **kwargs):
79 return view_func(*args, **kwargs) …
80 wrapped_view.csrf_exempt = True
81 return wraps(view_func)(wrapped_view)
82▶ Local vars
83Variable Value
84args
85(<WSGIRequest: GET '/api/v1/profile/autocomplite/authors/'>,)
86kwargs
87{}
88view_func
89<function AuthorsAutocompliteAPIView at 0x7fb367604160>
90/home/kupipai/kupipai/kupipai/server/.venv/lib/python3.8/site-packages/django/views/generic/base.py, line 70, in view
91 self = cls(**initkwargs)
92 self.setup(request, *args, **kwargs)
93 if not hasattr(self, 'request'):
94 raise AttributeError(
95 "%s instance has no 'request' attribute. Did you override "
96 "setup() and forget to call super()?" % cls.__name__
97 )
98 return self.dispatch(request, *args, **kwargs) …
99 view.view_class = cls
100 view.view_initkwargs = initkwargs
101 # take name and docstring from class
102 update_wrapper(view, cls, updated=())
103▶ Local vars
104Variable Value
105args
106()
107cls
108<class 'apps.staff.api.views.profile.AuthorsAutocompliteAPIView'>
109initkwargs
110{}
111kwargs
112{}
113request
114<WSGIRequest: GET '/api/v1/profile/autocomplite/authors/'>
115self
116<apps.staff.api.views.profile.AuthorsAutocompliteAPIView object at 0x7fb3597f41c0>
117/home/kupipai/kupipai/kupipai/server/.venv/lib/python3.8/site-packages/rest_framework/views.py, line 509, in dispatch
118 self.http_method_not_allowed)
119 else:
120 handler = self.http_method_not_allowed
121 response = handler(request, *args, **kwargs)
122 except Exception as exc:
123 response = self.handle_exception(exc) …
124 self.response = self.finalize_response(request, response, *args, **kwargs)
125 return self.response
126 def options(self, request, *args, **kwargs):
127 """
128▶ Local vars
129Variable Value
130args
131()
132handler
133<bound method ListAPIView.get of <apps.staff.api.views.profile.AuthorsAutocompliteAPIView object at 0x7fb3597f41c0>>
134kwargs
135{}
136request
137<rest_framework.request.Request: GET '/api/v1/profile/autocomplite/authors/'>
138self
139<apps.staff.api.views.profile.AuthorsAutocompliteAPIView object at 0x7fb3597f41c0>
140/home/kupipai/kupipai/kupipai/server/.venv/lib/python3.8/site-packages/rest_framework/views.py, line 469, in handle_exception
141 exception_handler = self.get_exception_handler()
142 context = self.get_exception_handler_context()
143 response = exception_handler(exc, context)
144 if response is None:
145 self.raise_uncaught_exception(exc) …
146 response.exception = True
147 return response
148 def raise_uncaught_exception(self, exc):
149 if settings.DEBUG:
150▶ Local vars
151Variable Value
152context
153{'args': (),
154 'kwargs': {},
155 'request': <rest_framework.request.Request: GET '/api/v1/profile/autocomplite/authors/'>,
156 'view': <apps.staff.api.views.profile.AuthorsAutocompliteAPIView object at 0x7fb3597f41c0>}
157exc
158AttributeError("'NoneType' object has no attribute 'avatar'")
159exception_handler
160<standards.drf.handlers.ExceptionHandler object at 0x7fb35a5ba520>
161response
162None
163self
164<apps.staff.api.views.profile.AuthorsAutocompliteAPIView object at 0x7fb3597f41c0>
165/home/kupipai/kupipai/kupipai/server/.venv/lib/python3.8/site-packages/rest_framework/views.py, line 480, in raise_uncaught_exception
166 def raise_uncaught_exception(self, exc):
167 if settings.DEBUG:
168 request = self.request
169 renderer_format = getattr(request.accepted_renderer, 'format')
170 use_plaintext_traceback = renderer_format not in ('html', 'api', 'admin')
171 request.force_plaintext_errors(use_plaintext_traceback)
172 raise exc …
173 # Note: Views are made CSRF exempt from within `as_view` as to prevent
174 # accidental removal of this exemption in cases where `dispatch` needs to
175 # be overridden.
176 def dispatch(self, request, *args, **kwargs):
177 """
178▶ Local vars
179Variable Value
180exc
181AttributeError("'NoneType' object has no attribute 'avatar'")
182renderer_format
183'json'
184request
185<rest_framework.request.Request: GET '/api/v1/profile/autocomplite/authors/'>
186self
187<apps.staff.api.views.profile.AuthorsAutocompliteAPIView object at 0x7fb3597f41c0>
188use_plaintext_traceback
189True
190/home/kupipai/kupipai/kupipai/server/.venv/lib/python3.8/site-packages/rest_framework/views.py, line 506, in dispatch
191 # Get the appropriate handler method
192 if request.method.lower() in self.http_method_names:
193 handler = getattr(self, request.method.lower(),
194 self.http_method_not_allowed)
195 else:
196 handler = self.http_method_not_allowed
197 response = handler(request, *args, **kwargs) …
198 except Exception as exc:
199 response = self.handle_exception(exc)
200 self.response = self.finalize_response(request, response, *args, **kwargs)
201 return self.response
202▶ Local vars
203Variable Value
204args
205()
206handler
207<bound method ListAPIView.get of <apps.staff.api.views.profile.AuthorsAutocompliteAPIView object at 0x7fb3597f41c0>>
208kwargs
209{}
210request
211<rest_framework.request.Request: GET '/api/v1/profile/autocomplite/authors/'>
212self
213<apps.staff.api.views.profile.AuthorsAutocompliteAPIView object at 0x7fb3597f41c0>
214/home/kupipai/kupipai/kupipai/server/.venv/lib/python3.8/site-packages/rest_framework/generics.py, line 199, in get
215class ListAPIView(mixins.ListModelMixin,
216 GenericAPIView):
217 """
218 Concrete view for listing a queryset.
219 """
220 def get(self, request, *args, **kwargs):
221 return self.list(request, *args, **kwargs) …
222class RetrieveAPIView(mixins.RetrieveModelMixin,
223 GenericAPIView):
224 """
225 Concrete view for retrieving a model instance.
226▶ Local vars
227Variable Value
228args
229()
230kwargs
231{}
232request
233<rest_framework.request.Request: GET '/api/v1/profile/autocomplite/authors/'>
234self
235<apps.staff.api.views.profile.AuthorsAutocompliteAPIView object at 0x7fb3597f41c0>
236/home/kupipai/kupipai/kupipai/server/.venv/lib/python3.8/site-packages/rest_framework/mixins.py, line 43, in list
237 """
238 def list(self, request, *args, **kwargs):
239 queryset = self.filter_queryset(self.get_queryset())
240 page = self.paginate_queryset(queryset)
241 if page is not None:
242 serializer = self.get_serializer(page, many=True)
243 return self.get_paginated_response(serializer.data) …
244 serializer = self.get_serializer(queryset, many=True)
245 return Response(serializer.data)
246class RetrieveModelMixin:
247▶ Local vars
248Variable Value
249args
250()
251kwargs
252{}
253page
254[<User: mxp-a3-1@kupipai.com.ua>,
255 <User: mxp-a2@kupipai.com.ua>,
256 <User: mxp-a3-2@kupipai.com.ua>,
257 <User: a4@qwe.qwe>,
258 <User: support@webcase.studio>,
259 <User: a1-1@kupipai.com.ua>,
260 <User: admin@kupipai.com.ua>]
261queryset
262<QuerySet [<User: mxp-a3-1@kupipai.com.ua>, <User: mxp-a2@kupipai.com.ua>, <User: mxp-a3-2@kupipai.com.ua>, <User: a4@qwe.qwe>, <User: support@webcase.studio>, <User: a1-1@kupipai.com.ua>, <User: admin@kupipai.com.ua>]>
263request
264<rest_framework.request.Request: GET '/api/v1/profile/autocomplite/authors/'>
265self
266<apps.staff.api.views.profile.AuthorsAutocompliteAPIView object at 0x7fb3597f41c0>
267serializer
268UserAutocompliteSerializer([<User: mxp-a3-1@kupipai.com.ua>, <User: mxp-a2@kupipai.com.ua>, <User: mxp-a3-2@kupipai.com.ua>, <User: a4@qwe.qwe>, <User: support@webcase.studio>, <User: a1-1@kupipai.com.ua>, <User: admin@kupipai.com.ua>], context={'request': <rest_framework.request.Request: GET '/api/v1/profile/autocomplite/authors/'>, 'format': None, 'view': <apps.staff.api.views.profile.AuthorsAutocompliteAPIView object>}, many=True):
269 id = IntegerField(label='ID', read_only=True)
270 title = SerializerMethodField()
271 avatar = SerializerMethodField()
272/home/kupipai/kupipai/kupipai/server/.venv/lib/python3.8/site-packages/rest_framework/serializers.py, line 745, in data
273 return representation.list_repr(self, indent=1)
274 # Include a backlink to the serializer class on return objects.
275 # Allows renderers such as HTMLFormRenderer to get the full field info.
276 @property
277 def data(self):
278 ret = super().data …
279 return ReturnList(ret, serializer=self)
280 @property
281 def errors(self):
282 ret = super().errors
283 if isinstance(ret, list) and len(ret) == 1 and getattr(ret[0], 'code', None) == 'null':
284▶ Local vars
285Variable Value
286__class__
287<class 'rest_framework.serializers.ListSerializer'>
288self
289UserAutocompliteSerializer([<User: mxp-a3-1@kupipai.com.ua>, <User: mxp-a2@kupipai.com.ua>, <User: mxp-a3-2@kupipai.com.ua>, <User: a4@qwe.qwe>, <User: support@webcase.studio>, <User: a1-1@kupipai.com.ua>, <User: admin@kupipai.com.ua>], context={'request': <rest_framework.request.Request: GET '/api/v1/profile/autocomplite/authors/'>, 'format': None, 'view': <apps.staff.api.views.profile.AuthorsAutocompliteAPIView object>}, many=True):
290 id = IntegerField(label='ID', read_only=True)
291 title = SerializerMethodField()
292 avatar = SerializerMethodField()
293/home/kupipai/kupipai/kupipai/server/.venv/lib/python3.8/site-packages/rest_framework/serializers.py, line 246, in data
294 'You should either call `.is_valid()` first, '
295 'or access `.initial_data` instead.'
296 )
297 raise AssertionError(msg)
298 if not hasattr(self, '_data'):
299 if self.instance is not None and not getattr(self, '_errors', None):
300 self._data = self.to_representation(self.instance) …
301 elif hasattr(self, '_validated_data') and not getattr(self, '_errors', None):
302 self._data = self.to_representation(self.validated_data)
303 else:
304 self._data = self.get_initial()
305 return self._data
306▶ Local vars
307Variable Value
308self
309UserAutocompliteSerializer([<User: mxp-a3-1@kupipai.com.ua>, <User: mxp-a2@kupipai.com.ua>, <User: mxp-a3-2@kupipai.com.ua>, <User: a4@qwe.qwe>, <User: support@webcase.studio>, <User: a1-1@kupipai.com.ua>, <User: admin@kupipai.com.ua>], context={'request': <rest_framework.request.Request: GET '/api/v1/profile/autocomplite/authors/'>, 'format': None, 'view': <apps.staff.api.views.profile.AuthorsAutocompliteAPIView object>}, many=True):
310 id = IntegerField(label='ID', read_only=True)
311 title = SerializerMethodField()
312 avatar = SerializerMethodField()
313/home/kupipai/kupipai/kupipai/server/.venv/lib/python3.8/site-packages/rest_framework/serializers.py, line 663, in to_representation
314 """
315 List of object instances -> List of dicts of primitive datatypes.
316 """
317 # Dealing with nested relationships, data can be a Manager,
318 # so, first get a queryset from the Manager if needed
319 iterable = data.all() if isinstance(data, models.Manager) else data
320 return [ …
321 self.child.to_representation(item) for item in iterable
322 ]
323 def validate(self, attrs):
324 return attrs
325▶ Local vars
326Variable Value
327data
328[<User: mxp-a3-1@kupipai.com.ua>,
329 <User: mxp-a2@kupipai.com.ua>,
330 <User: mxp-a3-2@kupipai.com.ua>,
331 <User: a4@qwe.qwe>,
332 <User: support@webcase.studio>,
333 <User: a1-1@kupipai.com.ua>,
334 <User: admin@kupipai.com.ua>]
335iterable
336[<User: mxp-a3-1@kupipai.com.ua>,
337 <User: mxp-a2@kupipai.com.ua>,
338 <User: mxp-a3-2@kupipai.com.ua>,
339 <User: a4@qwe.qwe>,
340 <User: support@webcase.studio>,
341 <User: a1-1@kupipai.com.ua>,
342 <User: admin@kupipai.com.ua>]
343self
344UserAutocompliteSerializer([<User: mxp-a3-1@kupipai.com.ua>, <User: mxp-a2@kupipai.com.ua>, <User: mxp-a3-2@kupipai.com.ua>, <User: a4@qwe.qwe>, <User: support@webcase.studio>, <User: a1-1@kupipai.com.ua>, <User: admin@kupipai.com.ua>], context={'request': <rest_framework.request.Request: GET '/api/v1/profile/autocomplite/authors/'>, 'format': None, 'view': <apps.staff.api.views.profile.AuthorsAutocompliteAPIView object>}, many=True):
345 id = IntegerField(label='ID', read_only=True)
346 title = SerializerMethodField()
347 avatar = SerializerMethodField()
348/home/kupipai/kupipai/kupipai/server/.venv/lib/python3.8/site-packages/rest_framework/serializers.py, line 664, in <listcomp>
349 List of object instances -> List of dicts of primitive datatypes.
350 """
351 # Dealing with nested relationships, data can be a Manager,
352 # so, first get a queryset from the Manager if needed
353 iterable = data.all() if isinstance(data, models.Manager) else data
354 return [
355 self.child.to_representation(item) for item in iterable …
356 ]
357 def validate(self, attrs):
358 return attrs
359 def update(self, instance, validated_data):
360▶ Local vars
361Variable Value
362.0
363<list_iterator object at 0x7fb3597f4430>
364item
365<User: a1-1@kupipai.com.ua>
366self
367UserAutocompliteSerializer([<User: mxp-a3-1@kupipai.com.ua>, <User: mxp-a2@kupipai.com.ua>, <User: mxp-a3-2@kupipai.com.ua>, <User: a4@qwe.qwe>, <User: support@webcase.studio>, <User: a1-1@kupipai.com.ua>, <User: admin@kupipai.com.ua>], context={'request': <rest_framework.request.Request: GET '/api/v1/profile/autocomplite/authors/'>, 'format': None, 'view': <apps.staff.api.views.profile.AuthorsAutocompliteAPIView object>}, many=True):
368 id = IntegerField(label='ID', read_only=True)
369 title = SerializerMethodField()
370 avatar = SerializerMethodField()
371/home/kupipai/kupipai/kupipai/server/apps/staff/api/serializers/profile.py, line 224, in to_representation
372}
373class BaseUserInfoSerializerMixin:
374 def to_representation(self, obj):
375 self.pre_repr(obj)
376 return super().to_representation(obj) …
377 def pre_repr(self, obj):
378 pass
379 def get_title(self, obj):
380 title_getter = (
381▶ Local vars
382Variable Value
383__class__
384<class 'apps.staff.api.serializers.profile.BaseUserInfoSerializerMixin'>
385obj
386<User: a1-1@kupipai.com.ua>
387self
388UserAutocompliteSerializer([<User: mxp-a3-1@kupipai.com.ua>, <User: mxp-a2@kupipai.com.ua>, <User: mxp-a3-2@kupipai.com.ua>, <User: a4@qwe.qwe>, <User: support@webcase.studio>, <User: a1-1@kupipai.com.ua>, <User: admin@kupipai.com.ua>], context={'request': <rest_framework.request.Request: GET '/api/v1/profile/autocomplite/authors/'>, 'format': None, 'view': <apps.staff.api.views.profile.AuthorsAutocompliteAPIView object>}):
389 id = IntegerField(label='ID', read_only=True)
390 title = SerializerMethodField()
391 avatar = SerializerMethodField()
392/home/kupipai/kupipai/kupipai/server/.venv/lib/python3.8/site-packages/rest_framework/serializers.py, line 515, in to_representation
393 #
394 # For related fields with `use_pk_only_optimization` we need to
395 # resolve the pk value.
396 check_for_none = attribute.pk if isinstance(attribute, PKOnlyObject) else attribute
397 if check_for_none is None:
398 ret[field.field_name] = None
399 else:
400 ret[field.field_name] = field.to_representation(attribute) …
401 return ret
402 def validate(self, attrs):
403 return attrs
404▶ Local vars
405Variable Value
406attribute
407<User: a1-1@kupipai.com.ua>
408check_for_none
409<User: a1-1@kupipai.com.ua>
410field
411SerializerMethodField()
412fields
413<generator object Serializer._readable_fields at 0x7fb362ad5b30>
414instance
415<User: a1-1@kupipai.com.ua>
416ret
417OrderedDict([('id', 11), ('title', '')])
418self
419UserAutocompliteSerializer([<User: mxp-a3-1@kupipai.com.ua>, <User: mxp-a2@kupipai.com.ua>, <User: mxp-a3-2@kupipai.com.ua>, <User: a4@qwe.qwe>, <User: support@webcase.studio>, <User: a1-1@kupipai.com.ua>, <User: admin@kupipai.com.ua>], context={'request': <rest_framework.request.Request: GET '/api/v1/profile/autocomplite/authors/'>, 'format': None, 'view': <apps.staff.api.views.profile.AuthorsAutocompliteAPIView object>}):
420 id = IntegerField(label='ID', read_only=True)
421 title = SerializerMethodField()
422 avatar = SerializerMethodField()
423/home/kupipai/kupipai/kupipai/server/.venv/lib/python3.8/site-packages/rest_framework/fields.py, line 1882, in to_representation
424 if self.method_name is None:
425 self.method_name = 'get_{field_name}'.format(field_name=field_name)
426 super().bind(field_name, parent)
427 def to_representation(self, value):
428 method = getattr(self.parent, self.method_name)
429 return method(value) …
430class ModelField(Field):
431 """
432 A generic field that can be used against an arbitrary model field.
433▶ Local vars
434Variable Value
435method
436<bound method UserAutocompliteSerializer.get_avatar of UserAutocompliteSerializer([<User: mxp-a3-1@kupipai.com.ua>, <User: mxp-a2@kupipai.com.ua>, <User: mxp-a3-2@kupipai.com.ua>, <User: a4@qwe.qwe>, <User: support@webcase.studio>, <User: a1-1@kupipai.com.ua>, <User: admin@kupipai.com.ua>], context={'request': <rest_framework.request.Request: GET '/api/v1/profile/autocomplite/authors/'>, 'format': None, 'view': <apps.staff.api.views.profile.AuthorsAutocompliteAPIView object>}):
437 id = IntegerField(label='ID', read_only=True)
438 title = SerializerMethodField()
439 avatar = SerializerMethodField()>
440self
441SerializerMethodField()
442value
443<User: a1-1@kupipai.com.ua>
444/home/kupipai/kupipai/kupipai/server/apps/staff/api/serializers/profile.py, line 260, in get_avatar
445 self.user_type = profile_service.get_type(obj)
446 self.profile = profile_service.get_profile(obj, self.user_type)
447 def get_avatar(self, obj):
448 return (
449 serializers
450 .ImageField()
451 .to_representation(self.profile.avatar) …
452 )
453class HoldingAutocompliteSerializer(ModelSerializer):
454 class Meta:
455▶ Local vars
456Variable Value
457obj
458<User: a1-1@kupipai.com.ua>
459self
460UserAutocompliteSerializer([<User: mxp-a3-1@kupipai.com.ua>, <User: mxp-a2@kupipai.com.ua>, <User: mxp-a3-2@kupipai.com.ua>, <User: a4@qwe.qwe>, <User: support@webcase.studio>, <User: a1-1@kupipai.com.ua>, <User: admin@kupipai.com.ua>], context={'request': <rest_framework.request.Request: GET '/api/v1/profile/autocomplite/authors/'>, 'format': None, 'view': <apps.staff.api.views.profile.AuthorsAutocompliteAPIView object>}):
461 id = IntegerField(label='ID', read_only=True)
462 title = SerializerMethodField()
463 avatar = SerializerMethodField()
464Environment:
465
466
467Request Method: GET
468Request URL: https://kupipai.webcase-dev.com/api/v1/profile/autocomplite/authors/
469
470Django Version: 3.2.4
471Python Version: 3.8.10
472Installed Applications:
473['markup',
474 'shared',
475 'apps.announcements',
476 'apps.frontend',
477 'apps.organisation',
478 'apps.menu',
479 'apps.streamblocks',
480 'apps.blog',
481 'apps.action_tracker',
482 'apps.landing',
483 'apps.simplepage',
484 'apps.communication',
485 'apps.faq',
486 'apps.currency_rates',
487 'apps.geo',
488 'apps.staff',
489 'rosetta',
490 'jet',
491 'seo',
492 'modeltranslation',
493 'script_pattern',
494 'django_jinja',
495 'django.contrib.gis',
496 'django.contrib.admin',
497 'dj_template_admin_urls',
498 'django.contrib.auth',
499 'django.contrib.contenttypes',
500 'django.contrib.sessions',
501 'django.contrib.messages',
502 'django.contrib.staticfiles',
503 'django.contrib.sites',
504 'drf_yasg',
505 'des',
506 'django_filters',
507 'parler',
508 'postie',
509 'ckeditor',
510 'ckeditor_uploader',
511 'solo',
512 'adminsortable2',
513 'robots',
514 'webpack_loader',
515 'versatileimagefield',
516 'social_django',
517 'rest_framework',
518 'standards',
519 'mptt',
520 'streamfield',
521 'constance',
522 'constance.backends.database',
523 'constance_register',
524 'drf_recaptcha',
525 'vuejs_translate',
526 'pxd_lingua',
527 'pxd_postgres',
528 'pxd_postgres.ltree',
529 'wcd_geo_db',
530 'wcd_geo_db.contrib.admin',
531 'wcd_geo_db_sources',
532 'wcd_user_checks',
533 'px_access_scopes.contrib.django',
534 'kl_cadastre_sdk']
535Installed Middleware:
536['django.middleware.security.SecurityMiddleware',
537 'django.contrib.sessions.middleware.SessionMiddleware',
538 'shared.middlewares.languages.ForceDefaultLanguageMiddleware',
539 'django.middleware.locale.LocaleMiddleware',
540 'django.middleware.common.CommonMiddleware',
541 'django.middleware.csrf.CsrfViewMiddleware',
542 'django.contrib.auth.middleware.AuthenticationMiddleware',
543 'django.contrib.messages.middleware.MessageMiddleware',
544 'django.middleware.clickjacking.XFrameOptionsMiddleware',
545 'apps.staff.middleware.user_checks_state_middleware',
546 'seo.middleware.url_seo_middleware']
547
548
549
550Traceback (most recent call last):
551 File "/home/kupipai/kupipai/kupipai/server/.venv/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
552 response = get_response(request)
553 File "/home/kupipai/kupipai/kupipai/server/.venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 181, in _get_response
554 response = wrapped_callback(request, *callback_args, **callback_kwargs)
555 File "/home/kupipai/kupipai/kupipai/server/.venv/lib/python3.8/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
556 return view_func(*args, **kwargs)
557 File "/home/kupipai/kupipai/kupipai/server/.venv/lib/python3.8/site-packages/django/views/generic/base.py", line 70, in view
558 return self.dispatch(request, *args, **kwargs)
559 File "/home/kupipai/kupipai/kupipai/server/.venv/lib/python3.8/site-packages/rest_framework/views.py", line 509, in dispatch
560 response = self.handle_exception(exc)
561 File "/home/kupipai/kupipai/kupipai/server/.venv/lib/python3.8/site-packages/rest_framework/views.py", line 469, in handle_exception
562 self.raise_uncaught_exception(exc)
563 File "/home/kupipai/kupipai/kupipai/server/.venv/lib/python3.8/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception
564 raise exc
565 File "/home/kupipai/kupipai/kupipai/server/.venv/lib/python3.8/site-packages/rest_framework/views.py", line 506, in dispatch
566 response = handler(request, *args, **kwargs)
567 File "/home/kupipai/kupipai/kupipai/server/.venv/lib/python3.8/site-packages/rest_framework/generics.py", line 199, in get
568 return self.list(request, *args, **kwargs)
569 File "/home/kupipai/kupipai/kupipai/server/.venv/lib/python3.8/site-packages/rest_framework/mixins.py", line 43, in list
570 return self.get_paginated_response(serializer.data)
571 File "/home/kupipai/kupipai/kupipai/server/.venv/lib/python3.8/site-packages/rest_framework/serializers.py", line 745, in data
572 ret = super().data
573 File "/home/kupipai/kupipai/kupipai/server/.venv/lib/python3.8/site-packages/rest_framework/serializers.py", line 246, in data
574 self._data = self.to_representation(self.instance)
575 File "/home/kupipai/kupipai/kupipai/server/.venv/lib/python3.8/site-packages/rest_framework/serializers.py", line 663, in to_representation
576 return [
577 File "/home/kupipai/kupipai/kupipai/server/.venv/lib/python3.8/site-packages/rest_framework/serializers.py", line 664, in <listcomp>
578 self.child.to_representation(item) for item in iterable
579 File "/home/kupipai/kupipai/kupipai/server/apps/staff/api/serializers/profile.py", line 224, in to_representation
580 return super().to_representation(obj)
581 File "/home/kupipai/kupipai/kupipai/server/.venv/lib/python3.8/site-packages/rest_framework/serializers.py", line 515, in to_representation
582 ret[field.field_name] = field.to_representation(attribute)
583 File "/home/kupipai/kupipai/kupipai/server/.venv/lib/python3.8/site-packages/rest_framework/fields.py", line 1882, in to_representation
584 return method(value)
585 File "/home/kupipai/kupipai/kupipai/server/apps/staff/api/serializers/profile.py", line 260, in get_avatar
586 .to_representation(self.profile.avatar)
587
588Exception Type: AttributeError at /api/v1/profile/autocomplite/authors/
589Exception Value: 'NoneType' object has no attribute 'avatar'
590
591
592
593Request information
594USER
595a1-1@kupipai.com.ua
596
597GET
598No GET data
599
600POST
601No POST data
602
603FILES
604No FILES data
605
606COOKIES
607Variable Value
608sidebar_pinned
609'true'
610tk_or
611'%22%22'
612tk_lr
613'%22%22'
614tk_ai
615'%2Bljmc8nf5368ZXz4exmip88U'
616_gcl_au
617'1.1.57551520.1623683681'
618_ga
619'GA1.1.1326100832.1617199711'
620_ga_PHXB78P82M
621'GS1.1.1623688710.1.1.1623688726.0'
622csrftoken
623'Ty7kVikT7es3g8pLCja6loCaxTXA9eY93AFdZn03AbgtSvHbZLz2drxEUQNU5RM1'
624sessionid
625'86vqbby61mys01on02vhvlfiok87aw8g'
626META
627Variable Value
628CONTENT_TYPE
629'application/json'
630CSRF_COOKIE
631'Ty7kVikT7es3g8pLCja6loCaxTXA9eY93AFdZn03AbgtSvHbZLz2drxEUQNU5RM1'
632HTTP_ACCEPT
633'*/*'
634HTTP_ACCEPT_ENCODING
635'gzip, deflate, br'
636HTTP_CONNECTION
637'close'
638HTTP_COOKIE
639('sidebar_pinned=true; tk_or=%22%22; tk_lr=%22%22; '
640 'tk_ai=%2Bljmc8nf5368ZXz4exmip88U; _gcl_au=1.1.57551520.1623683681; '
641 '_ga=GA1.1.1326100832.1617199711; '
642 '_ga_PHXB78P82M=GS1.1.1623688710.1.1.1623688726.0; '
643 'csrftoken=Ty7kVikT7es3g8pLCja6loCaxTXA9eY93AFdZn03AbgtSvHbZLz2drxEUQNU5RM1; '
644 'sessionid=86vqbby61mys01on02vhvlfiok87aw8g')
645HTTP_DNT
646'1'
647HTTP_HOST
648'kupipai.webcase-dev.com'
649HTTP_REFERER
650'https://kupipai.webcase-dev.com/profile/map/client'
651HTTP_SEC_CH_UA
652'" Not;A Brand";v="99", "Google Chrome";v="91", "Chromium";v="91"'
653HTTP_SEC_CH_UA_MOBILE
654'?0'
655HTTP_SEC_FETCH_DEST
656'empty'
657HTTP_SEC_FETCH_MODE
658'same-origin'
659HTTP_SEC_FETCH_SITE
660'same-origin'
661HTTP_USER_AGENT
662('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like '
663 'Gecko) Chrome/91.0.4472.124 Safari/537.36')
664HTTP_X_CSRFTOKEN
665'********************'
666HTTP_X_FORWARDED_FOR
667'185.248.128.230'
668HTTP_X_FORWARDED_PROTO
669'https'
670HTTP_X_REQUESTED_WITH
671'XMLHttpRequest'
672PATH_INFO
673'/api/v1/profile/autocomplite/authors/'
674QUERY_STRING
675''
676RAW_URI
677'/api/v1/profile/autocomplite/authors/'
678REMOTE_ADDR
679''
680REQUEST_METHOD
681'GET'
682SCRIPT_NAME
683''
684SERVER_NAME
685'kupipai.webcase-dev.com'
686SERVER_PORT
687'443'
688SERVER_PROTOCOL
689'HTTP/1.0'
690SERVER_SOFTWARE
691'gunicorn/20.1.0'
692gunicorn.socket
693<gevent._socket3.socket at 0x7fb35982b7c0 object, fd=8, family=1, type=1, proto=0>
694wsgi.errors
695<gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7fb359970df0>
696wsgi.file_wrapper
697<class 'gunicorn.http.wsgi.FileWrapper'>
698wsgi.input
699<gunicorn.http.body.Body object at 0x7fb3597f46d0>
700wsgi.input_terminated
701True
702wsgi.multiprocess
703True
704wsgi.multithread
705True
706wsgi.run_once
707False
708wsgi.url_scheme
709'https'
710wsgi.version
711(1, 0)
712Settings
713Using settings module app.settings
714Setting Value
715ABSOLUTE_URL_OVERRIDES
716{}
717ADMINS
718[]
719ALLOWED_HOSTS
720['kupipai.webcase-dev.com', 'www.kupipai.webcase-dev.com']
721APPEND_SLASH
722True
723AUTHENTICATION_BACKENDS
724('django.contrib.auth.backends.ModelBackend',
725 'apps.staff.backends.bankid_nbu.BankIDNBU')
726AUTH_PASSWORD_VALIDATORS
727'********************'
728AUTH_USER_MODEL
729'auth.User'
730BASE_DIR
731PosixPath('/home/kupipai/kupipai/kupipai/server/app/settings/default.py')
732BASE_ROOT
733PosixPath('/home/kupipai/kupipai/kupipai/server/app')
734CACHES
735{'default': {'BACKEND': 'django_redis.cache.RedisCache',
736 'LOCATION': 'redis://127.0.0.1:6379/1'}}
737CACHE_MIDDLEWARE_ALIAS
738'default'
739CACHE_MIDDLEWARE_KEY_PREFIX
740'********************'
741CACHE_MIDDLEWARE_SECONDS
742600
743CELERY_ACCEPT_CONTENT
744['json']
745CELERY_BROKER_URL
746'redis://127.0.0.1:6379/0'
747CELERY_RESULT_SERIALIZER
748'json'
749CELERY_TASK_SERIALIZER
750'json'
751CKEDITOR_CONFIGS
752{'default': {'CKEDITOR_BROWSE_SHOW_DIRS': True,
753 'extraPlugins': 'uploadimage,div,autolink,autoembed,embedsemantic,widget,lineutils,clipboard,dialog,dialogui,elementspath,uploadwidget,youtube,lineheight',
754 'line_height': '1; 1.2; 1.3; 1.4; 1.5; 1.6; 1.7; 1.8; 1.9; 2; '
755 '2.2; 2.4; 2.6; 2.8; 3; 4; 5; 6; 7; 10; 16; 20; '
756 '22;',
757 'skin': 'office2013',
758 'tabSpaces': 4,
759 'toolbar': 'YourCustomToolbarConfig',
760 'toolbar_Basic': [['Source', '-', 'Bold', 'Italic']],
761 'toolbar_YourCustomToolbarConfig': [{'items': ['Source',
762 '-',
763 'Save',
764 'NewPage',
765 'Preview',
766 'Print',
767 '-',
768 'Templates'],
769 'name': 'document'},
770 {'items': ['Cut',
771 'Copy',
772 'Paste',
773 'PasteText',
774 'PasteFromWord',
775 '-',
776 'Undo',
777 'Redo'],
778 'name': 'clipboard'},
779 {'items': ['Find',
780 'Replace',
781 '-',
782 'SelectAll'],
783 'name': 'editing'},
784 {'items': ['Form',
785 'Checkbox',
786 'Radio',
787 'TextField',
788 'Textarea',
789 'Select',
790 'Button',
791 'ImageButton',
792 'HiddenField'],
793 'name': 'forms'},
794 '/',
795 {'items': ['Bold',
796 'Italic',
797 'Underline',
798 'Strike',
799 'Subscript',
800 'Superscript',
801 '-',
802 'RemoveFormat'],
803 'name': 'basicstyles'},
804 {'items': ['NumberedList',
805 'BulletedList',
806 '-',
807 'Outdent',
808 'Indent',
809 '-',
810 'Blockquote',
811 'CreateDiv',
812 '-',
813 'JustifyLeft',
814 'JustifyCenter',
815 'JustifyRight',
816 'JustifyBlock',
817 '-',
818 'BidiLtr',
819 'BidiRtl',
820 'Language'],
821 'name': 'paragraph'},
822 {'items': ['Link',
823 'Unlink',
824 'Anchor'],
825 'name': 'links'},
826 {'items': ['Preview',
827 'Maximize'],
828 'name': 'yourcustomtools'},
829 {'items': ['Styles',
830 'Format',
831 'Font',
832 'FontSize',
833 'lineheight'],
834 'name': 'styles'},
835 {'items': ['TextColor',
836 'BGColor'],
837 'name': 'colors'},
838 {'items': ['Maximize',
839 'ShowBlocks'],
840 'name': 'tools'},
841 {'items': ['About'],
842 'name': 'about'},
843 {'items': ['Image',
844 'Flash',
845 'Table',
846 'HorizontalRule',
847 'Smiley',
848 'Youtube',
849 'SpecialChar',
850 'PageBreak',
851 'Iframe'],
852 'name': 'insert'}],
853 'width': 850},
854 'poor': {'height': 70,
855 'skin': 'office2013',
856 'toolbar': ({'items': ['Source',
857 'Styles',
858 'Format',
859 'Font',
860 'FontSize',
861 'Bold',
862 'TextColor',
863 'BGColor'],
864 'name': 'toolbar'},),
865 'width': 600}}
866CKEDITOR_UPLOAD_PATH
867'ckeditor'
868CONSTANCE_ADDITIONAL_FIELDS
869{'file_field': [<class 'django.forms.fields.FileField'>, {}],
870 'group-selection-field': [<class 'django.forms.models.ModelChoiceField'>,
871 {'queryset': <QuerySet [<Group: A1: Service admin>, <Group: A2: Agricultural company>, <Group: A3: Agricultural company Manager>, <Group: A4: Investor>, <Group: A5: Private landlord>, <Group: Service admin (admin)>]>,
872 'required': True}],
873 'image_field': [<class 'django.forms.fields.ImageField'>, {}]}
874CONSTANCE_BACKEND
875'constance.backends.database.DatabaseBackend'
876CONSTANCE_CONFIG
877{'GOOGLE_RECAPTCHA_SECRET_KEY': '********************',
878 'GOOGLE_RECAPTCHA_SITE_KEY': '********************',
879 'PARTNER_MAX_VALUE': (5000000, 'Максимальное значение'),
880 'PARTNER_MIN_VALUE': (4000, 'Минимальное значение'),
881 'STAFF_ADMIN_INITIAL_GROUP': (None,
882 'Default group for admin.',
883 'group-selection-field'),
884 'STAFF_HOLDING_INITIAL_GROUP': (None,
885 'Default group for holding.',
886 'group-selection-field'),
887 'STAFF_HOLDING_MANAGER_INITIAL_GROUP': (None,
888 'Default group for holding manager.',
889 'group-selection-field'),
890 'STAFF_INVESTOR_INITIAL_GROUP': (None,
891 'Default group for investor.',
892 'group-selection-field'),
893 'STAFF_OWNER_INITIAL_GROUP': (None,
894 'Default group for owner.',
895 'group-selection-field'),
896 'TINYPNG_API_KEY': '********************'}
897CONSTANCE_CONFIG_FIELDSETS
898{'Initial user groups': {'collapse': True,
899 'fields': ('STAFF_ADMIN_INITIAL_GROUP',
900 'STAFF_HOLDING_INITIAL_GROUP',
901 'STAFF_HOLDING_MANAGER_INITIAL_GROUP',
902 'STAFF_INVESTOR_INITIAL_GROUP',
903 'STAFF_OWNER_INITIAL_GROUP')},
904 'Partner form': ('PARTNER_MIN_VALUE', 'PARTNER_MAX_VALUE'),
905 'TinyPNG': ('TINYPNG_API_KEY',),
906 'reCaptcha': ('GOOGLE_RECAPTCHA_SITE_KEY', 'GOOGLE_RECAPTCHA_SECRET_KEY')}
907CSRF_COOKIE_AGE
90831449600
909CSRF_COOKIE_DOMAIN
910None
911CSRF_COOKIE_HTTPONLY
912False
913CSRF_COOKIE_NAME
914'csrftoken'
915CSRF_COOKIE_PATH
916'/'
917CSRF_COOKIE_SAMESITE
918'Lax'
919CSRF_COOKIE_SECURE
920True
921CSRF_FAILURE_VIEW
922'django.views.csrf.csrf_failure'
923CSRF_HEADER_NAME
924'HTTP_X_CSRFTOKEN'
925CSRF_TRUSTED_ORIGINS
926[]
927CSRF_USE_SESSIONS
928False
929DATABASES
930{'default': {'ATOMIC_REQUESTS': False,
931 'AUTOCOMMIT': True,
932 'CONN_MAX_AGE': 0,
933 'ENGINE': 'django.contrib.gis.db.backends.postgis',
934 'HOST': '127.0.0.1',
935 'NAME': 'kupipai_db',
936 'OPTIONS': {},
937 'PASSWORD': '********************',
938 'PORT': 5432,
939 'TEST': {'CHARSET': None,
940 'COLLATION': None,
941 'MIGRATE': True,
942 'MIRROR': None,
943 'NAME': None},
944 'TIME_ZONE': None,
945 'USER': 'kupipai_db'}}
946DATABASE_ROUTERS
947[]
948DATA_UPLOAD_MAX_MEMORY_SIZE
9492621440
950DATA_UPLOAD_MAX_NUMBER_FIELDS
9511000
952DATETIME_FORMAT
953'N j, Y, P'
954DATETIME_INPUT_FORMATS
955['%Y-%m-%d %H:%M:%S',
956 '%Y-%m-%d %H:%M:%S.%f',
957 '%Y-%m-%d %H:%M',
958 '%m/%d/%Y %H:%M:%S',
959 '%m/%d/%Y %H:%M:%S.%f',
960 '%m/%d/%Y %H:%M',
961 '%m/%d/%y %H:%M:%S',
962 '%m/%d/%y %H:%M:%S.%f',
963 '%m/%d/%y %H:%M']
964DATE_FORMAT
965'N j, Y'
966DATE_INPUT_FORMATS
967['%Y-%m-%d',
968 '%m/%d/%Y',
969 '%m/%d/%y',
970 '%b %d %Y',
971 '%b %d, %Y',
972 '%d %b %Y',
973 '%d %b, %Y',
974 '%B %d %Y',
975 '%B %d, %Y',
976 '%d %B %Y',
977 '%d %B, %Y']
978DEBUG
979True
980DEBUG_PROPAGATE_EXCEPTIONS
981False
982DECIMAL_SEPARATOR
983'.'
984DEFAULT_AUTO_FIELD
985'django.db.models.AutoField'
986DEFAULT_CHARSET
987'utf-8'
988DEFAULT_EXCEPTION_REPORTER
989'django.views.debug.ExceptionReporter'
990DEFAULT_EXCEPTION_REPORTER_FILTER
991'django.views.debug.SafeExceptionReporterFilter'
992DEFAULT_EXTENSIONS
993['jinja2.ext.do',
994 'jinja2.ext.loopcontrols',
995 'jinja2.ext.i18n',
996 'django_jinja.builtins.extensions.DebugExtension',
997 'django_jinja.builtins.extensions.CsrfExtension',
998 'django_jinja.builtins.extensions.CacheExtension',
999 'django_jinja.builtins.extensions.TimezoneExtension',
1000 'django_jinja.builtins.extensions.UrlsExtension',
1001 'django_jinja.builtins.extensions.StaticFilesExtension',
1002 'django_jinja.builtins.extensions.DjangoFiltersExtension']
1003DEFAULT_FILE_STORAGE
1004'django.core.files.storage.FileSystemStorage'
1005DEFAULT_FROM_EMAIL
1006'admin@admin.admin'
1007DEFAULT_HASHING_ALGORITHM
1008'sha256'
1009DEFAULT_INDEX_TABLESPACE
1010''
1011DEFAULT_TABLESPACE
1012''
1013DISALLOWED_USER_AGENTS
1014[]
1015DRF_RECAPTCHA_SECRET_KEY
1016'********************'
1017DRF_RECAPTCHA_TESTING
1018True
1019EMAIL_BACKEND
1020'django.core.mail.backends.console.EmailBackend'
1021EMAIL_CONFIG
1022{'EMAIL_BACKEND': 'django.core.mail.backends.console.EmailBackend',
1023 'EMAIL_FILE_PATH': '',
1024 'EMAIL_HOST': '127.0.0.1',
1025 'EMAIL_HOST_PASSWORD': '********************',
1026 'EMAIL_HOST_USER': None,
1027 'EMAIL_PORT': None}
1028EMAIL_FILE_PATH
1029''
1030EMAIL_HOST
1031'127.0.0.1'
1032EMAIL_HOST_PASSWORD
1033'********************'
1034EMAIL_HOST_USER
1035None
1036EMAIL_PORT
1037None
1038EMAIL_SSL_CERTFILE
1039None
1040EMAIL_SSL_KEYFILE
1041'********************'
1042EMAIL_SUBJECT_PREFIX
1043'[Django] '
1044EMAIL_TIMEOUT
1045None
1046EMAIL_USE_LOCALTIME
1047False
1048EMAIL_USE_SSL
1049False
1050EMAIL_USE_TLS
1051False
1052ENABLE_SSL
1053True
1054E_LAND_GOV_ID
1055'981_6cs0dtccejgg4c84g004o8cgg0w88os40ocgswsow0so0s8cwo'
1056E_LAND_GOV_SECRET
1057'********************'
1058FILE_CHARSET
1059'utf-8'
1060FILE_UPLOAD_DIRECTORY_PERMISSIONS
1061509
1062FILE_UPLOAD_HANDLERS
1063['django.core.files.uploadhandler.MemoryFileUploadHandler',
1064 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
1065FILE_UPLOAD_MAX_MEMORY_SIZE
10662621440
1067FILE_UPLOAD_PERMISSIONS
1068509
1069FILE_UPLOAD_TEMP_DIR
1070None
1071FIRST_DAY_OF_WEEK
10720
1073FIXTURE_DIRS
1074[]
1075FORCE_SCRIPT_NAME
1076None
1077FORMAT_MODULE_PATH
1078None
1079FORM_RENDERER
1080'django.forms.renderers.DjangoTemplates'
1081GOOGLE_RECAPTCHA_SECRET_KEY
1082'********************'
1083GOOGLE_RECAPTCHA_SITE_KEY
1084'********************'
1085GUNICORN_PID
1086'/run/kupipai_gunicorn/kupipai_gunicorn.pid'
1087HOME_URL
1088'/'
1089IGNORABLE_404_URLS
1090[]
1091IMAGE_DEFAULT_RENDITION_KEY_SET
1092'********************'
1093INSTALLED_APPS
1094['markup',
1095 'shared',
1096 'apps.announcements',
1097 'apps.frontend',
1098 'apps.organisation',
1099 'apps.menu',
1100 'apps.streamblocks',
1101 'apps.blog',
1102 'apps.action_tracker',
1103 'apps.landing',
1104 'apps.simplepage',
1105 'apps.communication',
1106 'apps.faq',
1107 'apps.currency_rates',
1108 'apps.geo',
1109 'apps.staff',
1110 'rosetta',
1111 'jet',
1112 'seo',
1113 'modeltranslation',
1114 'script_pattern',
1115 'django_jinja',
1116 'django.contrib.gis',
1117 'django.contrib.admin',
1118 'dj_template_admin_urls',
1119 'django.contrib.auth',
1120 'django.contrib.contenttypes',
1121 'django.contrib.sessions',
1122 'django.contrib.messages',
1123 'django.contrib.staticfiles',
1124 'django.contrib.sites',
1125 'drf_yasg',
1126 'des',
1127 'django_filters',
1128 'parler',
1129 'postie',
1130 'ckeditor',
1131 'ckeditor_uploader',
1132 'solo',
1133 'adminsortable2',
1134 'robots',
1135 'webpack_loader',
1136 'versatileimagefield',
1137 'social_django',
1138 'rest_framework',
1139 'standards',
1140 'mptt',
1141 'streamfield',
1142 'constance',
1143 'constance.backends.database',
1144 'constance_register',
1145 'drf_recaptcha',
1146 'vuejs_translate',
1147 'pxd_lingua',
1148 'pxd_postgres',
1149 'pxd_postgres.ltree',
1150 'wcd_geo_db',
1151 'wcd_geo_db.contrib.admin',
1152 'wcd_geo_db_sources',
1153 'wcd_user_checks',
1154 'px_access_scopes.contrib.django',
1155 'kl_cadastre_sdk']
1156INTERNAL_IPS
1157[]
1158JET_SIDE_MENU_COMPACT
1159True
1160LANGUAGES
1161(('uk', 'Ukranian'), ('ru', 'Russian'))
1162LANGUAGES_BIDI
1163['he', 'ar', 'ar-dz', 'fa', 'ur']
1164LANGUAGE_CODE
1165'uk'
1166LANGUAGE_CODES_TRANSLATABLE
1167{'ru': 'RU', 'uk': 'UK'}
1168LANGUAGE_COOKIE_AGE
1169None
1170LANGUAGE_COOKIE_DOMAIN
1171None
1172LANGUAGE_COOKIE_HTTPONLY
1173False
1174LANGUAGE_COOKIE_NAME
1175'django_language'
1176LANGUAGE_COOKIE_PATH
1177'/'
1178LANGUAGE_COOKIE_SAMESITE
1179None
1180LANGUAGE_COOKIE_SECURE
1181False
1182LANG_EXCLUDE_URLS
1183('/streamfield/',)
1184LOCALE_PATHS
1185(PosixPath('/home/kupipai/kupipai/kupipai/server/app/locale'),)
1186LOGGING
1187{'disable_existing_loggers': False,
1188 'handlers': {'console': {'class': 'logging.StreamHandler', 'level': 'DEBUG'},
1189 'logfile': {'class': 'logging.FileHandler',
1190 'filename': PosixPath('/home/kupipai/kupipai/kupipai/server/app/settings/default.py/../logfile.log'),
1191 'level': 'DEBUG'}},
1192 'root': {'handlers': ['console', 'logfile'], 'level': 'INFO'},
1193 'version': 1}
1194LOGGING_CONFIG
1195'logging.config.dictConfig'
1196LOGIN_REDIRECT_URL
1197'/accounts/profile/'
1198LOGIN_URL
1199'/accounts/login/'
1200LOGOUT_REDIRECT_URL
1201None
1202MANAGERS
1203[]
1204MEDIA_ROOT
1205PosixPath('/home/kupipai/kupipai/kupipai/server/app/uploads')
1206MEDIA_URL
1207'/uploads/'
1208MESSAGE_STORAGE
1209'django.contrib.messages.storage.fallback.FallbackStorage'
1210MIDDLEWARE
1211['django.middleware.security.SecurityMiddleware',
1212 'django.contrib.sessions.middleware.SessionMiddleware',
1213 'shared.middlewares.languages.ForceDefaultLanguageMiddleware',
1214 'django.middleware.locale.LocaleMiddleware',
1215 'django.middleware.common.CommonMiddleware',
1216 'django.middleware.csrf.CsrfViewMiddleware',
1217 'django.contrib.auth.middleware.AuthenticationMiddleware',
1218 'django.contrib.messages.middleware.MessageMiddleware',
1219 'django.middleware.clickjacking.XFrameOptionsMiddleware',
1220 'apps.staff.middleware.user_checks_state_middleware',
1221 'seo.middleware.url_seo_middleware']
1222MIGRATION_MODULES
1223{}
1224MODELTRANSLATION_DEFAULT_LANGUAGE
1225'uk'
1226MONTH_DAY_FORMAT
1227'F j'
1228NUMBER_GROUPING
12290
1230PASSWORD_HASHERS
1231'********************'
1232PASSWORD_RESET_TIMEOUT
1233'********************'
1234PASSWORD_RESET_TIMEOUT_DAYS
1235'********************'
1236POSTIE_HTML_ADMIN_WIDGET
1237{'attrs': {},
1238 'widget': 'CKEditorUploadingWidget',
1239 'widget_module': 'ckeditor_uploader.widgets'}
1240POSTIE_INSTANT_SEND
1241False
1242POSTIE_TEMPLATE_CHOICES
1243Choices(('password_reset_confirm', 'password_reset_confirm', 'Confirm password reset'), ('email_address_confirmation', 'email_address_confirmation', 'Confirm email'))
1244POSTIE_TEMPLATE_CONTEXTS
1245{'email_address_confirmation': {'link': 'Confirmation link', 'name': 'Name'},
1246 'password_reset_confirm': '********************'}
1247PREPEND_WWW
1248False
1249PROJECT_APPS
1250['markup',
1251 'shared',
1252 'apps.announcements',
1253 'apps.frontend',
1254 'apps.organisation',
1255 'apps.menu',
1256 'apps.streamblocks',
1257 'apps.blog',
1258 'apps.action_tracker',
1259 'apps.landing',
1260 'apps.simplepage',
1261 'apps.communication',
1262 'apps.faq',
1263 'apps.currency_rates',
1264 'apps.geo',
1265 'apps.staff']
1266PX_ACCESS_TOKENS_AGGREGATES
1267'********************'
1268PX_ACCESS_TOKENS_REGISTRIES
1269'********************'
1270REST_FRAMEWORK
1271{'DATETIME_FORMAT': 'iso-8601',
1272 'DATETIME_INPUT_FORMATS': ['iso-8601'],
1273 'DATE_FORMAT': 'iso-8601',
1274 'DATE_INPUT_FORMATS': ['iso-8601'],
1275 'DEFAULT_AUTHENTICATION_CLASSES': ['rest_framework.authentication.BasicAuthentication',
1276 'rest_framework.authentication.SessionAuthentication'],
1277 'DEFAULT_FILTER_BACKENDS': ['standards.filters.backends.DjangoFilterBackend'],
1278 'DEFAULT_METADATA_CLASS': 'standards.drf.metadata.FieldsetMetadata',
1279 'DEFAULT_PARSER_CLASSES': ('standards.drf.parsers.CamelCaseORJSONParser',
1280 'djangorestframework_camel_case.parser.CamelCaseFormParser',
1281 'djangorestframework_camel_case.parser.CamelCaseMultiPartParser'),
1282 'DEFAULT_PERMISSION_CLASSES': ['rest_framework.permissions.AllowAny'],
1283 'DEFAULT_RENDERER_CLASSES': ('standards.drf.renderers.CamelCaseORJSONRenderer',
1284 'djangorestframework_camel_case.render.CamelCaseBrowsableAPIRenderer'),
1285 'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.coreapi.AutoSchema',
1286 'EXCEPTION_HANDLER': 'standards.drf.handlers.exception_handler',
1287 'PAGE_PARAM': 'page',
1288 'SEARCH_PARAM': 'query',
1289 'TIME_FORMAT': 'iso-8601',
1290 'TIME_INPUT_FORMATS': ['iso-8601']}
1291ROOT_URLCONF
1292'app.urls'
1293ROSETTA_CACHE_NAME
1294'default'
1295ROSETTA_SHOW_AT_ADMIN_PANEL
1296True
1297ROSETTA_STORAGE_CLASS
1298'rosetta.storage.CacheRosettaStorage'
1299SECRET_KEY
1300'********************'
1301SECURE_BROWSER_XSS_FILTER
1302False
1303SECURE_CONTENT_TYPE_NOSNIFF
1304True
1305SECURE_HSTS_INCLUDE_SUBDOMAINS
1306False
1307SECURE_HSTS_PRELOAD
1308False
1309SECURE_HSTS_SECONDS
13100
1311SECURE_PROXY_SSL_HEADER
1312('HTTP_X_FORWARDED_PROTO', 'https')
1313SECURE_REDIRECT_EXEMPT
1314[]
1315SECURE_REFERRER_POLICY
1316'same-origin'
1317SECURE_SSL_HOST
1318None
1319SECURE_SSL_REDIRECT
1320False
1321SEO_DEBUG_MODE
1322True
1323SEO_HTML_ADMIN_WIDGET
1324{'widget': 'CKEditorWidget', 'widget_path': 'ckeditor.widgets'}
1325SEO_MODELS
1326['landing.landingpage',
1327 'landing.agricalturallandingpage',
1328 'landing.investorlandingpage',
1329 'landing.landownerlandingpage',
1330 'blog.post',
1331 'simplepage.page',
1332 'simplepage.contactpage']
1333SEO_USE_URL_SEO
1334True
1335SERVER_EMAIL
1336'root@localhost'
1337SESSION_CACHE_ALIAS
1338'default'
1339SESSION_COOKIE_AGE
13401209600
1341SESSION_COOKIE_DOMAIN
1342None
1343SESSION_COOKIE_HTTPONLY
1344True
1345SESSION_COOKIE_NAME
1346'sessionid'
1347SESSION_COOKIE_PATH
1348'/'
1349SESSION_COOKIE_SAMESITE
1350'Lax'
1351SESSION_COOKIE_SECURE
1352True
1353SESSION_ENGINE
1354'django.contrib.sessions.backends.db'
1355SESSION_EXPIRE_AT_BROWSER_CLOSE
1356False
1357SESSION_FILE_PATH
1358None
1359SESSION_SAVE_EVERY_REQUEST
1360False
1361SESSION_SERIALIZER
1362'django.contrib.sessions.serializers.JSONSerializer'
1363SETTINGS_MODULE
1364'app.settings'
1365SHORT_DATETIME_FORMAT
1366'm/d/Y P'
1367SHORT_DATE_FORMAT
1368'm/d/Y'
1369SIGNING_BACKEND
1370'django.core.signing.TimestampSigner'
1371SILENCED_SYSTEM_CHECKS
1372[]
1373SITE_ID
13741
1375SOCIAL_AUTH_BANKID_NBU_BEBUG
1376True
1377SOCIAL_AUTH_BANKID_NBU_DEBUG
1378True
1379SOCIAL_AUTH_BANKID_NBU_KEY
1380'********************'
1381SOCIAL_AUTH_BANKID_NBU_SECRET
1382'********************'
1383SOCIAL_AUTH_PIPELINE
1384('social_core.pipeline.social_auth.social_details',
1385 'social_core.pipeline.social_auth.social_uid',
1386 'social_core.pipeline.social_auth.auth_allowed',
1387 'social_core.pipeline.social_auth.social_user',
1388 'social_core.pipeline.user.get_username',
1389 'social_core.pipeline.social_auth.associate_by_email',
1390 'social_core.pipeline.user.create_user',
1391 'social_core.pipeline.social_auth.associate_user',
1392 'social_core.pipeline.social_auth.load_extra_data',
1393 'social_core.pipeline.user.user_details')
1394SOCIAL_AUTH_POSTGRES_JSONFIELD
1395True
1396SOCIAL_AUTH_URL_NAMESPACE
1397'social'
1398STATICFILES_DIRS
1399[]
1400STATICFILES_FINDERS
1401['django.contrib.staticfiles.finders.FileSystemFinder',
1402 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
1403STATICFILES_STORAGE
1404'markup.storages.DjsManifestStaticFilesStorage'
1405STATIC_ROOT
1406PosixPath('/home/kupipai/kupipai/kupipai/server/app/static')
1407STATIC_URL
1408'/static/'
1409STREAMFIELD_STREAMBLOCKS_APP_PATH
1410'apps.streamblocks'
1411TEMPLATES
1412[{'APP_DIRS': True,
1413 'BACKEND': 'django_jinja.backend.Jinja2',
1414 'DIRS': [],
1415 'NAME': 'jinja2',
1416 'OPTIONS': {'auto_reload': True,
1417 'bytecode_cache': {'backend': 'django_jinja.cache.BytecodeCache',
1418 'enabled': True,
1419 'name': 'default'},
1420 'context_processors': ['django.contrib.auth.context_processors.auth',
1421 'django.template.context_processors.debug',
1422 'django.template.context_processors.i18n',
1423 'django.template.context_processors.media',
1424 'django.template.context_processors.static',
1425 'django.template.context_processors.tz',
1426 'django.contrib.messages.context_processors.messages',
1427 'apps.organisation.context_processors.organisation_data.data',
1428 'apps.menu.context_processors.menu_data.data',
1429 'shared.context_processors.languages.data',
1430 'shared.context_processors.re_captcha.data',
1431 'apps.communication.context_processors.modals.data',
1432 'apps.staff.context_processors.user_checks_state'],
1433 'debug': True,
1434 'environment': 'shared.env.jinja2.environment',
1435 'extensions': ['jinja2.ext.do',
1436 'jinja2.ext.loopcontrols',
1437 'jinja2.ext.i18n',
1438 'django_jinja.builtins.extensions.DebugExtension',
1439 'django_jinja.builtins.extensions.CsrfExtension',
1440 'django_jinja.builtins.extensions.CacheExtension',
1441 'django_jinja.builtins.extensions.TimezoneExtension',
1442 'django_jinja.builtins.extensions.UrlsExtension',
1443 'django_jinja.builtins.extensions.StaticFilesExtension',
1444 'django_jinja.builtins.extensions.DjangoFiltersExtension',
1445 'webpack_loader.contrib.jinja2ext.WebpackExtension'],
1446 'filters': {},
1447 'globals': {},
1448 'match_extension': '.jinja',
1449 'newstyle_gettext': True,
1450 'undefined': <class 'jinja2.runtime.ChainableUndefined'>}},
1451 {'APP_DIRS': True,
1452 'BACKEND': 'django.template.backends.django.DjangoTemplates',
1453 'DIRS': [],
1454 'OPTIONS': {'context_processors': ['django.template.context_processors.media',
1455 'django.template.context_processors.static',
1456 'django.template.context_processors.debug',
1457 'django.template.context_processors.request',
1458 'django.contrib.messages.context_processors.messages',
1459 'django.contrib.auth.context_processors.auth']}}]
1460TEST_NON_SERIALIZED_APPS
1461[]
1462TEST_RUNNER
1463'django.test.runner.DiscoverRunner'
1464THOUSAND_SEPARATOR
1465','
1466TIME_FORMAT
1467'P'
1468TIME_INPUT_FORMATS
1469['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
1470TIME_ZONE
1471'UTC'
1472TINYPNG_API_KEY
1473'********************'
1474USE_I18N
1475True
1476USE_L10N
1477True
1478USE_THOUSAND_SEPARATOR
1479False
1480USE_TZ
1481True
1482USE_X_FORWARDED_HOST
1483False
1484USE_X_FORWARDED_PORT
1485False
1486VERSATILEIMAGEFIELD_RENDITION_KEY_SETS
1487'********************'
1488WCD_GEO_DBSOURCES
1489{'SOURCE_IMPORT_RUNNERS': ('wcd_geo_db_sources.sources.katottg.process.KATOTTGImportRunner',
1490 'wcd_geo_db_sources.sources.katottg_to_koatuu.process.KATOTTG_TO_KOATUUImportRunner')}
1491WCD_USER_CHECKS
1492{'CACHE': 'default',
1493 'DEFINITIONS': None,
1494 'REGISTRY': 'wcd_user_checks.globals.registry'}
1495WCD_USER_CHECKS_DEFINITIONS
1496['wcd_user_checks.builtins.MANUAL_CHECK_DEFINITION',
1497 'apps.staff.checks.REGISTRATION_EMAIL',
1498 'apps.staff.checks.REGISTRATION_VERIFICATION']
1499WEBPACK_LOADER
1500{'DEFAULT': {'STATS_FILE': PosixPath('/home/kupipai/kupipai/kupipai/server/apps/frontend/static/frontend/webpack-stats.json')}}
1501WSGI_APPLICATION
1502'app.wsgi.application'
1503X_FRAME_OPTIONS
1504'SAMEORIGIN'
1505YEAR_MONTH_FORMAT
1506'F Y'
1507You’re seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard page generated by the handler for this status code.