Stan
Stan
It seems to me the idea of this project is to replicate django-rest-framework's approach where you can implement CRUD for any model easily. But the idea of django-grpc is to...
@markdoerr , Your use case is perfectly legit. It could be a separate python package for model protobuf serialization and source code generation. I'll be happy to contribute to it....
We use tox to run tests for different services by CI. It is very frustrating for developers when something works locally, but breaks in CI because Pipfile.lock is ignored and...
It would be great to integrate with django authentication system. Feel free to open pull request
Try gRPC bindings for javascript - https://github.com/grpc/grpc-web
I apologize for the late response! I wanted to have universal solution for converting model instance to protobuf. But I don't even remember how it worked because never used it...
You have to do that manually and copy model properties to protobuf structure like this: ``` def to_protobuf(self): categories = [page_pb2.Category(title=cat.title) for cat in self.categories.all()] return page_pb2.Page(title=self.title, body=self.body, categories=categories) ```...
It depends on your protobuf structure. There can be one category per page or multiple, they can be defined as repeated strings or separate structures. Ideally, there would be Category.to_protobuf()...
I used Django's approach that outputs everything into stdout or stderr https://github.com/django/django/blob/main/django/core/management/commands/runserver.py#L130
That's true. Can you open pull request? I'm short of time right now