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 f96e4f4 commit c338ea5Copy full SHA for c338ea5
amplitude/__init__.py
@@ -1,3 +1,13 @@
1
+from django import get_version
2
+from packaging import version
3
+
4
from .amplitude import Amplitude # NOQA: F401
5
-default_app_config = "amplitude.apps.AmplitudeConfig"
6
+"""
7
+To stop waring:
8
+ RemovedInDjango41Warning: 'amplitude' defines
9
+ default_app_config = 'amplitude.apps.AmplitudeConfig'. Django now detects
10
+ this configuration automatically. You can remove default_app_config.
11
12
+if version.parse(get_version()) < version.parse('3.2'): # pragma: no cover
13
+ default_app_config = "amplitude.apps.AmplitudeConfig"
0 commit comments