updated examples
This commit is contained in:
parent
53a365dd2b
commit
d13af4bdc4
|
@ -4,13 +4,10 @@ pymongo==3.4.0
|
||||||
motor==1.1
|
motor==1.1
|
||||||
sanic==0.2.0
|
sanic==0.2.0
|
||||||
"""
|
"""
|
||||||
import asyncio
|
|
||||||
import uvloop
|
|
||||||
from sanic import Sanic
|
from sanic import Sanic
|
||||||
from sanic.response import json
|
from sanic.response import json
|
||||||
|
|
||||||
|
|
||||||
asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
|
|
||||||
app = Sanic('motor_mongodb')
|
app = Sanic('motor_mongodb')
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user