atviriduomenys / katalogas

Lietuvos atvirų duomenų katalogas (data.gov.lt).
14 stars 2 forks source link

Klaida 500: administravimo aplinkoje #994

Open IngaIVPK opened 8 months ago

IngaIVPK commented 8 months ago

Pasirinkus VITRINA_MESSAGES -> Subscriptions (1), meta 500 klaidą (2) (1) image

(2) https://test.data.gov.lt/admin/vitrina_messages/subscription/ image

Faustasm commented 8 months ago
 Forbidden (Permission denied): /admin/vitrina_messages/subscription/
 Traceback (most recent call last):
   File "/X/site-packages/django/core/handlers/exception.py", line 47, in inner
     response = get_response(request)
                ^^^^^^^^^^^^^^^^^^^^^
   File "/X/site-packages/django/core/handlers/base.py", line 181, in _get_response
     response = wrapped_callback(request, *callback_args, **callback_kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/X/site-packages/django/contrib/admin/options.py", line 616, in wrapper
     return self.admin_site.admin_view(view)(*args, **kwargs)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/X/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
     response = view_func(request, *args, **kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/X/site-packages/django/views/decorators/cache.py", line 44, in _wrapped_view_func
     response = view_func(request, *args, **kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/X/site-packages/django/contrib/admin/sites.py", line 232, in inner
     return view(request, *args, **kwargs)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/X/site-packages/django/utils/decorators.py", line 43, in _wrapper
     return bound_method(*args, **kwargs)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/X/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
     response = view_func(request, *args, **kwargs)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/X/site-packages/django/contrib/admin/options.py", line 1694, in changelist_view
     raise PermissionDenied
 django.core.exceptions.PermissionDenied
ATEAanalyst commented 4 months ago

@JuliusLADP ar galite pabandyti gamyboje, ar gaunama ta pati klaida?

IngaIVPK commented 4 months ago

Patikrinta. Server error500 ir gamybinėje aplinkoje: https://data.gov.lt/admin/vitrina_messages/subscription/ image

rugile-domeikaite commented 3 months ago

`Internal Server Error: /admin/vitrina_messages/subscription/ Traceback (most recent call last): File "/opt/venv/lib/python3.11/site-packages/django/contrib/admin/utils.py", line 265, in lookup_field f = _get_non_gfk_field(opts, name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/contrib/admin/utils.py", line 300, in _get_non_gfk_field raise FieldDoesNotExist() django.core.exceptions.FieldDoesNotExist

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/opt/venv/lib/python3.11/site-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request) ^^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/core/handlers/base.py", line 204, in _get_response response = response.render() ^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/template/response.py", line 105, in render self.content = self.rendered_content ^^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/template/response.py", line 83, in rendered_content return template.render(context, self._request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/template/backends/django.py", line 61, in render return self.template.render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/template/base.py", line 170, in render return self._render(context) ^^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/template/base.py", line 162, in _render return self.nodelist.render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/template/base.py", line 938, in render bit = node.render_annotated(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/template/base.py", line 905, in render_annotated return self.render(context) ^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/template/loader_tags.py", line 150, in render return compiled_parent._render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/template/base.py", line 162, in _render return self.nodelist.render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/template/base.py", line 938, in render bit = node.render_annotated(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/template/base.py", line 905, in render_annotated return self.render(context) ^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/template/loader_tags.py", line 150, in render return compiled_parent._render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/template/base.py", line 162, in _render return self.nodelist.render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/template/base.py", line 938, in render bit = node.render_annotated(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/template/base.py", line 905, in render_annotated return self.render(context) ^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/template/loader_tags.py", line 62, in render result = block.nodelist.render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/template/base.py", line 938, in render bit = node.render_annotated(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/template/base.py", line 905, in render_annotated return self.render(context) ^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/template/loader_tags.py", line 62, in render result = block.nodelist.render(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/template/base.py", line 938, in render bit = node.render_annotated(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/template/base.py", line 905, in render_annotated return self.render(context) ^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/contrib/admin/templatetags/base.py", line 33, in render return super().render(context) ^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/template/library.py", line 214, in render _dict = self.func(*resolved_args, *resolved_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/contrib/admin/templatetags/admin_list.py", line 308, in result_list 'results': list(results(cl)), ^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/contrib/admin/templatetags/admin_list.py", line 284, in results yield ResultList(None, items_for_result(cl, res, None)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/contrib/admin/templatetags/admin_list.py", line 275, in init super().init(items) File "/opt/venv/lib/python3.11/site-packages/django/contrib/admin/templatetags/admin_list.py", line 200, in items_for_result f, attr, value = lookup_field(field_name, result, cl.model_admin) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/django/contrib/admin/utils.py", line 274, in lookup_field value = attr(obj) ^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/vitrina/messages/admin.py", line 18, in content_object obj.content_object.get_absolute_url(), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/vitrina/comments/models.py", line 87, in get_absolute_url return self.content_object.get_absolute_url() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'RequestAssignment' object has no attribute 'get_absolute_url'`