In this blog, let’s see how to render a model in django admin.The admin is enabled in the default project template used by startproject. For example, let us consider project- admin_model to demonstrate this. We start the Django project by typing this in the terminal.

render a model to Django Admin
django-admin startproject admin_model

Let’s go inside the newly created admin_model directory. Typing the following:

>cd admin_model

Now, let’s create our app model_admin. We do that by this command.

>python startapp model_admin

Include this app in setting file. Scroll down and make the following changes in


Now under model_admin , go to to make an example Person model. In order to do so, make the following changes.

from django.db import models

class Person(models.Model):
    first_name = models.CharField(max_length=30)
    last_name = models.CharField(max_length=30)
    email = models.EmailField(max_length=254)
    phone = models.CharField(max_length=20)
    bio = models.TextField(max_length=500)

Now, go to to include the model in the admin site.

Import this model and make the following changes.

from django.contrib import admin
from .models import Person
# Register your models here.

Before starting to use admin interface of Django one needs to create superuser in Django. In other words, a superuser is like an admin who can access and modify everything of a particular Django project. In order to create a superuser, enter the following command into the terminal.

superuser in Django
>python createsuperuser

Enter your Name, Email, Password and confirm password.

create a superuser

To sum up, type python runserver in the terminal.

In conclusion, lets check our admin interface. visit http://localhost:8000/admin/

admin interface

 In order to add data into the model, tap add and enter corresponding data into the required fields. click on save.

add data into the model

 That’s it!

Model Person has been successfully rendered into the admin interface! This is how we render a model in admin interface. Similarly, multiple renders can be modelled and rendered in the admin interface.