This commit is contained in:
aqu415
2022-03-22 10:46:22 +08:00
parent 92f230e75e
commit 138b90b945
3 changed files with 14 additions and 9 deletions
+14 -9
View File
@@ -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)
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB