Error in 5xx pages
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/utils/deprecation.py", line 117, in __call__
response = response or self.get_response(request)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/newrelic/hooks/framework_django.py", line 1205, in _wrapper
return wrapped(*args, **kwargs)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/core/handlers/exception.py", line 49, in inner
response = response_for_exception(request, exc)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/core/handlers/exception.py", line 114, in response_for_exception
response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/newrelic/hooks/framework_django.py", line 508, in wrapper
return _wrapped(*args, **kwargs)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/newrelic/hooks/framework_django.py", line 501, in _wrapped
return wrapped(request, resolver, exc_info)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/core/handlers/exception.py", line 153, in handle_uncaught_exception
return callback(request)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/newrelic/hooks/framework_django.py", line 562, in wrapper
return wrapped(*args, **kwargs)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/utils/decorators.py", line 130, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/views/defaults.py", line 97, in server_error
return HttpResponseServerError(template.render())
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/backends/django.py", line 61, in render
return self.template.render(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/base.py", line 170, in render
return self._render(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/test/utils.py", line 100, in instrumented_test_render
return self.nodelist.render(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/base.py", line 938, in render
bit = node.render_annotated(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/base.py", line 905, in render_annotated
return self.render(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/loader_tags.py", line 150, in render
return compiled_parent._render(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/test/utils.py", line 100, in instrumented_test_render
return self.nodelist.render(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/base.py", line 938, in render
bit = node.render_annotated(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/base.py", line 905, in render_annotated
return self.render(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/loader_tags.py", line 195, in render
return template.render(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/base.py", line 172, in render
return self._render(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/test/utils.py", line 100, in instrumented_test_render
return self.nodelist.render(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/base.py", line 938, in render
bit = node.render_annotated(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/base.py", line 905, in render_annotated
return self.render(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/library.py", line 192, in render
output = self.func(*resolved_args, **resolved_kwargs)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/menu_generator/templatetags/menu_generator.py", line 31, in get_menu
return generate_menu(context['request'], menu_list)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/context.py", line 83, in __getitem__
raise KeyError(key)
KeyError: 'request'
Edited by Nik | Klampfradler