On Thu, Dec 24, 2009 at 2:56 PM, Chris Withers <ch...@simplistix.co.uk>wrote:
> Hi All, > > My django site is served up with the following in Apache's config: > > WSGIScriptAlias /studio /django/studio/bin/django.wsgi > > My urls.py looks like: > > urlpatterns += patterns( > 'django.contrib', > (r'^admin/', include(admin.site.urls)), > (r'^accounts/login/$', 'auth.views.login'), > (r'^accounts/logout/$', 'auth.views.logout'), > ) > > ...and yet: > > [<a href="{% url admin:index %}">admin</a>] > > ...generates a link to /admin rather than /studio/admin. > Bizarrely, the urls within the admin interface itself are fine. > > I'm using: > > Python 2.5.2-3 > Django 1.1.1 > mod_wsgi 2.5-1~lenny1 > apache2 2.2.9-10+lenny6 > > Can anyone tell me what I'm doing wrong? > > No idea. I can't recreate by copy & pasting you urlpatterns. Tried on Django 1.1.1 and current trunk. I've got mod_wsgi 2.3 instead of 2.5 but I doubt that makes a difference for this -- everything else the same level as yours. Can you recreate with a bare-bones setup? Karen -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.