Forums

Error executing WSGI application, ModuleNotFoundError: No module named 'whitenoise'

2022-06-22 11:32:07,103: Error running WSGI application 2022-06-22 11:32:07,104: ModuleNotFoundError: No module named 'whitenoise' 2022-06-22 11:32:07,104: File "/var/www/edison2002_pythonanywhere_com_wsgi.py", line 17, in <module> 2022-06-22 11:32:07,104: application = StaticFilesHandler(get_wsgi_application()) 2022-06-22 11:32:07,104: 2022-06-22 11:32:07,104: File "/home/Edison2002/.virtualenvs/django3/lib/python3.9/site-packages/django/core/wsgi.py", line 13, in get_wsgi_application 2022-06-22 11:32:07,104: return WSGIHandler() 2022-06-22 11:32:07,104: 2022-06-22 11:32:07,104: File "/home/Edison2002/.virtualenvs/django3/lib/python3.9/site-packages/django/core/handlers/wsgi.py", line 126, in init 2022-06-22 11:32:07,105: self.load_middleware() 2022-06-22 11:32:07,105: 2022-06-22 11:32:07,105: File "/home/Edison2002/.virtualenvs/django3/lib/python3.9/site-packages/django/core/handlers/base.py", line 40, in load_middleware 2022-06-22 11:32:07,105: middleware = import_string(middleware_path) 2022-06-22 11:32:07,105: 2022-06-22 11:32:07,105: File "/home/Edison2002/.virtualenvs/django3/lib/python3.9/site-packages/django/utils/module_loading.py", line 30, in import_string 2022-06-22 11:32:07,105: return cached_import(module_path, class_name) 2022-06-22 11:32:07,105: 2022-06-22 11:32:07,105: File "/home/Edison2002/.virtualenvs/django3/lib/python3.9/site-packages/django/utils/module_loading.py", line 15, in cached_import 2022-06-22 11:32:07,105: import_module(module_path) 2022-06-22 11:32:07,105: ******* 2022-06-22 11:32:07,106: If you're seeing an import error and don't know why, 2022-06-22 11:32:07,106: we have a dedicated help page to help you debug: 2022-06-22 11:32:07,106: https://help.pythonanywhere.com/pages/DebuggingImportError/ 2022-06-22 11:32:07,106: *******

You need to install whitenoise.