Re: Target WSGI script not found or unable to stat

2010-05-27 Thread mojito
> > When I come to deploy my django app on Apache , I get this error.
>
> >  [error] [client 127.0.0.1] Target WSGI script not found or unable to
> > stat: C:/wsgi-django-app
> > /testing/apache/django.wsgi
>
> This will occur where the user that the Apache service runs as does
> not have the necessary access permissions to the directory containing
> the WSGI script file. In other works, if the access controls on your
> directories only allow access to yourself and no one else, Apache
> service will not be able to see the WSGI script file.
>
> Graham
>
Thanks for your response Graham. I do not think permissions is an
issue because I can launch a python script from this location and view
a test  web page with Apache. If I use a *.wsgi file from here then
Apache complains. On Linux this setup works fine. What gives ?
Meenal

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Target WSGI script not found or unable to stat

2010-05-26 Thread mojito
Hello,
I am trying to set up django 1.1.1 with mod_wsgi 2.3  and Apache
2.0.63 on Windows XP. My Python version is 2.4.4

I followed the instructions for installing and configuring mod_wsgi
from http://code.google.com/p/modwsgi/.

I set up the "Hello world " test first to see if my mod_wsgi install
is correct. That works.

When I come to deploy my django app on Apache , I get this error.

 [error] [client 127.0.0.1] Target WSGI script not found or unable to
stat: C:/wsgi-django-app
/testing/apache/django.wsgi

Please help ...
Thanks
MP

My set up is as follows:
httpd.conf
-
WSGIScriptAlias / C:/wsgi-django-app/testing/apache/django.wsgi


AllowOverride None
Options None
Order deny,allow
Allow from all


apache/django.wsgi
---
import os, sys
sys.path.append('C:/wsgi-django-app')
sys.path.append('C:/wsgi-django-app/testing/apache')
sys.path.append('C:/Python24/Lib/site-packages/django')
os.environ['DJANGO_SETTINGS_MODULE'] = 'testing.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



How to use CheckboxSelectMultiple() widget

2010-02-03 Thread mojito
I have a list of files I'd like to render as a list of check boxes
with multiple selection. Then from the frontend I want to add the
ability to save and delete these files. How can I achieve this using
CheckboxSelectMultiple() widget ?
Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Javascript argument and django template tags

2010-01-26 Thread mojito
I'd like to do something as follows:


function namelist(name) {
.

{% ifequal  myname name %}

{% endifequal %}


If I hardcode name this works not otherwise,  please help.
Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.