Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

More django.conf.urls.defaults removals. Refs #17132

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 3e66913 commit 24f3c06e4aaee3370098d454dab61c175ccf8319 @ramiro ramiro committed
2  django/core/
@@ -336,7 +336,7 @@ def _resolve_special(self, view_type):
callback = getattr(self.urlconf_module, 'handler%s' % view_type, None)
if not callback:
# No handler specified in file; use default
- # Lazy import, since urls.defaults imports this file
+ # Lazy import, since django.urls imports this file
from django.conf import urls
callback = getattr(urls, 'handler%s' % view_type)
return get_callable(callback), {}
2  tests/regressiontests/admin_custom_urls/
@@ -31,7 +31,7 @@ def remove_url(self, name):
def get_urls(self):
# Add the URL of our custom 'add_view' view to the front of the URLs
# list. Remove the existing one(s) first
- from django.conf.urls.defaults import patterns, url
+ from django.conf.urls import patterns, url
def wrap(view):
def wrapper(*args, **kwargs):

0 comments on commit 24f3c06

Please sign in to comment.
Something went wrong with that request. Please try again.