Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 555 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 555 Bytes

django-grpc-framework

Django gRPC Framework

Generating code

python manage.py compileprotos

Clean generated code

python manage.py cleanprotos

Run gRPC server

python manage.py rungrpcserver

settings

GRPC_FRAMEWORK = {
    'PROTOBUF_DIR': 'protos', # protobuf files directory
    'TMP_DIR': '.generated', # generated files temporary directory
    'BIND': '127.0.0.1:5051', # gRPC server bind address and port
    'MAX_WORKERS': 8 # gRPC server worker number
}