manage.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:InfoSub 作者: CoderHito 项目源码 文件源码
def initdb():
    """
    init database, create all tables, create user plan and create admin.
    """
    print("init database...")
    try:
        from app.model.user import UserPlan, User, PlanUsage
        from app.model.info import WebSite, Article, SiteType, Tag, tags
        from app.model.subscribe import UserSub
        db.create_all()
    except Exception as e:
        print e

    try:
        init_user()
    except Exception:
        pass

    print "finish."
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号