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, Kevin Audleman > > <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 -~----------~----~----~----~------~----~------~--~---