django 基本用法
先要有数据库的映射
python manage.py makemigrations python manage.py migrate
python manage.py createsuperuser 创造超级用户
python manage.py runserver 启动django
修改 admin.py
from
django.contrib
import
admin
from
.models
import
Article
admin.site.register(Article)