ImportError: No module named django.core.wsgi

asked 2020-01-17 12:36:07 -0500

wenderfirmino gravatar image

I installed devstack and when checking the log gave the following error, and the dashboard on the server does not load in the browser: Page Not Found.

log horizon_error.log

File "/opt/stack/horizon/openstack_dashboard/", line 21, in <module> from django.core.wsgi import get_wsgi_application ImportError: No module named django.core.wsgi

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2020-02-13 15:57:26 -0500

neatherweb gravatar image

I have had the same issue on F29 when running Devstack. httpd is linked to python2 wsgi module while devstack modules were installed with python3. Work around for me was, Install python3 wsgi module

dnf install python3-mod_wsgi

update /etc/httpd/conf.modules.d/10-wsgi.conf to use python3 module

#LoadModule wsgi_module modules/
LoadModule wsgi_module modules/

Restart httpd

systemctl restart httpd
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2020-01-17 12:36:07 -0500

Seen: 1,106 times

Last updated: Jan 17