This website requires JavaScript.
Explore
Help
Register
Sign In
mirrors
/
django
Watch
1
Star
0
Fork
0
You've already forked django
mirror of
https://github.com/django/django.git
synced
2024-12-23 01:25:58 +00:00
Code
Issues
25
Releases
Wiki
Activity
b4e7bf5284
django
/
tests
/
admin_inlines
/
urls.py
8 lines
106 B
Python
Raw
Normal View
History
Unescape
Escape
Updated test URL patterns to use path() and re_path().
2018-12-07 22:52:28 +00:00
from
django
.
urls
import
path
Improved test isolation of the admin tests and assigned custom admin sites to prevent test order dependant failures. This involves introducing usage of `TestCase.urls` and implementing proper admin.py modules for some of the test apps. Thanks Florian Apolloner for finding the issue and contributing the patch. Refs #15294 (it solves these problems so the fix for that ticket we are going to commit doesn't introduce obscure and hard to reproduce test failures when running the Django test suite.) git-svn-id: http://code.djangoproject.com/svn/django/trunk@16856 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-20 18:16:49 +00:00
Convert much of the regression tests to use absolute imports. There's still work to be done though. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16976 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-13 18:51:33 +00:00
from
.
import
admin
Fixed #22218 -- Deprecated django.conf.urls.patterns. Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
2014-04-02 00:46:34 +00:00
urlpatterns
=
[
Updated test URL patterns to use path() and re_path().
2018-12-07 22:52:28 +00:00
path
(
'
admin/
'
,
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 00:46:34 +00:00
]
Reference in New Issue
Copy Permalink