2008/9/17 Walter Cruz <[EMAIL PROTECTED]>:
>
> Does someone have a problem with django in a subdir, trailing slashs
> and other things?
>
> I have a deploy like that:
>
> WSGIScriptAlias /walter /home/walter/django_projects/walter_django/walter.wsgi
>
> My wsgi file:
>
>
> import os, sys
> sys.path.append('/home/walter/django_projects/walter_django')
> os.environ['DJANGO_SETTINGS_MODULE'] = 'walterproject.settings'
>
> import django.core.handlers.wsgi
>
> _application = django.core.handlers.wsgi.WSGIHandler()
>
> def application(environ, start_response):
>    environ['PATH_INFO'] = environ['SCRIPT_NAME'] + environ['PATH_INFO']
>    return _application(environ, start_response)
>
> If i run in django development server, a request to
> http://server/walter is redirected to http://server/walter and it
> works ok. the same happens to http://server/walter/admin, that is
> redirected to http://server/walter/admin/ and works ok.
>
> But, running on apache, http://server/walter don't work. and
> http://server/walter/admin is redirected to
> http://server/walter/walter/admin
>
> Can someone help me?

For starters, look in Django group for Apache trailing slash:

  
http://groups.google.com/group/django-users/search?hl=en&group=django-users&q=Apache+trailing+slash&qt_g=Search+this+group

These questions have been asked before and from memory for many it was
a Django configuration issue.

I would have to go back and reread the threads which will not have
time to do until later.

Graham

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to modwsgi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to