Pycharm创建Django项目并访问Django 一、Django插件
如果没有Django插件,需要先安装Django插件。
1,首先点击Default Settings,打开设置页面:
2,打开Project Interpreter:
3,安装一下Django插件:
二、创建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.