moo.bootstrap.apps.BootstrapConfig
- class moo.bootstrap.apps.BootstrapConfig(app_name, app_module)
App config for
moo.bootstrap.Intentionally enabled only in
moo.settings.testso the seed migration that loads thedefaultdataset runs against test databases. Production initialization runs throughmanage.py moo_init/moo_init --sync; adding this app to base/dev/local settings would cause the seed migration to run against a real DB.- __init__(app_name, app_module)
Methods
__init__(app_name, app_module)create(entry)Factory that creates an app config from an entry in INSTALLED_APPS.
get_model(model_name[, require_ready])Return the model with the given case-insensitive model_name.
get_models([include_auto_created, ...])Return an iterable of models.
import_models()ready()Override this method in subclasses to run code when Django starts.
Attributes
default_auto_fieldnameverbose_name