Open
Description
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!
Metadata
Metadata
Assignees
Labels
No labels