#34487: Django crashes due to ManifestStaticFilesStorage plugin in 4.2
-------------------------------------+-------------------------------------
Reporter: tsuijten | Owner: nobody
Type: Bug | Status: new
Component: | Version: 4.2
contrib.staticfiles | Keywords: static
Severity: Normal | ManifestStaticFilesStorage
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
I have a pretty standard Django setup, I upgraded to 4.2 and deployed my
application only to find a 500 error on the login page with the below
exception.
My suspicion is that this is caused because of: "4.2: Experimental
optional support for finding paths to JavaScript modules in import and
export statements was added."
This is my stack trace (from Google AppEngine)
{{{
Internal Server Error: /admin/login/
Traceback (most recent call last):
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/core/handlers/base.py", line 220, in _get_response
response = response.render()
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/template/response.py", line 111, in render
self.content = self.rendered_content
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/template/response.py", line 89, in rendered_content
return template.render(context, self._request)
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/template/backends/django.py", line 61, in render
return self.template.render(context)
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/template/base.py", line 175, in render
return self._render(context)
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/test/utils.py", line 112, in instrumented_test_render
return self.nodelist.render(context)
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/template/base.py", line 1005, in render
return SafeString("".join([node.render_annotated(context) for node in
self]))
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/template/base.py", line 1005, in <listcomp>
return SafeString("".join([node.render_annotated(context) for node in
self]))
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/template/base.py", line 966, in render_annotated
return self.render(context)
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/template/loader_tags.py", line 157, in render
return compiled_parent._render(context)
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/test/utils.py", line 112, in instrumented_test_render
return self.nodelist.render(context)
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/template/base.py", line 1005, in render
return SafeString("".join([node.render_annotated(context) for node in
self]))
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/template/base.py", line 1005, in <listcomp>
return SafeString("".join([node.render_annotated(context) for node in
self]))
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/template/base.py", line 966, in render_annotated
return self.render(context)
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/template/loader_tags.py", line 157, in render
return compiled_parent._render(context)
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/test/utils.py", line 112, in instrumented_test_render
return self.nodelist.render(context)
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/template/base.py", line 1005, in render
return SafeString("".join([node.render_annotated(context) for node in
self]))
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/template/base.py", line 1005, in <listcomp>
return SafeString("".join([node.render_annotated(context) for node in
self]))
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/template/base.py", line 966, in render_annotated
return self.render(context)
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/template/loader_tags.py", line 157, in render
return compiled_parent._render(context)
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/test/utils.py", line 112, in instrumented_test_render
return self.nodelist.render(context)
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/template/base.py", line 1005, in render
return SafeString("".join([node.render_annotated(context) for node in
self]))
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/template/base.py", line 1005, in <listcomp>
return SafeString("".join([node.render_annotated(context) for node in
self]))
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/template/base.py", line 966, in render_annotated
return self.render(context)
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/template/loader_tags.py", line 63, in render
result = block.nodelist.render(context)
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/template/base.py", line 1005, in render
return SafeString("".join([node.render_annotated(context) for node in
self]))
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/template/base.py", line 1005, in <listcomp>
return SafeString("".join([node.render_annotated(context) for node in
self]))
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/template/base.py", line 966, in render_annotated
return self.render(context)
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/templatetags/static.py", line 116, in render
url = self.url(context)
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/templatetags/static.py", line 113, in url
return self.handle_simple(path)
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/templatetags/static.py", line 129, in handle_simple
return staticfiles_storage.url(path)
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/contrib/staticfiles/storage.py", line 203, in url
return self._url(self.stored_name, name, force)
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/contrib/staticfiles/storage.py", line 182, in _url
hashed_name = hashed_name_func(*args)
File "/layers/google.python.pip/pip/lib/python3.10/site-
packages/django/contrib/staticfiles/storage.py", line 513, in stored_name
raise ValueError(
ValueError: Missing staticfiles manifest entry for 'admin/js/theme.js'
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34487>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018774726e13-3953795d-2f4c-4439-b0c4-cad6f252448e-000000%40eu-central-1.amazonses.com.