django.core.exceptions.ImproperlyConfigured: WSGI application 'project.wsgi.application' could not be loaded; Error importing module.
I get the following error when I attempt to start my Django development server
django.core.exceptions.ImproperlyConfigured: WSGI application 'project.wsgi.application' could not be loaded; Error importing module.
Admin
2023-01-24
I had a similar error too. On further debugging I realise that it was because I added an app to my installed app settings that was not in my virtual environment. To fix check do the following;
- That your environment variable is active.
- Run pip freeze > requirements.txt to see all your installed packages and ensure that the ones in your installed app settings are also in your requirements.txt file
Similar Content
- Hosting PostgreSQL database on Supabase for free
- Django deployment on railway hosting error: gunicorn command not found
- How to access inputed values of model fields before creation in Django admin dashboard
- Migrating your PostgreSQL database from one hosting platform to another (e.g Heroku to Supabase)
- How to setup environment variables for Django projects
Add Message
Click on the button below to add a new message to this thread
Tags
#django
Thread detail
Satus: Open
Messages: 1Started: 2023-01-24Thread Create
Click the button below to start a new thread for your question
loading..
Privacy Policy
By using our website,
you agree that devmaesters can store cookies on your device and disclose information in accordance with our privacy policy.