diff --git a/django/contrib/admin/sites.py b/django/contrib/admin/sites.py
index 964719e..59a75f0 100644
a
|
b
|
from django import http, template
|
3 | 3 | from django.contrib.admin import ModelAdmin |
4 | 4 | from django.contrib.admin import actions |
5 | 5 | from django.contrib.auth import authenticate, login |
6 | | from django.db.models.base import ModelBase |
7 | 6 | from django.core.exceptions import ImproperlyConfigured |
| 7 | from django.core.urlresolvers import reverse |
| 8 | from django.db.models.base import ModelBase |
8 | 9 | from django.shortcuts import render_to_response |
9 | 10 | from django.utils.functional import update_wrapper |
10 | 11 | from django.utils.safestring import mark_safe |
diff --git a/django/contrib/admindocs/views.py b/django/contrib/admindocs/views.py
index 4f22fe0..5d77cd7 100644
a
|
b
|
class GenericSite(object):
|
24 | 24 | def get_root_path(): |
25 | 25 | from django.contrib import admin |
26 | 26 | try: |
27 | | return urlresolvers.reverse(admin.site.root, args=['']) |
| 27 | return urlresolvers.reverse('admin:index') |
28 | 28 | except urlresolvers.NoReverseMatch: |
29 | 29 | return getattr(settings, "ADMIN_SITE_ROOT_URL", "/admin/") |
30 | 30 | |
diff --git a/django/core/urlresolvers.py b/django/core/urlresolvers.py
index 6b41659..99d9fe0 100644
a
|
b
|
def resolve(path, urlconf=None):
|
294 | 294 | return get_resolver(urlconf).resolve(path) |
295 | 295 | |
296 | 296 | def reverse(viewname, urlconf=None, args=None, kwargs=None, prefix=None, app_name=None): |
297 | | print "REVERSE",viewname,app_name |
298 | 297 | parts = viewname.split(':') |
299 | 298 | parts.reverse() |
300 | 299 | view = parts[0] |