From 54748e032da9aca3bf1761aa9c05eaf1dd43bc41 Mon Sep 17 00:00:00 2001 From: mnrudkovskyi Date: Sat, 18 Nov 2023 02:05:46 +0200 Subject: [PATCH] fix: Remove deprecation warning for auto-app discovery in Django 3.2+ (#91) --- phone_verify/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/phone_verify/__init__.py b/phone_verify/__init__.py index 95ffa65..9844b6d 100644 --- a/phone_verify/__init__.py +++ b/phone_verify/__init__.py @@ -1,3 +1,6 @@ # -*- coding: utf-8 -*- +import django -default_app_config = "phone_verify.apps.PhoneVerificationConfig" + +if django.VERSION < (3, 2): + default_app_config = "phone_verify.apps.PhoneVerificationConfig"