Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attribute adjustment requires_system_checks #39

Open
deborahohanne opened this issue Aug 22, 2022 · 2 comments
Open

attribute adjustment requires_system_checks #39

deborahohanne opened this issue Aug 22, 2022 · 2 comments

Comments

@deborahohanne
Copy link

deborahohanne commented Aug 22, 2022

FIX: fix for requires_system_checks attribute as in Django version 4.1 there was a change to this attribute in the file

django/core/management/base.py

at the link django/django@1cb4950

the change is described,

the attribute previously received a boolean value, but has been changed to receive a list or tuple

"Using a boolean value for requires_system_checks is "
                "deprecated. Use '__all__' instead of True, and [] (an empty "
                "list) instead of False.",

the change was performed and the requires_system_checks attribute now receives an empty list [] as False

@AMontagu
Copy link

Hi @deborahohanne

As this project look no more maintained I can advice you to use https://github.com/socotecio/django-socio-grpc/

It's support django 4.1 and a lot more functionnalities than django-grpc-framework. All are not documented but we will be working on it and do not hesitate to post issue if you face problem for using it.

@nature-python
Copy link

nature-python commented Dec 13, 2023

you can bypass this error by creating your own django command as the official grpcrunserver command of djangogrpcframework in your own app, just set the requires_system_checks="all"

class Command(BaseCommand):
    help = 'Starts a gRPC server.'

    # Validation is called explicitly each time the server is reloaded.
    requires_system_checks = "__all__"

    def add_arguments(self, parser):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants