Upgrading to wagtail 1.6 breaks, with DEBUG=False and ManifestStaticFilesStorage as STATICFILES_STORAGE
See original GitHub issueAfter upgrading to wagtail 1.6 wagtail admin fails to load a bunch of JS scripts. None of the files specified in wagtailadmin/templates/wagtailadmin/pages/_editor_js.html
is rendered on to the edit or create page HTML.
Found that this Django setting was causing it
DEBUG=False
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage'
Switching to a normal Django static storage works. but we would like to fingerprint our assets. This also prevents us from using custom static files storage like whitenoise. This was not an issue with the previous versions of wagtail (1.5.3).
Setup
- Python 3.4
- Django 1.8.13
- Wagtail 1.6
Steps to reproduce
pip install django==1.8
wagtail start clean
python3 manage.py migrate
Edit the settings to
DEBUG=False STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage'
python manage.py collectstatic --clear
python manage.py runserver 8000
@gasman @alexgleason @m1kola can you guys take a look ?
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Issues upgrading from wagtail 2.15.6 to 2.16 breaks all pages ...
I am experiencing an issue upgrading a site's wagtail installed version. I have successfully upgraded from 2.12 to 2.15.6 but am running ...
Read more >Wagtail 0.8.6 release notes
To identify and delete these orphaned pages, it is recommended that you run the following command (from the project root) after upgrading to...
Read more >Updating Wagtail, Django and Django Debug Toolbar
In this video we'll go over upgrading your Wagtail website from v2.4 to v2.5.1 and we'll upgrade Django from 2.1.5 to 2.2.2.
Read more >Upgrading Wagtail from v2.4 to v2.5.1. - LearnWagtail.com
In this video we'll go over upgrading your Wagtail website from v2.4 to v2.5.1 and we'll upgrade Django from 2.1.5 to 2.2.2.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As an immediate workaround, creating a blank
admin/js/vendor/xregexp/xregexp.min.js
file in one of your app’sstatic
directories would probably work. That way, _editor_js.html will render correctly, but the JS code will still fall back on the non-Unicode Django 1.8 version, as it would if xregexp.min.js was a 404.Fixed in #2937
Thanks for reporting!