Django - Customize Admin Panel (4)

Опубликовано: 04 Октябрь 2024
на канале: vrfEducationEnglish
437
4

#django #djangoadmin #pythonwebdevelopment
Django generously provides an Admin Panel for developers and save a lot of time. Django also let you completely customize different parts of this panel and make it as you want to be.
For this purpose after registering your model in Admin area, you need to create a class that inherit from admin.ModelAdmin. Using this class you're able to tell Django how to handle things for your models
In this session we'll learn:
What is fixture and how to use it to load data from file into DB
How to create dynamic fields based on SQL aggregate functions
How to use HTML formatter for our dynamic columns