摘要: 1. 创建超级用户 命令行输入: python manage.py createsuperuser from django.contrib import auth 2. auth.authenticate(username=username, password=pwd) 验证用户名和密码 如果验证成 阅读全文
posted @ 2018-09-13 18:05 青红*皂了个白 阅读(264) 评论(0) 推荐(0) 编辑