This website requires JavaScript.
Explore
Help
Sign In
p31829507
/
django
mirror of
https://github.com/django/django.git
Watch
1
Star
0
Fork
You've already forked django
0
Code
Issues
Projects
Releases
Wiki
Activity
5776a1660e
django
/
tests
/
admin_custom_urls
/
urls.py
8 lines
105 B
Python
Raw
Normal View
History
Unescape
Escape
Updated test URL patterns to use path() and re_path().
2018-12-08 06:52:28 +08:00
from
django
.
urls
import
path
Updated tests to stop leaking models in shared AdminSite. This would break upcoming changes and AdminSite assumptions about having an app_config for each application that has registered models.
2015-03-31 00:33:26 +08:00
from
.
models
import
site
Converted internal link generation in the admin and admin document generator to use named URLs. Thanks to Florian Apolloner for both the initial patch and his final push to get this fixed, to Dario Ocles for his great work on the admin templates and switching the admin_doc application to also use named URLs, to Mikko Hellsing for his comments and to Jannis and Julien for their review and design guidance. Fixes #15294. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16857 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-21 02:30:06 +08:00
Fixed #22218 -- Deprecated django.conf.urls.patterns. Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
2014-04-02 08:46:34 +08:00
urlpatterns
=
[
Updated test URL patterns to use path() and re_path().
2018-12-08 06:52:28 +08:00
path
(
'
admin/
'
,
site
.
urls
)
,
Fixed #22218 -- Deprecated django.conf.urls.patterns. Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
2014-04-02 08:46:34 +08:00
]