ox.apps.core
Core application libraries.
ox.apps.core.apps
Oxylus application inherits from AppConfig. It allows to:
handle assets;
provide application metadata;
application level permission;
We plan to use those metadata and dependencies in order to automate loading and ease application installation by end-users.
- class ox.apps.core.apps.CoreAppConfig(*args, **kwargs)[source]
Bases:
AppConfig- icon: str = 'mdi-weather-sunny'
Material design icon class.
- npm_package: str | None = '@oxylus/core'
Name of the corresponding NPM package to look up for.
Defaults to app label.
- root_url: str = 'ox/core'
Provide an alternative to app label when we target application in paths.
For example Oxylus will nest template directories as
ox/core/instead ofox_core. The same happens for urls.
ox.apps.core.management
ox.apps.core.serializers
ox.apps.core.signals
ox.apps.core.views
- class ox.apps.core.views.AccountView(**kwargs)[source]
Bases:
AppView- app_config_name: str | None = 'ox_core'
AppConfig name of the related application.
If none provided, retrieve it based of request’s resolver match.
- title: str = 'My Account'
Application title (as displayed in
<title>and top bar).
- class ox.apps.core.views.AccountViewSet(**kwargs)[source]
Bases:
LoginMixin,GenericViewSet- credentials_serializer_class
alias of
PasswordLoginSerializer
- serializer_class
alias of
UserSerializer
- class ox.apps.core.views.ContentTypeViewSet(**kwargs)[source]
Bases:
ReadOnlyModelViewSet- serializer_class
alias of
ContentTypeSerializer
- class ox.apps.core.views.DashboardView(**kwargs)[source]
Bases:
LoginRequiredMixin,AppView- app_config_name: str | None = 'ox_core'
AppConfig name of the related application.
If none provided, retrieve it based of request’s resolver match.
- title: str = 'Dashboard'
Application title (as displayed in
<title>and top bar).
- class ox.apps.core.views.ErrorView(**kwargs)[source]
Bases:
AppView- title: str = 'An error occurred'
Application title (as displayed in
<title>and top bar).
- class ox.apps.core.views.GroupViewSet(**kwargs)[source]
Bases:
ModelViewSet- serializer_class
alias of
GroupSerializer
- class ox.apps.core.views.InternalErrorView(**kwargs)[source]
Bases:
ErrorView- title: str = 'Internal server error'
Application title (as displayed in
<title>and top bar).
- class ox.apps.core.views.LoginView(**kwargs)[source]
Bases:
LoginMixin,AppView- app_config_name: str | None = 'ox_core'
AppConfig name of the related application.
If none provided, retrieve it based of request’s resolver match.
- class ox.apps.core.views.PermissionForbiddenView(**kwargs)[source]
Bases:
ErrorView- title: str = 'Permission forbidden'
Application title (as displayed in
<title>and top bar).
- class ox.apps.core.views.PermissionViewSet(**kwargs)[source]
Bases:
ModelViewSet- serializer_class
alias of
PermissionSerializer
- class ox.apps.core.views.UserViewSet(**kwargs)[source]
Bases:
ModelViewSet- serializer_class
alias of
UserSerializer