Views
=====
iommi ships with some views for some common use cases:
Authorization
~~~~~~~~~~~~~
We have `login`, `logout`, and `change_password` views, and there's a function to get all patterns:
.. code-block:: python
urlpatterns = [
path('', auth_views()),
]
.. raw:: html
▼ Hide result
.. raw:: html
▼ Hide result
.. raw:: html
▼ Hide result
CRUD views
~~~~~~~~~~
Create a full CRUD set of views:
.. code-block:: python
urlpatterns = [
path('', crud_views(model=Album)),
]
.. raw:: html
▼ Hide result
.. raw:: html
▼ Hide result
.. raw:: html
▼ Hide result
.. raw:: html
▼ Hide result
.. raw:: html
▼ Hide result