Skip to content

Commit 1f84630

Browse files
committed
Fixed #6470: made the admin use a URL resolver.
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
1 parent 6c4e5f0 commit 1f84630

File tree

10 files changed

+484
-257
lines changed

10 files changed

+484
-257
lines changed

django/conf/project_template/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
1414

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

0 commit comments

Comments
 (0)