Reputation: 11
Images upload fail with 403 response after upgrading wagtail from 4.0.2 to 4.1.2 via intermediate upgrades as suggested in "upgrading wagtail". Static files are on AWS S3 since the initial deployment and worked flawlessly prior to the upgrade.
// django log from server
Exception while resolving variable 'site_root' in template 'home/home_page.html'.
Traceback (most recent call last): File "/var/app/venv/staging-LQM1lest/lib/python3.8/site-packages/django/template/base.py", line 880, in _resolve_lookup current = current[bit] File "/var/app/venv/staging-LQM1lest/lib/python3.8/site-packages/django/template/context.py", line 83, in getitem raise KeyError(key) KeyError: 'site_root'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/var/app/venv/staging-LQM1lest/lib/python3.8/site-packages/django/template/base.py", line 886, in _resolve_lookup if isinstance(current, BaseContext) and getattr( AttributeError: type object 'RequestContext' has no attribute 'site_root'
Upvotes: 0
Views: 215
Reputation: 11
Well, not REALLY an answer. After spending close to a week without any resolution I rebuilt the application from scratch--fortunately a very small database so I could run a new django/wagtail app from scratch without any leftovers from the unsuccessful upgrade. At the staging stage at the moment, but images are being uploaded to S3 without a glitch. Lesson: Upgrade with caution; meanwhile, keep the stable branch running.
Upvotes: 0