Partial solution: I added the following settings variable: PythonOption django.root "/directory"
The /directory part is now successfully added to all front-end pages. However saving models within the admin is broken. When I click save, the URL it tries to go to (which would be the list view for that model) is missing the /directory part. Is this a bug in django? At this point my http.conf looks like this: <Location "/"> PythonHandler django.core.handlers.modpython PythonPath "['/home/casacasa/webapps/django', '/home/casacasa/ webapps/django/lib/python2.5'] + sys.path" SetEnv DJANGO_SETTINGS_MODULE CasaCasa.settings SetHandler python-program PythonOption SCRIPT_NAME PythonOption django.root "/directory" </Location> On May 25, 1:02 pm, Kevin Audleman <kevin.audle...@gmail.com> wrote: > Hi Alex, > > I did exactly as you suggested with no luck. Any other suggestions? > > Kevin > > On May 25, 12:27 pm, Alex Koshelev <daeva...@gmail.com> wrote: > > > Hi, Kevin. > > > You can try to set FORCE_SCRIPT_NAME = '/directory' [1] settings > > variable. Or setup your web server to provide valid SCRIPT_NAME > > environment variable. > > > [1]:http://docs.djangoproject.com/en/dev/ref/settings/#force-script-name > > > --- > > Alex Koshelev > > > On Mon, May 25, 2009 at 10:52 PM, KevinAudleman > > > <kevin.audle...@gmail.com> wrote: > > > > My web host set up a django instance for me that can be accessed at > > >http://www.mysite.com/directory/. They've set up an Apache rule (or > > > something) that strips out the /directory/ before passing it on to > > > django, so as a result that url gets resolved by my url pattern "^$". > > > > This is nice, the only problem is that the url's I generate from my > > > django app are missing the /directory/ part. For example, I've got a > > > page called > > > >http://www.mysite.com/directory/register/ > > > > ...but django's url function creates this: > > > >http://www.mysite.com/register/ > > > > Is there a way to get django to append a /directory/ to the beginning > > > of each url it creates? > > > > Kevin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---