Navigation Menu

Skip to content

Commit

Permalink
Fixed #6470: made the admin use a URL resolver.
Browse files Browse the repository at this point in the history
This *is* backwards compatible, but `admin.site.root()` has been deprecated. The new style is `('^admin/', include(admin.site.urls))`; users will need to update their code to take advantage of the new customizable admin URLs.

Thanks to Alex Gaynor.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9739 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
jacobian committed Jan 14, 2009
1 parent 6c4e5f0 commit 1f84630
Show file tree
Hide file tree
Showing 10 changed files with 484 additions and 257 deletions.
2 changes: 1 addition & 1 deletion django/conf/project_template/urls.py
Expand Up @@ -13,5 +13,5 @@
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),

# Uncomment the next line to enable the admin:
# (r'^admin/(.*)', admin.site.root),
# (r'^admin/', include(admin.site.urls)),
)

0 comments on commit 1f84630

Please sign in to comment.