python - ImportError : No module named django.core.wsgi -


below snap error log

mod_wsgi (pid=12320): target wsgi script '/var/www/firstweb/firstweb/wsgi.py' cannot loaded python module. mod_wsgi (pid=12320): exception occurred processing wsgi script '/var/www/firstweb/firstweb/wsgi.py'. traceback (most recent call last): file "/var/www/firstweb/firstweb/wsgi.py", line 6, in ?    import django.core.handlers.wsgi  importerror: no module named django.core.handlers.wsgi 

configuration : python 2.7.11 + centos 5.11 + django 1.8 + mod_wsgi 3.5

its showing internal server error , import error error log

wsgi.py

import os import sys sys.path = ['/var/www/firstweb'] + sys.path os.environ['django_settings_module'] = 'firstweb.settings' import django.core.handlers.wsgi application = django.core.handlers.wgsi.wsgihandler() 


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -