MCPcopy
hub / github.com/pallets/werkzeug / __init__

Method __init__

examples/shorty/application.py:18–22  ·  view source on GitHub ↗
(self, db_uri)

Source from the content-addressed store, hash-verified

16
17class Shorty:
18 def __init__(self, db_uri):
19 local.application = self
20 self.database_engine = create_engine(db_uri, convert_unicode=True)
21
22 self.dispatch = SharedDataMiddleware(self.dispatch, {"/static": STATIC_PATH})
23
24 def init_database(self):
25 metadata.create_all(self.database_engine)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected