On Sep 20, 7:57 pm, When ideas fail <andrewkenyon...@gmail.com> wrote:
> Hello, I've recently updated my setup to use mod_wsgi instead of
> mod_python. I'm having some problems with my urls. The home page loads
> fine but none of my other urls seems to work (404 errors). They worked
> before with mod_python. Do i need to include something else in
> my .wsgi file?
>
> import os
> import sys
>
> os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'
>
> sys.path.append('/usr/local/django')
>
> import django.core.handlers.wsgi
> application = django.core.handlers.wsgi.WSGIHandler()
> --------------------------------------------------------------------------- 
> -------------------------------------
>
> or directives?
>
> <Directory C:/Apache2.2/mysite/>
> Order deny,allow
> Allow from all
> </Directory>
>
> WSGIScriptAlias /mysite/ C:/Apache2.2/mysite/django.wsgi
> --------------------------------------------------------------------------- 
> ---------------------------------------
>
> I'm guessing its correct that whatever is in my urls would just go
> after my site, for example
>
> http://localhost:8080/mysite/thanks/
>
> for
>   ('^thanks/$', 'mysite.blog.views.thanks'),
>
> Andrew

>From the WSGI documentation on integration with Django (http://
code.google.com/p/modwsgi/wiki/IntegrationWithDjango):

"When setting up the Apache configuration for a site mounted at a sub
URL, the mount point must not have a trailing slash.
WSGIScriptAlias /mysite /usr/local/django/mysite/apache/django.wsgi"

So I'd guess that would be your problem.
--
DR.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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
-~----------~----~----~----~------~----~------~--~---

Reply via email to