diff --git a/README.md b/README.md index f82ee5a..c5ca3f1 100644 --- a/README.md +++ b/README.md @@ -30,18 +30,23 @@ jsmind思维导图多人协作版(可本地安装、可扩展源码) - 在 jsmindmulti/settings.py 的 DATABASES 进行配置,配置文件里默认用的mysql,可以改成django支持的数据库 - - ![](https://img-blog.csdnimg.cn/0ac873cf2cc448eea6c6480ce985e5a9.png) + - 初始化数据库脚本,执行以下命令就会将系统运行所需要的表结构创建好 + ``` + python manage.py makemigrations + + python manage.py migrate + ``` + 启动程序 - 开发环境启动可以在项目根路径里直接执行 python manage.py runserver 0.0.0.0:8000 开启本地的服务;如果是生产环境,还需要加入nginx(我理解是提高并发等,参考:https://www.jianshu.com/p/3172566156fe/) - -#### 初始化数据库脚本 - -``` -python manage.py makemigrations - -python manage.py migrate - -``` + - + - ![](z-pic/start.png) #### 效果 ++ 通过浏览器 http://localhost:8000/ 访问主页 ++ +![](z-pic/list.png) + ++ 点击"编辑"详情 ++ ![](z-pic/show.gif) \ No newline at end of file diff --git a/z-pic/list.png b/z-pic/list.png new file mode 100644 index 0000000..763003c Binary files /dev/null and b/z-pic/list.png differ diff --git a/z-pic/start.png b/z-pic/start.png new file mode 100644 index 0000000..1071fbb Binary files /dev/null and b/z-pic/start.png differ