Forums

django-crispy-forms

Hello! I installed pip install django-crispy-forms, but my site not working Please, help

log 2022-05-21 21:14:13,563: File "/home/LabJournal/LabJournal/venv/lib/python3.9/site-packages/django/apps/config.py", line 228, in create 2022-05-21 21:14:13,563: import_module(entry) 2022-05-21 21:14:13,563: ******* 2022-05-21 21:14:13,563: If you're seeing an import error and don't know why, 2022-05-21 21:14:13,563: we have a dedicated help page to help you debug: 2022-05-21 21:14:13,563: https://help.pythonanywhere.com/pages/DebuggingImportError/ 2022-05-21 21:14:13,565: ******* 2022-05-21 21:18:39,852: Error running WSGI application 2022-05-21 21:18:39,859: ModuleNotFoundError: No module named 'crispy_forms' 2022-05-21 21:18:39,859: File "/var/www/labjournal_pythonanywhere_com_wsgi.py", line 91, in <module> 2022-05-21 21:18:39,859: application = get_wsgi_application() 2022-05-21 21:18:39,859: 2022-05-21 21:18:39,859: File "/home/LabJournal/LabJournal/venv/lib/python3.9/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application 2022-05-21 21:18:39,860: django.setup(set_prefix=False) 2022-05-21 21:18:39,860: 2022-05-21 21:18:39,860: File "/home/LabJournal/LabJournal/venv/lib/python3.9/site-packages/django/init.py", line 24, in setup 2022-05-21 21:18:39,860: apps.populate(settings.INSTALLED_APPS) 2022-05-21 21:18:39,860: 2022-05-21 21:18:39,860: File "/home/LabJournal/LabJournal/venv/lib/python3.9/site-packages/django/apps/registry.py", line 91, in populate 2022-05-21 21:18:39,861: app_config = AppConfig.create(entry) 2022-05-21 21:18:39,861: 2022-05-21 21:18:39,861: File "/home/LabJournal/LabJournal/venv/lib/python3.9/site-packages/django/apps/config.py", line 228, in create 2022-05-21 21:18:39,861: import_module(entry) 2022-05-21 21:18:39,861: ********* 2022-05-21 21:18:39,861: If you're seeing an import error and don't know why, 2022-05-21 21:18:39,861: we have a dedicated help page to help you debug: 2022-05-21 21:18:39,861: https://help.pythonanywhere.com/pages/DebuggingImportError/

in settings:

INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'main', 'viscosimeters', 'kinematicviscosity', 'users.apps.UsersConfig', 'rest_framework', 'api', 'crispy_forms' ]

Make sure that you've installed it into the virtualenv that your web app is using.