postgresql - Dockerized Django admin failing - Stack Overflow

I've no idea where to go with this as its deep into the admin templates.I haven't touched a

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...

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'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...

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!

Share Improve this question asked Feb 3 at 4:38 addohmaddohm 2,4753 gold badges19 silver badges43 bronze badges 2
  • 3 First of all, please stop using python 3.14 - that's a development alpha version, Django does not support it, things may break in a lot of unexpected ways. Try with 3,13, then report a bug somewhere if it works (or tell us here if it still fails) – STerliakov Commented Feb 3 at 4:44
  • @STerliakov I switched. Wasn't the problem, but good to know. – addohm Commented Feb 3 at 19:33
Add a comment  | 

1 Answer 1

Reset to default 0

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745249273a4618579.html

相关推荐

  • postgresql - Dockerized Django admin failing - Stack Overflow

    I've no idea where to go with this as its deep into the admin templates.I haven't touched a

    3小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信