0π
I had the same error. I had to put "crispy_forms"
in double-quotes as @erdin-eray said, and then try to re-import with pip install django-crispy-forms
. This solved it for me.
It turns out the first time I did a pip install ...
I was not in my (env) virtual environment!
pip freeze > requirements.txt:
asgiref==3.3.1
Django==3.1.3
django-crispy-forms==1.10.0
pkg-resources==0.0.0
pytz==2020.4
sqlparse==0.4.1
0π
If you are using pipenv and creating virtual environments for your projects, you might need to be in your virtual environmentβs shell. Try using
python3 -m pipenv shell
to start a shell of your virtual environment. You can check to make sure that django-crispy-forms are installed by using the
pip list
command. If you see the desired version of django-crispy-forms installed on this list, then try running the server again using the same command you were using initially:
python3 manage.py runserver
- [Django]-Django.db.utils.InterfaceError: (0, '')
- [Django]-How to get tests coverage using Django, Jenkins and Sonar?
0π
I have found that my settings.py is very sensitive to the type of quote marks used.
When I consistently use single quote there is no problem.
Or if I consistantly use the double quote there is also no problem.
But when I tried to use both, I got your error with crispy_forms and crispy_bootstrap5 in the INSTALLED_APPS list.
- [Django]-Query annotation by distance to find closest distance in Django 1.11 with postgis appears incorrect
- [Django]-Django Admin Custom Widget for ForeignKey
- [Django]-How to solve "No Python interpreter configured for the module"? in Android Studio?
- [Django]-Django deep serialization β follow reverse foreign key constraints
-1π
pip install django-crispy-forms not works for this error. You need to use python command instead python3 for run server.
- [Django]-Django.db.utils.InterfaceError: (0, '')
- [Django]-Upgrading to django 1.11 many to many column not found
- [Django]-Redirect realtime common line output to Django HttpResponse