def app_settings(cls):
dirname = os.path.dirname(os.path.abspath(__file__))
return {
"debug": options.debug,
"cookie_secret": options.cookie_secret,
"xsrf_cookies": options.xsrf_cookies,
"twitter_consumer_key": options.twitter_consumer_key,
"twitter_consumer_secret": options.twitter_consumer_secret,
# invariant settings
"login_url": "/sign-in",
"static_path": os.path.join(dirname, "static"),
"template_path": os.path.join(dirname, "templates"),
"ui_modules": lib.uimodules,
}
评论列表
文章目录