Article Directory
BUG a pro
A, Django to create super-user can not enter a password problem
Problem Description: Django using the command line to create a super-user can only enter a user name, email, password to this off, input is not displayed (as shown below), ******** is not hidden this way, but full blank, did not respond to any key input, What f - - k, this is what principle;? In fact, this is the case;
The right solution: According to the normal, clear the password before you collect input, enter the password you want to set, then press Enter then there will be password (again), and then confirm the password, remember that even invisible also to ensure consistency password twice, If Error appears: Your passwords did not match illustrate the different input passwords, such as the emergence Superuser created successfully then explained that it had success...
Incidentally a mouth, Django can only create a super user, create two super user will get an error, duplication of projects, in fact, already has a super user of
To delete a superuser method
Inside you can go directly to the database migration; project _user table delete superuser field, then new to the command line to create