pulp.app.apps¶
-
class
pulpcore.app.apps.
PulpPluginAppConfig
(app_name, app_module)¶ AppConfig class. Use this in plugins to identify your app as a Pulp plugin.
-
import_serializers
()¶
-
import_urls
()¶ If a plugin defines a urls.py, include it.
-
import_viewsets
()¶
-
ready
()¶ Override this method in subclasses to run code when Django starts.
-
-
pulpcore.app.apps.
get_plugin_config
(plugin_app_label)¶ A getter of specific pulp plugin config
This makes it easy to retrieve a config for a specific Pulp plugin when looking for a registered model.
- Parameters
plugin_app_label (str) – Django app label of the pulp plugin
- Returns
The app config of the Pulp plugin.
- Return type
- Raises
MissingPlugin – When plugin with the requested app label is not installed.
-
pulpcore.app.apps.
pulp_plugin_configs
()¶ A generator of Pulp plugin AppConfigs
This makes it easy to iterate over just the installed Pulp plugins when working with discovered plugin components.