question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Upgrading to wagtail 1.6 breaks, with DEBUG=False and ManifestStaticFilesStorage as STATICFILES_STORAGE

See original GitHub issue

After 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:closed
  • Created 7 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
gasmancommented, Aug 23, 2016

As an immediate workaround, creating a blank admin/js/vendor/xregexp/xregexp.min.js file in one of your app’s static 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.

0reactions
m1kolacommented, Aug 25, 2016

Fixed in #2937

Thanks for reporting!

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found