开发者

What does this command actually do in django?

开发者 https://www.devze.com 2023-03-13 00:49 出处:网络
What does this actually do, & what is the default superuser account that is created开发者_如何转开发 ?

What does this actually do, & what is the default superuser account that is created开发者_如何转开发 ?

./manage.py  runscript -v 2 create_superuser


assuming you have run syncdb, and django.contrib.auth is among your apps, this will create a user that has the 'superuser' bit set. Such a user implicitly has all permissions, and most usefully, can always log into the admin interface for your project. You might want to do this if you enable auth sometime later than when you first started your django project (because it turned out you needed auth after all).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号