You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a django project with > 10 different apps, each having a gRPC interface.
What is the cleanest way to register all gRPC handlers in your framework ?
It would be nice, if I could use the GRPC_FRAMEWORK settings for that, but it currently has only a GRPC_ROOT_HANDLERS hook, which points to one module.
What about adding there a list of GRPC_HANDLERS ?
Example:
GRPC_FRAMEWORK = { 'GRPC_HANDLERS': ['app1.grpc_interface.handlers', 'app2.grpc_interface.handlers', ...] }
This would allow to add new handlers even with environment variables, e.g. for configuring a complex django project.
The text was updated successfully, but these errors were encountered:
Hi,
the way we usually do it is that we have one single main handler which imports the handlers of all the other apps.
However using a list directly in the settings would be a great enhancement imo
I have a django project with > 10 different apps, each having a gRPC interface.
What is the cleanest way to register all gRPC handlers in your framework ?
It would be nice, if I could use the GRPC_FRAMEWORK settings for that, but it currently has only a GRPC_ROOT_HANDLERS hook, which points to one module.
What about adding there a list of GRPC_HANDLERS ?
Example:
GRPC_FRAMEWORK = { 'GRPC_HANDLERS': ['app1.grpc_interface.handlers', 'app2.grpc_interface.handlers', ...] }
This would allow to add new handlers even with environment variables, e.g. for configuring a complex django project.
The text was updated successfully, but these errors were encountered: