from names.oauth import NamesOAuthService from srht.config import cfg from srht.database import DbSession from srht.flask import SrhtFlask db = DbSession(cfg("names.sr.ht", "connection-string")) db.init() class NamesApp(SrhtFlask): def __init__(self): super().__init__("names.sr.ht", __name__, oauth_service=NamesOAuthService()) self.url_map.strict_slashes = False from names.blueprints.web import web self.register_blueprint(web) app = NamesApp()