Controller¶
- class djmvc.controller.Controller[source]¶
-
Group child routes under a shared URL prefix.
- routes¶
Declared child routes (classes or instances). Before
build(), this is the declaration list; afterward it is aRegistryof built route instances.
- icon¶
Bootstrap Icons name for the sidebar entry. Navigation list views inherit this when they do not set their own
icon.- Type:
- property codename¶
URL segment with the
controllersuffix removed from the class name.
- find_route(codename)[source]¶
Walk up the controller tree and return the first route named codename.
- property model_controller¶
Nearest ancestor
ModelController, orself.
- has_permission(view)[source]¶
Delegate permission checks to the nearest
ModelController.
- property root¶
Topmost controller ancestor.
- property urlpatterns¶
Include child
urlpatternsunder this prefix.