hi,
     I am using virtualenv for django project, and I have installed apache2 
and wsgi for project...., but when i am trying to run it on browser, then 
it's not displaying... it's downloading it.....
http://localhost/mydomain.com/index.wsgi
it's downloading it.... not displaying.... please help me...

my pages-
/var/www/mydomain.com/index.wsgi <http://mydomain.com/index.py>
  

import os
import sys
import site

# Add the site-packages of the chosen virtualenv to work with
site.addsitedir('~/.virtualenvs/DJ/local/lib/python2.7/site-packages')

# Add the app's directory to the PYTHONPATH
sys.path.append('/home/avnProject/avnProject')
sys.path.append('/home/avnProject/avnapp')

os.environ['DJANGO_SETTINGS_MODULE'] = 'avnProject.settings'

import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()

AND
second file is-- path
/etc/apache2/sites-available/mydomain.com

<VirtualHost *:80>
    ServerAdmin [email protected]
    ServerName localhost
    ServerAlias mydomain.com
    WSGIScriptAlias / var/www/mydomain.com/index.wsgi

    Alias /static/ /var/www/mydomain.com/static/
    <Location "/static/">
        Options -Indexes
    </Location >
</VirtualHost >

Myproject directory is ---- /home/avin/avnProject/

please help me....
i m trying localhost/mydomain.com then fine when I put localhost/
mydomain.com/index.wsgi,then it's downloading it......
and i m unable to open admin page here


Thanks in advance.......

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to