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.
16 lines
314 B
Python
16 lines
314 B
Python
try:
|
|
import psycopg2
|
|
except ImportError:
|
|
# Fall back to psycopg2cffi
|
|
from psycopg2cffi import compat
|
|
|
|
compat.register()
|
|
|
|
from cookie_api import application_factory
|
|
|
|
app = application_factory()
|
|
|
|
if __name__ == '__main__':
|
|
app = application_factory()
|
|
app.serve('127.0.0.1', 8080, debug=True)
|