Django admin panel model registration

At the end of this project, you have successfully created a portfolio blog. You can now add some data in the admin panel. For that, you need to register the models in the file. Add following code for blog> and contactus> file.

In blog > file type,

from django.contrib import admin
from .models import (

# Register your models here.

For contactus >

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

To add data first create a super user. To do that

Type in terminal.

python createsuperuser

This will ask for username and pass you can give a any username and pass, it will ask in terminal when you type hit enter to go to next. 

You will see something like this

And then go to 


Once you are there it will ask for username and pass, type the username and pass you just created.

You will see an interface like, 

After you login you see something like

Leave a Reply

Your email address will not be published. Required fields are marked *