Django Channels Layer for Google PubSub
The full documentation is at https://dj-channels-pubsub.readthedocs.io.
Install Django Channels PubSub:
pip install dj-channels-pubsub
Add Environment variables:
export GOOGLE_CLOUD_PROJECT="" # Real project ID required for local emulator too
For the local PubSub Emulator, add:
export PUBSUB_EMULATOR_HOST=localhost:8085
For the local PubSub Emulator with Docker Compose:
export PUBSUB_EMULATOR_HOST=pubsub:8085
pubsub: image: google/cloud-sdk:331.0.0 command: gcloud beta emulators pubsub start --host-port=0.0.0.0:8085 ports: - "8085:8085" restart: unless-stopped
- TODO
Does the code actually work?
source <YOURVIRTUALENV>/bin/activate (myenv) $ pip install tox (myenv) $ tox
pip install -r requirements_dev.txt invoke -l
Tools used in rendering this package: