faust.fixups.django¶
Django Fixups - Integration with Django.
-
class
faust.fixups.django.Fixup(app: faust.types.app.AppT) → None[source]¶ Django fixup.
This fixup is enabled if
the
DJANGO_SETTINGS_MODULEenvironment variable is set,the django package is installed.
Once enabled it will modify the following features:
Autodiscovery
If
faust.App(autodiscovery=True), the Django fixup will automatically autodiscover agents/tasks/web views, and so on found in installed Django apps.Setup
The Django machinery will be set up when Faust commands are executed.
-
autodiscover_modules() → Iterable[str][source]¶ Return list of additional autodiscover modules.
For Django we run autodiscovery in all packages listed in the
INSTALLED_APPSsetting (with support for custom app configurations).