main.py 文件源码

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

项目:mltshp 作者: MLTSHP 项目源码 文件源码
def __init__(self, *args, **settings):
        self.db = register_connection(host=options.database_host,
                                      name=options.database_name,
                                      user=options.database_user,
                                      password=options.database_password,
                                      charset="utf8mb4")
        if options.use_query_cache:
            lib.flyingcow.cache.use_query_cache = True
        if options.stripe_secret_key:
            stripe.api_key = options.stripe_secret_key

        super(MltshpApplication, self).__init__(*args, **settings)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号