Skip to content

Commit

Permalink
Fix default_app_config RemovedInDjango41Warning warning
Browse files Browse the repository at this point in the history
  • Loading branch information
meteozond committed Sep 23, 2021
1 parent d08200d commit 950eb98
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 11 deletions.
5 changes: 4 additions & 1 deletion health_check/cache/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
default_app_config = 'health_check.cache.apps.HealthCheckConfig'
import django

if django.VERSION < (3, 2):
default_app_config = 'health_check.cache.apps.HealthCheckConfig'
5 changes: 4 additions & 1 deletion health_check/contrib/celery/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
default_app_config = 'health_check.contrib.celery.apps.HealthCheckConfig'
import django

if django.VERSION < (3, 2):
default_app_config = 'health_check.contrib.celery.apps.HealthCheckConfig'
5 changes: 4 additions & 1 deletion health_check/contrib/celery_ping/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
default_app_config = 'health_check.contrib.celery_ping.apps.HealthCheckConfig'
import django

if django.VERSION < (3, 2):
default_app_config = 'health_check.contrib.celery_ping.apps.HealthCheckConfig'
5 changes: 4 additions & 1 deletion health_check/contrib/migrations/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
default_app_config = 'health_check.contrib.migrations.apps.HealthCheckConfig'
import django

if django.VERSION < (3, 2):
default_app_config = 'health_check.contrib.migrations.apps.HealthCheckConfig'
5 changes: 4 additions & 1 deletion health_check/contrib/psutil/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
default_app_config = 'health_check.contrib.psutil.apps.HealthCheckConfig'
import django

if django.VERSION < (3, 2):
default_app_config = 'health_check.contrib.psutil.apps.HealthCheckConfig'
5 changes: 4 additions & 1 deletion health_check/contrib/rabbitmq/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
default_app_config = 'health_check.contrib.rabbitmq.apps.HealthCheckConfig'
import django

if django.VERSION < (3, 2):
default_app_config = 'health_check.contrib.rabbitmq.apps.HealthCheckConfig'
5 changes: 4 additions & 1 deletion health_check/contrib/redis/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
default_app_config = 'health_check.contrib.redis.apps.HealthCheckConfig'
import django

if django.VERSION < (3, 2):
default_app_config = 'health_check.contrib.redis.apps.HealthCheckConfig'
5 changes: 4 additions & 1 deletion health_check/contrib/s3boto3_storage/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
default_app_config = 'health_check.contrib.s3boto3_storage.apps.HealthCheckConfig'
import django

if django.VERSION < (3, 2):
default_app_config = 'health_check.contrib.s3boto3_storage.apps.HealthCheckConfig'
5 changes: 4 additions & 1 deletion health_check/contrib/s3boto_storage/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
default_app_config = 'health_check.contrib.s3boto_storage.apps.HealthCheckConfig'
import django

if django.VERSION < (3, 2):
default_app_config = 'health_check.contrib.s3boto_storage.apps.HealthCheckConfig'
5 changes: 4 additions & 1 deletion health_check/db/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
default_app_config = 'health_check.db.apps.HealthCheckConfig'
import django

if django.VERSION < (3, 2):
default_app_config = 'health_check.db.apps.HealthCheckConfig'
5 changes: 4 additions & 1 deletion health_check/storage/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
default_app_config = 'health_check.storage.apps.HealthCheckConfig'
import django

if django.VERSION < (3, 2):
default_app_config = 'health_check.storage.apps.HealthCheckConfig'

0 comments on commit 950eb98

Please sign in to comment.