diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2011-10-13 21:34:56 +0000 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2011-10-13 21:34:56 +0000 |
| commit | 8c0eefd066aa0e5bfe8c1006d055be8e2ad69a2b (patch) | |
| tree | bded379649862a6b9c28553bc5130da524aac209 /tests/regressiontests/urlpatterns_reverse/urls_without_full_import.py | |
| parent | f830166167833cfb7c990764f72373a9f4494259 (diff) | |
Convert the remainder of the relative imports in the tests to be absolute imports.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16981 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/urlpatterns_reverse/urls_without_full_import.py')
| -rw-r--r-- | tests/regressiontests/urlpatterns_reverse/urls_without_full_import.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/regressiontests/urlpatterns_reverse/urls_without_full_import.py b/tests/regressiontests/urlpatterns_reverse/urls_without_full_import.py index 0e58a157cf..ca3e424f23 100644 --- a/tests/regressiontests/urlpatterns_reverse/urls_without_full_import.py +++ b/tests/regressiontests/urlpatterns_reverse/urls_without_full_import.py @@ -1,8 +1,12 @@ # A URLs file that doesn't use the default # from django.conf.urls import * # import pattern. +from __future__ import absolute_import + from django.conf.urls import patterns, url -from views import empty_view, bad_view + +from .views import empty_view, bad_view + urlpatterns = patterns('', url(r'^test_view/$', empty_view, name="test_view"), |
