From 56a2addae24351c54f029762accedc415de82f5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=87=95=E9=B9=8F?= Date: Sat, 8 May 2021 16:49:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A8=E5=90=8D=E9=9D=9E=E7=A9=BA=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++++ vislib/views/source.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d7d9cb6..025ed2b 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,10 @@ pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/ - mysql安装失败手动下载https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient +//初始化数据库 + python manage.py migrate --settings=py_vislib.settings.local +//启动项目 + python manage.py runserver --settings=py_vislib.settings.local \ No newline at end of file diff --git a/vislib/views/source.py b/vislib/views/source.py index 8eb0ecb..02bfce1 100644 --- a/vislib/views/source.py +++ b/vislib/views/source.py @@ -151,7 +151,7 @@ def sourceTableSave(request): id=uuid.uuid4(), database=source, table=table['table'], - # table_alias=table['table_alias'], + table_alias='' if table['table_alias'] is None else table['table_alias'], creator=request.user, status=table['status'], updated_at=default_datetime()