Member-only story
Customization of Django Admin Interface Part-2
7 min readJul 30, 2022
My article is for everyone! Non-members can click on this link and jump straight into the full text!!
This article is continuous on Customization of Django admin Interface that you all show so much love to it. This article is mainly focused on, will not say advance but if you know this customization of Django it will help you to play with Django.
Let's start our actual work(चलिये शुरू करते हैं ! )
- Before anything else, set up a Django project.
- Then, create an Employee APP inside the Django Project.
- Once you created the APP register it by mentioning the APP name in the settings.py file of the projects as mentioned in the scripts.
employee/settings.py
INSTALLED_APPS = [
......
'employee',
]
- Now let’s create two Models which we will use to check the customization options.
EmployeeRecords
class EmployeeRecords(models.Model):
employee_id = models.AutoField(primary_key=True)
employee_name= models.CharField(max_length=100)
designation = models.CharField(max_length=100)
status = models.BooleanField(default=False)
employee_salary = models.PositiveIntegerField() def __str__(self):
return str(self.employee_id)…