Django-Admin-Deux: From First Steps to Custom Plugins
Long Workshop
Fri 17 Apr | 15:15
90min
NEW STAGE
What if customizing Django's admin felt like writing any other Django view? Django-Admin-Deux aims at doing just that. It is not just a cosmetic refresh, it's a radically new approach relying on factory-generated views with a plugin-first design. Let's have a closer look!
Workshop Structure:
- Architectural Foundations (20 min)
- View Factories: How Django-Admin-Deux generates views dynamically
- Action System: Actions are the recipes followed by view factories, including non-model-related ones like dashboards
- Plugin Hooks: what hooks are available?
- Dataclasses: Django-Admin-Deux uses a series of dataclasses to make extending it type-safe and practical, let's look at them
- A practical example: using Django-Admin-Deux (30 min)
- Simple (migration from the stock admin)
- Enhancements (
list_displaywith enhanced features, FormLayout,Collections) - Adding custom
Views andActions - Permission system (from stock admin compatibility to composable permissions)
- Visibility, debugging and testing
- A more advanced example: let's build a plugin (30 min)
- Structure of a plugin
- Minimum requirements
- Enhancing existing
Views andActions - Announcing and checking feature availability