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)
评论列表
文章目录