标签:creat idt ofo tar charm info pycharm src target
如果没有Django插件,需要先安装Django插件。
1,首先点击Default Settings,打开设置页面:
2,打开Project Interpreter:
3,安装一下Django插件:
1,New Django:
2,设置Django admin 用户名和密码:
3,控制台中输入如下命令:
# 初始化数据库表 manage.py@diango > makemigrations manage.py@diango > migrate # 创建admin user manage.py@diango > createsuperuser Username (leave blank to use ‘administrator‘): admin Email address: admin@qq.com Warning: Password input may be echoed. Password: admin123456 Warning: Password input may be echoed. Password (again): admin123456
Superuser created successfully.
4,设置web启动项:
5,勾选本机访问:
6,按shitf+f9,使用debug运行项目,访问http://127.0.0.1:8000/admin/,用刚才设置的用户名密码登录:
7,进入系统:
标签:creat idt ofo tar charm info pycharm src target
原文地址:https://www.cnblogs.com/lizm166/p/10288998.html