Skip to main content

fixup

Install Django fixup if settings module environment is set.

def fixup(
app: Celery,
env: str = 'DJANGO_SETTINGS_MODULE'
) - > Optional[DjangoFixup]

Install Django fixup if settings module environment is set.

Parameters

NameTypeDescription
appCeleryThe Celery application instance to which the Django fixup will be applied
envstr = 'DJANGO_SETTINGS_MODULE'The environment variable name to check for Django settings configuration

Returns

TypeDescription
Optional[DjangoFixup]An instance of the installed DjangoFixup if successful, otherwise None