You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

hacks.py 467B

5 years ago
123456789101112
  1. def monkeypatch_django():
  2. """
  3. Monkeypatches support for us into parts of Django.
  4. """
  5. # Ensure that the staticfiles version of runserver bows down to us
  6. # This one is particularly horrible
  7. from django.contrib.staticfiles.management.commands.runserver import (
  8. Command as StaticRunserverCommand,
  9. )
  10. from .management.commands.runserver import Command as RunserverCommand
  11. StaticRunserverCommand.__bases__ = (RunserverCommand,)