Skip to content

Instantly share code, notes, and snippets.

@codephillip
Created January 28, 2022 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codephillip/d480eed6c119070c89b24dc4e24a3039 to your computer and use it in GitHub Desktop.
Save codephillip/d480eed6c119070c89b24dc4e24a3039 to your computer and use it in GitHub Desktop.
from django.core.management.base import BaseCommand
from ms_foobar_app.events.event_listener import EventListener
class Command(BaseCommand):
def handle(self, *args, **options):
bus = EventListener()
bus.run()
bus.subscribe()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment