1.执行shell命令
2.先输入:from django.contrib.auth.models import User
然后是:user=User.objects.create_superuser('name','emailname@demon.com','password')
三个参数依次为用户名,邮箱,密码
1.执行shell命令
2.先输入:from django.contrib.auth.models import User
然后是:user=User.objects.create_superuser('name','emailname@demon.com','password')
三个参数依次为用户名,邮箱,密码