from cookie_api import JSONRenderer, Base, application_factory settings = { 'DATABASE': { 'URL': 'postgresql://apistar:local@localhost/apistar', 'METADATA': Base.metadata }, 'RENDERERS': [JSONRenderer()], 'JWT': { 'SECRET': 'thisisasecret' } } if __name__ == "__main__": app = application_factory(**settings) app.main()