awesome-python3-webapp
awesome-python3-webapp copied to clipboard
day4 最后test的时候出现awesome.user doesnt exist的报错
Traceback (most recent call last):
File "/Users/liulizhong/awesome-python3-webapp/www/test.py", line 15, in
源码是 import orm , asyncio from models import User, Blog, Comment
async def insert(loop): await orm.create_pool(loop = loop, user='liusanshui', password='12345', db='awesome')
u = User(name='Test', email='[email protected]', passwd='1234567890', image='about:blank')
await u.save()
loop = asyncio.get_event_loop() loop.run_until_complete(insert(loop)) loop.run_forever()
for x in insert(loop): pass
有没有大牛能帮忙看一下
你在数据里面建表了吗?在mysql 里面建立awesome数据库,在该数据库中建user表
没啊
在 2019-05-16 21:59:28,"行动zhe" [email protected] 写道:
你在数据里面建表了吗?在mysql 里面建立awesome数据库,在该数据库中建user表
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
yes
wolflb [email protected]于平成31年5月27日周一上午10:20写道:
没啊
在 2019-05-16 21:59:28,"行动zhe" [email protected] 写道:
你在数据里面建表了吗?在mysql 里面建立awesome数据库,在该数据库中建user表
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/michaelliao/awesome-python3-webapp/issues/51?email_source=notifications&email_token=AGTD55DROWWZKN6MGZD2GE3PXMZNNA5CNFSM4G3F5T22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWIRT6Q#issuecomment-496048634, or mute the thread https://github.com/notifications/unsubscribe-auth/AGTD55BMDGOTMEUFJ46GPE3PXMZNNANCNFSM4G3F5T2Q .