You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ValueError: The file 'mfa/js/qrious.min.js.map' could not be found with <django.contrib.staticfiles.storage.ManifestStaticFilesStorage object at 0x7fa5f2e5e770>.
Context:
Upon investigation, it seems that the issue is related to changes introduced in Django 4.2, where ManifestStaticFilesStorage now replaces paths to JavaScript source map references with their hashed counterparts. The relevant changelog can be found here.
Observation:
The files mfa/static/mfa/js/bootstrap-toggle.min.js and mfa/static/mfa/js/qrious.min.js are referencing source map files as follows:
By including these map files in the project, the collectstatic process should complete successfully.
Please let me know if you need any further information or clarification.
The text was updated successfully, but these errors were encountered:
camposmoreira
changed the title
Subject: Issue with 'collectstatic' in Django 4.2+ and django-mfa2 2.8.0
Issue with 'collectstatic' in Django 4.2+ and django-mfa2 2.8.0
Dec 27, 2023
I encountered an issue when running
python manage.py collectstatic
in a Django project with the following configuration:Error Message:
Context:
Upon investigation, it seems that the issue is related to changes introduced in Django 4.2, where
ManifestStaticFilesStorage
now replaces paths to JavaScript source map references with their hashed counterparts. The relevant changelog can be found here.Observation:
The files
mfa/static/mfa/js/bootstrap-toggle.min.js
andmfa/static/mfa/js/qrious.min.js
are referencing source map files as follows:Proposal for Solution:
To resolve this issue, I propose adding the missing
.map
files. The required files can be found at the following locations:By including these map files in the project, the
collectstatic
process should complete successfully.Please let me know if you need any further information or clarification.
The text was updated successfully, but these errors were encountered: