From 952e2e9d93e19b57e509ff289df8f11e23187039 Mon Sep 17 00:00:00 2001 From: Jim Melichar Date: Tue, 21 May 2024 09:33:30 -0500 Subject: [PATCH] Update __init__.py The try/except block here is failing for the most recent version of Django. It's trying to import include from django.conf.urls and then failing into the ImportError exception which then causes a compilation error when it tries to import from django.conf.urls.default since that no longer exists. --- compat/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compat/__init__.py b/compat/__init__.py index 55ba206..4a3144d 100644 --- a/compat/__init__.py +++ b/compat/__init__.py @@ -43,7 +43,8 @@ from six.moves._thread import get_ident # noqa try: - from django.conf.urls import url, include, handler404, handler500 + from django.conf.urls import url, handler404, handler500 + from django.urls import include except ImportError: from django.conf.urls.defaults import url, include, handler404, handler500 # pyflakes:ignore