From c7ec4c9a4f061fa5d8b6a02df4c2271f3b946177 Mon Sep 17 00:00:00 2001 From: Matthias Schoettle Date: Fri, 24 Feb 2023 23:49:39 -0500 Subject: [PATCH 1/2] remove default_config for Django versions 3.2+ --- slippers/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/slippers/__init__.py b/slippers/__init__.py index c4d4940..6dc9c99 100644 --- a/slippers/__init__.py +++ b/slippers/__init__.py @@ -1 +1,6 @@ -default_app_config = "slippers.apps.SlippersConfig" +import django + +if django.VERSION < (3, 2): + default_app_config = "slippers.apps.SlippersConfig" + + From 78a7e6e9b4b0f656adabaaec025fa3de34117a08 Mon Sep 17 00:00:00 2001 From: Matthias Schoettle Date: Sat, 4 Mar 2023 09:48:18 -0500 Subject: [PATCH 2/2] style: fix formatting --- slippers/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/slippers/__init__.py b/slippers/__init__.py index 6dc9c99..87907c8 100644 --- a/slippers/__init__.py +++ b/slippers/__init__.py @@ -2,5 +2,3 @@ if django.VERSION < (3, 2): default_app_config = "slippers.apps.SlippersConfig" - -