第一步,把新建djangoProjext,指定虚拟环境,pip django 第二步,把mac mysql安装好,把mysql的默认编码改成utf-8 第三步,makemigrations没用,因为默认app不会生成init文件 第四部,migrate把setting.py的默认app(admin、auth)等 同步到mysql createsuperuser 手动新建maxvalley DB,经过以上四步,默认django表建好