create database in linux
create database blog character set utf8;
create project in django
django-admin startproject blog
open project use pycharm
configurate in pycharm
settings.py
#DATABASES
name:'blog',
user:'root',
password:'666666',
host:'127.0.0.1',
port:'3306',
#application
'myblog'
verify
#python_env
from django.db import connection
cursor=connection.cursor()
#测试链接数据库是否
create application
python manage.py startapp myblog