Django错误:/ admin / auth / user / 1 / change /中的OperationalError

时间:2019-03-29 10:31:30

标签: django

我试图在管理页面中更改用户权限,但保存时实际上向我显示了此信息

我正在使用 Django版本:2.1.7 Python版本:3.7.2 因为我看到这是Django 2.1.5之前的问题,所以我不知道该怎么办

OperationalError at /admin/auth/user/1/change/
no such table: main.auth_permission__old
Request Method: POST
Request URL:    http://localhost:8000/admin/auth/user/1/change/
Django Version: 2.1.7
Exception Type: OperationalError
Exception Value:    
no such table: main.auth_permission__old
Exception Location: /usr/local/lib/python3.7/site-packages/django/db/backends/sqlite3/base.py in execute, line 298
Python Executable:  /usr/bin/python3
Python Version: 3.7.2
Python Path:    
['/home/Max/Documents/Workspace/Projet_Python/hey',
 '/usr/lib64/python37.zip',
 '/usr/lib64/python3.7',
 '/usr/lib64/python3.7/lib-dynload',
 '/home/Max/.local/lib/python3.7/site-packages',
 '/usr/local/lib64/python3.7/site-packages',
 '/usr/local/lib/python3.7/site-packages',
 '/usr/lib64/python3.7/site-packages',
 '/usr/lib/python3.7/site-packages']
Server time:    Fri, 29 Mar 2019 10:12:07 +0000

0 个答案:

没有答案