'DEPRECATED. This function is the old way of handling URL resolution, and
is deprecated in favor of real URL resolution -- see ``get_urls()``.
This function still exists for backwards-compatibility; it will be
removed in Django 1.3.'

def root(self, request, url):

    import warnings
    warnings.warn('AdminSite.root()    is    deprecated;    use    include(admin.site.urls)    instead.', DeprecationWarning)
    if ((request.method == 'GET') and (not request.path.endswith('/'))):
        return http.HttpResponseRedirect((request.path + '/'))
    if settings.DEBUG:
        self.check_dependencies()
    self.root_path = re.sub((re.escape(url) + '$'), '', request.path)
    url = url.rstrip('/')
    if (url == 'logout'):
        return self.logout(request)
    if (not self.has_permission(request)):
        return self.login(request)
    if (url == ''):
        return self.index(request)
    elif (url == 'password_change'):
        return self.password_change(request)
    elif (url == 'password_change/done'):
        return self.password_change_done(request)
    elif (url == 'jsi18n'):
        return self.i18n_javascript(request)
    elif url.startswith('r/'):
        from django.contrib.contenttypes.views import shortcut
        return shortcut(request, *url.split('/')[1:])
    elif ('/' in url):
        return self.model_page(request, *url.split('/', 2))
    else:
        return self.app_index(request, url)
    raise http.Http404('The    requested    admin    page    does    not    exist.')
