Skip to content

Commit c338ea5

Browse files
committed
Update deps and remove django warning
1 parent f96e4f4 commit c338ea5

File tree

4 files changed

+355
-234
lines changed

4 files changed

+355
-234
lines changed

amplitude/__init__.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
from django import get_version
2+
from packaging import version
3+
14
from .amplitude import Amplitude # NOQA: F401
25

3-
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

Comments
 (0)