fixups.django

Django-specific customization.

Module Contents

Classes

DjangoFixup(self,app) Fixup installed when using Django.
DjangoWorkerFixup(self,app)

Functions

_maybe_close_fd(fh)
_verify_django_version(django)
fixup(app,env=”DJANGO_SETTINGS_MODULE”) Install Django fixup if settings module environment is set.
_maybe_close_fd(fh)
_verify_django_version(django)
fixup(app, env="DJANGO_SETTINGS_MODULE")

Install Django fixup if settings module environment is set.

class DjangoFixup(app)

Fixup installed when using Django.

__init__(app)
install()
worker_fixup()
worker_fixup(value)
on_import_modules(**kwargs)
on_worker_init(**kwargs)
now(utc=False)
autodiscover_tasks()
_now()
class DjangoWorkerFixup(app)
__init__(app)
django_setup()
validate_models()
install()
on_worker_process_init(**kwargs)
_maybe_close_db_fd(fd)
on_task_prerun(sender, **kwargs)

Called before every task.

on_task_postrun(sender, **kwargs)
close_database(**kwargs)
_close_database()
close_cache()
on_worker_ready(**kwargs)