ImportError: No module named django.core.wsgi

I am facing the above error while deploying Django with Apache.

Here is my Apacahe conf file contents:

<VirtualHost *:80>
        ServerAdmin webmaster@localhost


        WSGIPythonPath
/home/user/site:/home/user/.virtualenvs/test/lib/python2.7/site-packages

        <Directory /home/user/.virtualenvs/test/lib/python2.7/site-packages>
        Options Indexes
        Order deny,allow
        Allow from all
        </Directory>

        WSGIPythonHome /home/user/.virtualenvs/test
        WSGIScriptAlias /site /home/user/site/site/wsgi.py
        <Directory /home/user/site/site>
        <Files wsgi.py>
        Order deny,allow
        Allow from all
        </Files>
        </Directory>

        Alias /static/ /home/user/site/static/
        <Location "/static/">
            Options -Indexes
        </Location >
</VirtualHost>


and wsgi.py file

import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "site.settings")

from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()


Please help me to resolve the error.

-- 
Satinderpal Singh

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BiK19KQ8YARfqb2sby2ZR71bTj9ryC_Opm5Zu8N3Br8KL%2B_fg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to