diff --git a/django_grpc_framework/management/commands/grpcrunserver.py b/django_grpc_framework/management/commands/grpcrunserver.py index 5853885..9757c2a 100644 --- a/django_grpc_framework/management/commands/grpcrunserver.py +++ b/django_grpc_framework/management/commands/grpcrunserver.py @@ -6,6 +6,7 @@ import os import grpc +from django import get_version from django.utils import autoreload from django.conf import settings from django.core.management.base import BaseCommand @@ -19,6 +20,9 @@ class Command(BaseCommand): # Validation is called explicitly each time the server is reloaded. requires_system_checks = False + if get_version() >= '4.1': + requires_system_checks = [] + def add_arguments(self, parser): parser.add_argument( 'address', nargs='?', default='[::]:50051',