diff --git a/django/contrib/admin/templates/admin/base.html b/django/contrib/admin/templates/admin/base.html
index 479e18b2ee..f99e6d88b6 100644
--- a/django/contrib/admin/templates/admin/base.html
+++ b/django/contrib/admin/templates/admin/base.html
@@ -22,7 +22,7 @@
{% block branding %}{% endblock %}
{% if user.is_authenticated and user.is_staff %}
-
+
{% endif %}
{% block nav-global %}{% endblock %}
diff --git a/django/contrib/admindocs/urls.py b/django/contrib/admindocs/urls.py
index e7baa76fc0..57edb5697b 100644
--- a/django/contrib/admindocs/urls.py
+++ b/django/contrib/admindocs/urls.py
@@ -2,14 +2,40 @@ from django.conf.urls.defaults import *
from django.contrib.admindocs import views
urlpatterns = patterns('',
- ('^$', views.doc_index),
- ('^bookmarklets/$', views.bookmarklets),
- ('^tags/$', views.template_tag_index),
- ('^filters/$', views.template_filter_index),
- ('^views/$', views.view_index),
- ('^views/(?P[^/]+)/$', views.view_detail),
- ('^models/$', views.model_index),
- ('^models/(?P[^\.]+)\.(?P[^/]+)/$', views.model_detail),
-# ('^templates/$', views.template_index),
- ('^templates/(?P.*)/$', views.template_detail),
+ url('^$',
+ views.doc_index,
+ name='django-admindocs-docroot'
+ ),
+ url('^bookmarklets/$',
+ views.bookmarklets,
+ name='django-admindocs-bookmarklets'
+ ),
+ url('^tags/$',
+ views.template_tag_index,
+ name='django-admindocs-tags'
+ ),
+ url('^filters/$',
+ views.template_filter_index,
+ name='django-admindocs-filters'
+ ),
+ url('^views/$',
+ views.view_index,
+ name='django-admindocs-views-index'
+ ),
+ url('^views/(?P[^/]+)/$',
+ views.view_detail,
+ name='django-admindocs-views-detail'
+ ),
+ url('^models/$',
+ views.model_index,
+ name='django-admindocs-models-index'
+ ),
+ url('^models/(?P[^\.]+)\.(?P[^/]+)/$',
+ views.model_detail,
+ name='django-admindocs-models-detail'
+ ),
+ url('^templates/(?P.*)/$',
+ views.template_detail,
+ name='django-admindocs-templates'
+ ),
)