Dockerized Django admin failing

I've no idea where to go with this as its deep into the admin templates. I haven't touched any of it, obviously. This is a project I am moving over to a django container. It worked in the VM just fine. Full server logs below this image...

enter image description here

Header error:

dcdc_django    | Internal Server Error: /admin/mainapp/divesite/add/
dcdc_django    | Traceback (most recent call last):
dcdc_django    |   File "/usr/local/lib/python3.14/site-packages/django/core/handlers/exception.py", line 55, in inner
dcdc_django    |     response = get_response(request)
dcdc_django    |   File "/usr/local/lib/python3.14/site-packages/django/core/handlers/base.py", line 220, in _get_response
dcdc_django    |     response = response.render()
dcdc_django    |   File "/usr/local/lib/python3.14/site-packages/django/template/response.py", line 114, in render
dcdc_django    |     self.content = self.rendered_content
dcdc_django    |                    ^^^^^^^^^^^^^^^^^^^^^
dcdc_django    |   File "/usr/local/lib/python3.14/site-packages/django/template/response.py", line 92, in rendered_content
dcdc_django    |     return template.render(context, self._request)
dcdc_django    |            ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
dcdc_django    |   File "/usr/local/lib/python3.14/site-packages/django/template/backends/django.py", line 107, in render
dcdc_django    |     return self.template.render(context)
dcdc_django    |            ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
dcdc_django    |   File "/usr/local/lib/python3.14/site-packages/django/template/base.py", line 171, in render
dcdc_django    |     return self._render(context)
dcdc_django    |            ~~~~~~~~~~~~^^^^^^^^^
dcdc_django    |   File "/usr/local/lib/python3.14/site-packages/django/test/utils.py", line 114, in instrumented_test_render
dcdc_django    |     return self.nodelist.render(context)
dcdc_django    |            ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
dcdc_django    |   File "/usr/local/lib/python3.14/site-packages/django/template/base.py", line 1008, in render
dcdc_django    |     return SafeString("".join([node.render_annotated(context) for node in self]))
dcdc_django    |                                ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
dcdc_django    |   File "/usr/local/lib/python3.14/site-packages/django/template/base.py", line 969, in render_annotated
dcdc_django    |     return self.render(context)
dcdc_django    |            ~~~~~~~~~~~^^^^^^^^^
dcdc_django    |   File "/usr/local/lib/python3.14/site-packages/django/template/loader_tags.py", line 159, in render
dcdc_django    |     return compiled_parent._render(context)
dcdc_django    |            ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
dcdc_django    |   File "/usr/local/lib/python3.14/site-packages/django/test/utils.py", line 114, in instrumented_test_render
dcdc_django    |     return self.nodelist.render(context)
dcdc_django    |            ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
dcdc_django    |   File "/usr/local/lib/python3.14/site-packages/django/template/base.py", line 1008, in render
dcdc_django    |     return SafeString("".join([node.render_annotated(context) for node in self]))
dcdc_django    |                                ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
dcdc_django    |   File "/usr/local/lib/python3.14/site-packages/django/template/base.py", line 969, in render_annotated
dcdc_django    |     return self.render(context)
dcdc_django    |            ~~~~~~~~~~~^^^^^^^^^
dcdc_django    |   File "/usr/local/lib/python3.14/site-packages/django/template/loader_tags.py", line 159, in render
dcdc_django    |     return compiled_parent._render(context)
dcdc_django    |            ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
dcdc_django    |   File "/usr/local/lib/python3.14/site-packages/django/test/utils.py", line 114, in instrumented_test_render
dcdc_django    |     return self.nodelist.render(context)
dcdc_django    |            ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
dcdc_django    |   File "/usr/local/lib/python3.14/site-packages/django/template/base.py", line 1008, in render
dcdc_django    |     return SafeString("".join([node.render_annotated(context) for node in self]))
dcdc_django    |                                ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
dcdc_django    |   File "/usr/local/lib/python3.14/site-packages/django/template/base.py", line 969, in render_annotated
dcdc_django    |     return self.render(context)
dcdc_django    |            ~~~~~~~~~~~^^^^^^^^^
dcdc_django    |   File "/usr/local/lib/python3.14/site-packages/django/template/loader_tags.py", line 65, in render
dcdc_django    |     result = block.nodelist.render(context)
dcdc_django    |   File "/usr/local/lib/python3.14/site-packages/django/template/base.py", line 1008, in render
dcdc_django    |     return SafeString("".join([node.render_annotated(context) for node in self]))
dcdc_django    |                                ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
dcdc_django    |   File "/usr/local/lib/python3.14/site-packages/django/template/base.py", line 969, in render_annotated
dcdc_django    |     return self.render(context)
dcdc_django    |            ~~~~~~~~~~~^^^^^^^^^
dcdc_django    |   File "/usr/local/lib/python3.14/site-packages/django/template/loader_tags.py", line 65, in render
dcdc_django    |     result = block.nodelist.render(context)
dcdc_django    |   File "/usr/local/lib/python3.14/site-packages/django/template/base.py", line 1008, in render
dcdc_django    |     return SafeString("".join([node.render_annotated(context) for node in self]))
dcdc_django    |                                ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
dcdc_django    |   File "/usr/local/lib/python3.14/site-packages/django/template/base.py", line 969, in render_annotated
dcdc_django    |     return self.render(context)
dcdc_django    |            ~~~~~~~~~~~^^^^^^^^^
dcdc_django    |   File "/usr/local/lib/python3.14/site-packages/django/contrib/admin/templatetags/base.py", line 45, in render
dcdc_django    |     return super().render(context)
dcdc_django    |            ~~~~~~~~~~~~~~^^^^^^^^^
dcdc_django    |   File "/usr/local/lib/python3.14/site-packages/django/template/library.py", line 273, in render
dcdc_django    |     new_context = context.new(_dict)
dcdc_django    |   File "/usr/local/lib/python3.14/site-packages/django/template/context.py", line 275, in new
dcdc_django    |     new_context = super().new(values)
dcdc_django    |   File "/usr/local/lib/python3.14/site-packages/django/template/context.py", line 112, in new
dcdc_django    |     new_context = copy(self)
dcdc_django    |   File "/usr/local/lib/python3.14/copy.py", line 82, in copy
dcdc_django    |     return copier(x)
dcdc_django    |   File "/usr/local/lib/python3.14/site-packages/django/template/context.py", line 160, in __copy__
dcdc_django    |     duplicate = super().__copy__()
dcdc_django    |   File "/usr/local/lib/python3.14/site-packages/django/template/context.py", line 41, in __copy__
dcdc_django    |     duplicate.dicts = self.dicts[:]
dcdc_django    |     ^^^^^^^^^^^^^^^
dcdc_django    | AttributeError: 'super' object has no attribute 'dicts' and no __dict__ for setting new attributes

Please advise, thanks!

I fixed this problem by fixing my docker compose bind mounts. The staticfiles were not getting mapped properly to the host.

Вернуться на верх