解决 OperationalError at /admin/sign/event/add/

OperationalError at /admin/sign/event/add/

no such table: sign_event
Request Method: POST
Request URL: http://127.0.0.1:8000/admin/sign/event/add/
Django Version: 2.2
Exception Type: OperationalError
Exception Value:
no such table: sign_event
Exception Location: D:\python\lib\site-packages\django\db\backends\sqlite3\base.py in execute, line 383
Python Executable: D:\python\python.exe
Python Version: 3.8.3
Python Path:
['D:\\guest1\\guest2',
 'D:\\python\\python38.zip',
 'D:\\python\\DLLs',
 'D:\\python\\lib',
 'D:\\python',
 'D:\\python\\lib\\site-packages']
Server time: Sun, 22 Nov 2020 11:51:07 +0000

 

 

出现该问题说明数据没有创建成功,再重新执行一下 python manage.py    migrate  (Django 版本需要大于1.9)

posted @ 2020-11-22 20:29  顶点测试  阅读(748)  评论(0)    收藏  举报