Installation
Install the alliance_platform_ui, alliance_platform_frontend, and alliance_platform_codegen packages:
poetry add alliance_platform_codegen alliance_platform_frontend alliance_platform_ui
Add alliance_platform_ui, alliance_platform.frontend and alliance_platform.codegen to your INSTALLED_APPS:
INSTALLED_APPS = [
...
'alliance_platform.codegen',
'alliance_platform.frontend',
'alliance_platform.ui',
...
]
Configuration
Currently there are no settings specific to alliance_platform_ui. See alliance_platform.frontend
and alliance_platform.codegen for details on installing and configuring the packages
that the UI package depends on.
Ensure that FORM_RENDERER is be set as follows:
FORM_RENDERER = "alliance_platform.ui.forms.renderers.FormInputContextRenderer"
This is used by the form and form_input tags.
Migration from Alliance Platform Frontend
If you were originally using an older version of alliance_platform_frontend that incorporated all of the elements of alliance_platform_ui,
you will need to update some settings and templates:
Change the
FORM_RENDERERDjango setting fromalliance_platform.frontend.forms.renderers.FormInputContextRenderertoalliance_platform.ui.forms.renderers.FormInputContextRendererFind and replace all instances of
{% load alliance_ui %}in your template files with{% load alliance_platform.ui %}Find and replace all instances of
{% load form %}in your template files with{% load alliance_platform.form %}