update
This commit is contained in:
@@ -30,18 +30,23 @@ jsmind思维导图多人协作版(可本地安装、可扩展源码)
|
||||
- 在 jsmindmulti/settings.py 的 DATABASES 进行配置,配置文件里默认用的mysql,可以改成django支持的数据库
|
||||
-
|
||||
- 
|
||||
- 初始化数据库脚本,执行以下命令就会将系统运行所需要的表结构创建好
|
||||
```
|
||||
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
|
||||
|
||||
```
|
||||
-
|
||||
- 
|
||||
|
||||
#### 效果
|
||||
+ 通过浏览器 http://localhost:8000/ 访问主页
|
||||
+
|
||||

|
||||
|
||||
|
||||
+ 点击"编辑"详情
|
||||
+
|
||||

|
||||
Binary file not shown.
|
After Width: | Height: | Size: 22 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 9.7 KiB |
Reference in New Issue
Block a user