mirror of
https://github.com/django/daphne.git
synced 2025-07-13 01:12:17 +03:00
12 lines
452 B
Python
12 lines
452 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, )
|