You can write a file xyz.wsgi with following content in your application
import os
import sys
sys.path.append("D:\\workspace\\python\\sspl\\src")
sys.path.append("D:\\workspace\\python\\sspl\\src\\ssplsite")
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
and in https.conf you need to add following entry
LoadModule python_module modules/mod_python.so
and
WSGIScriptAlias <path to xyz.wsgi >
<Directory <path to your application>>
Order deny,allow
Allow from all
</Directory>
I think this should work.
Regards
Anand
www.bootstraptoday.com
On Fri, Apr 23, 2010 at 4:38 PM, Mehul <[email protected]> wrote:
> Hi,
> Last two days i am trying to set up django on my window machine.
> I had installed
> 1>python25.msi on d drive(d:/Python25).
> 2>django at location :D:\Python25\Lib\site-packages\django.
> It showing a successful message on IP : http://127.0.0.1:8000/
> 3>Apache 2.2
> 4>mod_python-3.3.1.win32-py2.5-Apache2.2.exe
>
> Up to here its working fine.
>
>
> But i am not able to configure Apache for python
>
> I added following lines in httpd.conf file
> LoadModule python_module modules/mod_python.so
>
> <Location "/testproject">
> SetHandler python-program
> PythonHandler django.core.handlers.modpython
> SetEnv DJANGO_SETTINGS_MODULE testproject.settings
> PythonOption django.root /d:/projects/django/testproject
> PythonDebug On
> PythonPath "['/d:/projects/django/testproject', '/django'] +
> sys.path"
> </Location>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<django-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.