Django Full Coverage (2)

如果app01想要被管理的话,必须授权允许管理admin.py文件写入下面的内容

from django.contrib import admin from app01 import models # Register your models here. admin.site.register(models.Account) admin.site.register(models.Article) admin.site.register(models.Tag)

开启Django >> python3 manage.py runserver 0.0.0.0:8000

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wpwpzy.html