Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

提交初始化数据库的脚本 #353

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

qqzxingchen
Copy link
Contributor

这个PR暂时不合并。
@LuPan2015 @hyndaniel @abigbigbird @zd1990
这个脚本目的是为了尽可能方便地在一个全新地环境中搭建一套Sirius可用的数据库。因此需要大家来检查一下这个脚本,是否满足自己后端模块的需要。如果不能满足,请直接在这个分支上进行修改提交;如果可以满足,请回复消息

@qqzxingchen
Copy link
Contributor Author

目的:数据库中建立相关表之后,可以通过该脚本插入表初始值,方便进行部署
使用方法:

$ cd Sirius/Aries
$ python manage.py shell
> from Aries.insert_initial_db_data import run
> run()

每个表的初始化都在不同的函数中,通过run函数来调用;因此可以修改run函数的实现,来定制自己想要的效果

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant