开发者

Django admin interface and added tables

开发者 https://www.devze.com 2023-03-16 03:01 出处:网络
I\'m using Django with sqlite to make a web app and ran into a little issue. I created a table under models file called deletedOrder, gave it variables etc., and then ran manage.py syncdb. This crea

I'm using Django with sqlite to make a web app and ran into a little issue.

I created a table under models file called deletedOrder, gave it variables etc., and then ran manage.py syncdb. This created the table in my database and I was able to add data to the database table and read the data back out, however开发者_如何学Python this added table is not showing up on the Django admin interface.

Is there something else that I have to do to get this to be in the admin page?


You need to register your models to make them show up in the admin as documented here.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号