James, If I get you right the request path is ^mysite/admin/ so ^admin shouldn't work. You've got to update all your top level urls to ^mysite/module_name as such
(r'^mysite/admin/', include('django.contrib.admin.urls')), Also the stuff in the virtual host isn't neccesary if you are mounting via Location. Location defined at the server root trancends all virtualhosts. Frankly if you have the ability to add virtualhosts to your sever you're best off setting up a virtualhost for every django app. Vance On 5/21/07, dystopia <[EMAIL PROTECTED]> wrote: > > I've got this in my Apache httpd.conf: > > <Location "/mysite/"> > SetHandler python-program > PythonHandler django.core.handlers.modpython > PythonPath "['/var/www/dev.django.exampleurl.co.uk/'] + sys.path" > SetEnv DJANGO_SETTINGS_MODULE mysite.settings > PythonDebug On > </Location> > > I also have this set up in my vhosts: > > <VirtualHost *> > ServerName dev.django.exampleurl.co.uk > DocumentRoot /var/www/dev.django.exampleurl.co.uk/ > PythonPath "['/var/www/dev.django.exampleurl.co.uk/'] + > sys.path" > SetEnv mysite.settings > </VirtualHost> > > > If I access the site on "http://dev.django.exampleurl.co.uk/mysite/" I > get the pretty welcome message. However when I enable the routing > rules for the generated admin area I get nasty messages telling me > (understandably) that the rules have not matched anything ^admin/. > > I'm worried that I haven't set this up properly, because in effect the > application (which is for test purposes) should really run off the > main domain rather than requiring to be accessed through a folder. > > Any ideas appreciated > > James > > > > > -- To pretend, I actually do the thing: I have therefore only pretended to pretend. - Jacques Derrida --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---