You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cookie-api/wsgi.py

18 lines
373 B
Python

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()