diff --git a/README.md b/README.md index 6702d2c6d91d5698ba9349dd6d23788acb3882d3..d650fb10534ca15f6111ebd59d9ef77e1484d3be 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,24 @@ django simpleui demo. --- +
+Simple UI源码 | +Simple社区 +
+ simpleui demo,默认使用sqlite数据库。 启动步骤请查看下面的内容,如果你没有接触过django 或者 django admin,请先自己去django的官方查看相关文档学习。 simpleui 是一个django admin的ui框架,与代码无关。 -# 步骤 +# 自动安装 +Linux或者macOS可以直接运行`bootstrap.sh`脚本,自动配置虚拟环境、安装依赖包、启动运行 +```shell +sh ./bootstrap.sh +``` + +# 手动步骤 + ## 第一步 下载源码到本地 ```shell @@ -33,3 +45,8 @@ python manage.py runserver 8000 在用户名和密码的框框输入 + 用户名:simpleui + 密码:demo123456 + + +## PS ++ 有任何疑问请加入QQ群:786576510 ++ 或者前往社区提问搜索答案:[Simple社区](https://simpleui.88cto.com) \ No newline at end of file diff --git a/bootstrap.sh b/bootstrap.sh new file mode 100644 index 0000000000000000000000000000000000000000..704d9257baee0695f15dada522a6831ead1f1e52 --- /dev/null +++ b/bootstrap.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +python3 -m venv venv +echo 'Create virtualenv.' + +source $PWD/venv/bin/activate + +python3 -m pip install -r requirements.txt + +echo 'Project initialization is complete!' + +echo 'Start the demo:' + +python3 manage.py runserver 8000 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 96b9419a5e1a0750536235be025984ecc10ba61d..151b138f3b3a740f9d49c9540ec559fa492df979 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ -Django==2.2.10 -django-import-export==1.2.0 +Django +django-import-export django-simpleui Pillow -docutils \ No newline at end of file +docutils