apps¶
Module: espressodb.base.utilities.apps
|
Finds all apps which are part of the project. |
|
Returns a readable name for the app |
Creates a map for all project app names. |
Functions to identify project apps
-
get_app_name
(app)[source]¶ Returns a readable name for the app
- Parameters
app (
AppConfig
) – The app config.- Return type
str
-
get_apps_slug_map
()[source]¶ Creates a map for all project app names. Keys are slugs, values are names.
- Return type
Dict
[str
,str
]
-
get_project_apps
(exclude_apps=None)[source]¶ Finds all apps which are part of the project.
- Parameters
exclude_apps (
Optional
[Tuple
[str
]]) – Name of the apps to exclude. Must matchsettings.yaml
specification.
Iterates over apps specified in the settings.yaml file and returns django app configs if installed.
- Return type
List
[AppConfig
]