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
The forms.py still uses some "old" code from Django 2.x, which has been deprecated in 3.0.
I got the following errors and have added my solution to them, which made the app work (but not thoroughly tested).
from django.contrib.staticfiles.templatetags.staticfiles import static
ModuleNotFoundError: No module named 'django.contrib.staticfiles.templatetags' Solution: replace first line with from django.templatetags.static import static (and add an if statement based on the Django version)
from django.utils.lru_cache import lru_cache
ModuleNotFoundError: No module named 'django.utils.lru_cache' Solution: replace first line with from functools import lru_cache (and add an if statement based on the Django version)
Hope this helps anyone!
The text was updated successfully, but these errors were encountered:
In addition to the above, in the second line it still mentions: load staticfiles which should be load static as of 3.0 as staticfiles is removed
This is happening at the following pages:
../wagtail_personalisation/templates/modeladmin/wagtail_personalisation/segment/base.html
../wagtail_personalisation/templates/modeladmin/wagtail_personalisation/segment/dashboard.html
../wagtail_personalisation/templates/modeladmin/wagtail_personalisation/segment/index.html
The forms.py still uses some "old" code from Django 2.x, which has been deprecated in 3.0.
I got the following errors and have added my solution to them, which made the app work (but not thoroughly tested).
from django.contrib.staticfiles.templatetags.staticfiles import static
ModuleNotFoundError: No module named 'django.contrib.staticfiles.templatetags'
Solution: replace first line with from django.templatetags.static import static (and add an if statement based on the Django version)
from django.utils.lru_cache import lru_cache
ModuleNotFoundError: No module named 'django.utils.lru_cache'
Solution: replace first line with from functools import lru_cache (and add an if statement based on the Django version)
Hope this helps anyone!
The text was updated successfully, but these errors were encountered: