How to create user from django shell

前端 未结 7 468
借酒劲吻你
借酒劲吻你 2021-01-30 04:13

When i create user from django-admin user password\'s are encrypted . but when i create user from django shell user-pasword is saved in plain text . Example :

7条回答
  •  粉色の甜心
    2021-01-30 04:39

    The fastest way creating of super user for django, type in shell:

    python manage.py createsuperuser
    

提交回复
热议问题