Apps#
Contains class for configuring the Task Queue API.
- class fma_django_api.apps.TaskQueueApiConfig(app_name, app_module)#
Bases:
AppConfig
Sets the default_auto_field and name of the api service.
- default_auto_field = 'django.db.models.BigAutoField'#
- name = 'fma_django_api'#
- classmethod create(entry)#
Factory that creates an app config from an entry in INSTALLED_APPS.
- get_model(model_name, require_ready=True)#
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)#
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()#
- ready()#
Override this method in subclasses to run code when Django starts.