我在django上创建了一个新项目,添加了两个模型并在admin中注册了它们。 当我尝试在管理面板中添加内容时,我收到错误消息:
OperationalError at /admin/mediaportalapp/category/add/
no such table: main.auth_user__old
Request Method: POST
Request URL: http://127.0.0.1:8001/admin/mediaportalapp/category/add/
Django Version: 2.1.4
Exception Type: OperationalError
Exception Value:
no such table: main.auth_user__old
Exception Location: /home/arch/Рабочий стол/mediaportal_project/MediaPortalEnv/lib/python3.7/site-packages/django/db/backends/sqlite3/base.py in execute, line 296
Python Executable: /home/arch/Рабочий стол/mediaportal_project/MediaPortalEnv/bin/python3.7
Python Version: 3.7.1
Python Path:
['/home/arch/Рабочий стол/mediaportal_project/mp_portal',
'/home/arch/Рабочий стол/mediaportal_project/MediaPortalEnv/lib/python37.zip',
'/home/arch/Рабочий стол/mediaportal_project/MediaPortalEnv/lib/python3.7',
'/home/arch/Рабочий '
'стол/mediaportal_project/MediaPortalEnv/lib/python3.7/lib-dynload',
'/usr/lib64/python3.7',
'/usr/lib/python3.7',
'/home/arch/Рабочий '
'стол/mediaportal_project/MediaPortalEnv/lib/python3.7/site-packages']
Server time: Sat, 22 Dec 2018 14:50:32 +0000
我也尝试过从无到有地开始几个新项目。