Re: Weird URL problem
On Fri, Jun 12, 2009 at 7:07 PM, Kenneth Gonsalveswrote: > I always set it for VirtualHost - AFAIK the docs say to do so. No. The docs say to set it to the prefix under which the site is being served. If the site is located at the root of the server -- e.g., "/" -- then it is not being served under a prefix. In other words, if you're running multiple things in the same server on the same domain (maybe multiple Django projects, maybe non-Django stuff as well), and you have Django running under some particular location (e.g., "example.com/mydjangosite/" is Django, but "example.com/" is not), you use django.root to indicate where it's running. -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Weird URL problem
On Saturday 13 June 2009 05:37:56 Kenneth Gonsalves wrote: > > Commenting out that line solved the problem. We're using > > a VirtualHost definition, so it seems django.root should > > not be set for a VirtualHost. > > I always set it for VirtualHost - AFAIK the docs say to do so. to clarify, I have a project called 'conference' at /home/lawgon/conference, and an application called 'web' under it. Here is an excerpt from my VirtualHost config: SetHandler python-program PythonPath "['/home/lawgon/'] + ['/home/lawgon/projects/quadmulc/env/lib/python2.5/site-packages/'] + sys.path" PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE conference.settings PythonOption django.root /web PythonInterpreter conference_main PythonDebug On -- regards kg http://lawgon.livejournal.com --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Weird URL problem
On Friday 12 June 2009 18:35:33 Lars Stavholm wrote: > > Notice the Request URL, there's a slash missing, > > something along the way removed the slash. > > > > If I try http://mbf//jobs, I end up at the right place. > > > > Can anyone tell me what it is that is removing that slash? > > Found the culprit in httpd.conf: PythonOption django.root / > > Commenting out that line solved the problem. We're using > a VirtualHost definition, so it seems django.root should > not be set for a VirtualHost. I always set it for VirtualHost - AFAIK the docs say to do so. -- regards kg http://lawgon.livejournal.com --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Weird URL problem
Lars Stavholm wrote: > Hi All, > > got a problem that's slowly driving me crazy: > > http://mbf takes me to my apache+mod_python+django application. > > However, if I click a link, e.g. http://mbf/jobs, I get the > following exception: > > TypeError at jobs/ > 'NoneType' object is not iterable > Request Method: GET > Request URL: http://mbfjobs/ > [snip] > > Notice the Request URL, there's a slash missing, > something along the way removed the slash. > > If I try http://mbf//jobs, I end up at the right place. > > Can anyone tell me what it is that is removing that slash? Found the culprit in httpd.conf: PythonOption django.root / Commenting out that line solved the problem. We're using a VirtualHost definition, so it seems django.root should not be set for a VirtualHost. /L --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Weird URL problem
Hi All, got a problem that's slowly driving me crazy: http://mbf takes me to my apache+mod_python+django application. However, if I click a link, e.g. http://mbf/jobs, I get the following exception: TypeError at jobs/ 'NoneType' object is not iterable Request Method: GET Request URL: http://mbfjobs/ [snip] Notice the Request URL, there's a slash missing, something along the way removed the slash. If I try http://mbf//jobs, I end up at the right place. Can anyone tell me what it is that is removing that slash? Any input appreciated /Lars Stavholm --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---