Ritvik Shah
Ritvik Shah

Reputation: 91

ImportError raised when try to load crispy_forms

ImportError raised when trying to load  
‘crispy_forms.templatetags.crispy_forms_field’: No module named  
‘django.utils.lru_cache’

I get that error ^^ when i try to run the command below:

heroku run python manage.py migrate

I have checked that my crispy forms version = 1.8.1

Please help!

Upvotes: 0

Views: 664

Answers (1)

Benji
Benji

Reputation: 458

If I'm not mistaken it's most likely because your version of Django might be outdated. According to this issue from the official crispy-forms repo (found here) you need Django 3.0

Try updating and see if this resolves your issue.

Upvotes: 1

Related Questions