Ask Your Question
0

ImportError: No module named django.core.wsgi

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

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/wsgi.py", 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
0

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

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/mod_wsgi.so
LoadModule wsgi_module modules/mod_wsgi_python3.so

Restart httpd

systemctl restart httpd
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 81 times

Last updated: Jan 17