2012-6-10

配置admin app settings.py里加入 INSTALLED_APPS: 'django.contrib.admin', 将自己的models注册到contrib.admin里 在app目录里创建一个admin.py,然后加入 from django.contrib import admin from mysite.books.models import Publisher,Author,Book admin.site.register(Publisher) admin.site.register(Auth Read more