mirror of
https://github.com/django/daphne.git
synced 2025-04-25 03:03:47 +03:00
* Made daphne installable as a Django app. * Added system check to ensure daphne is installed before django.contrib.staticfiles. * Moved runserver command from Channels. * Added changelog entry for runserver command.
17 lines
476 B
Python
17 lines
476 B
Python
# Import the server here to ensure the reactor is installed very early on in case other
|
|
# packages import twisted.internet.reactor (e.g. raven does this).
|
|
from django.apps import AppConfig
|
|
from django.core import checks
|
|
|
|
import daphne.server # noqa: F401
|
|
|
|
from .checks import check_daphne_installed
|
|
|
|
|
|
class DaphneConfig(AppConfig):
|
|
name = "daphne"
|
|
verbose_name = "Daphne"
|
|
|
|
def ready(self):
|
|
checks.register(check_daphne_installed, checks.Tags.staticfiles)
|