Yuta
Yuta

Reputation: 37

Database table doesnt show up in django admin

I'm new to django and I'm wondering why the database table I created with django models won't show up on the admin page.

Here's what I did in a bash window. enter image description here

And my admin page. enter image description here

It seems the Cards table has been created but I don't see the table on my admin page and I want to know why. Any advice will be much appreciated.

Upvotes: 0

Views: 2007

Answers (1)

Rahul Gupta
Rahul Gupta

Reputation: 520

You have to enter your table name in admin.py file like this

from django.contrib import admin
admin.site.register(ModelName)

Upvotes: 5

Related Questions