1、如下图所示,打开pycharm当中的tools当中的
2、由此便可进入操作该数据库的命令行了
在terminal命令行当中输入createsuperuser
由此按照步骤进行一步步操作,完成相关密码录入等工作,如下图所示
该图中代码如下所示
manage.py@DjangoCeshi > createsuperuser
"D:\pychram profession\PyCharm 2018.2.4\bin\runnerw.exe" F:\python\DjangoCeshi\venv\Scripts\python.exe "D:\pychram profession\PyCharm 2018.2.4\helpers\pycharm\django_manage.py" createsuperuser F:/python/DjangoCeshi
Tracking file by folder pattern: migrations
Username (leave blank to use 'administrator'): admin
Email address: admin@qq.com
Warning: Password input may be echoed.
Password: admin
Warning: Password input may be echoed.
Password (again): admin
Bypass password validation and create user anyway? [y/N]: The password is too similar to the email address.
This password is too short. It must contain at least 8 characters.
This password is too common.
Warning: Password input may be echoed.
Password: admin123456
Warning: Password input may be echoed.
Password (again): admin123456
3、由此,再重新输入相关用户名密码就可以登录进去了
http://127.0.0.1:8000/admin/