Generateurv2/backend/env/lib/python3.10/site-packages/channels/hacks.py
2022-06-24 17:14:37 +02:00

14 lines
468 B
Python

def monkeypatch_django():
"""
Monkeypatches support for us into parts of Django.
"""
# Ensure that the staticfiles version of runserver bows down to us
# This one is particularly horrible
from django.contrib.staticfiles.management.commands.runserver import (
Command as StaticRunserverCommand,
)
from .management.commands.runserver import Command as RunserverCommand
StaticRunserverCommand.__bases__ = (RunserverCommand,)