I am new in python and I want to create a superuser for admin login, but when I type this command: python manage.py createsuperuser
and enter any username with any character, python gives me this error:
Error: Enter a valid username.
This value may contain only letters, numbers and @/./+/-/_ characters.
Username (leave blank to use 'joao'):
How can I fix this problem?
您可以在命令参数中指定用户名:
python manage.py createsuperuser --username admin
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.