RAHHH
This commit is contained in:
13
backend/lib/python3.12/site-packages/channels/hacks.py
Normal file
13
backend/lib/python3.12/site-packages/channels/hacks.py
Normal file
@@ -0,0 +1,13 @@
|
||||
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,)
|
||||
Reference in New Issue
Block a user