Integreat Celery

Apps

Set up celery app

class integreat_cms.integreat_celery.apps.IntegreatCeleryConfig(app_name, app_module)[source]

Bases: AppConfig

Configuration for Celery

__init__(app_name, app_module)[source]
classmethod create(entry)[source]

Factory that creates an app config from an entry in INSTALLED_APPS.

default_auto_field = 'django.db.models.BigAutoField'[source]
get_model(model_name, require_ready=True)[source]

Return the model with the given case-insensitive model_name.

Raise LookupError if no model exists with this name.

get_models(include_auto_created=False, include_swapped=False)[source]

Return an iterable of models.

By default, the following models aren’t included:

  • auto-created models for many-to-many relations without an explicit intermediate table,

  • models that have been swapped out.

Set the corresponding keyword argument to True to include such models. Keyword arguments aren’t documented; they’re a private API.

import_models()[source]
name = 'integreat_cms.integreat_celery'[source]
ready()[source]

Override this method in subclasses to run code when Django starts.

Celery

Celery worker