We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 352b7df commit e361af4Copy full SHA for e361af4
pytest_django/plugin.py
@@ -446,7 +446,11 @@ def _django_set_urlconf(request):
446
if marker:
447
skip_if_no_django()
448
import django.conf
449
- from django.core.urlresolvers import clear_url_caches, set_urlconf
+ try:
450
+ from django.urls import clear_url_caches, set_urlconf
451
+ except ImportError:
452
+ # Removed in Django 2.0
453
+ from django.core.urlresolvers import clear_url_caches, set_urlconf
454
455
validate_urls(marker)
456
original_urlconf = django.conf.settings.ROOT_URLCONF
0 commit comments