【发布时间】:2020-10-09 15:18:35
【问题描述】:
在我的本地机器上没有问题。一切运行完美。甚至 python manage.py check --deploy 在我的本地也没有出现任何问题。 无论使用管理命令,我得到的错误似乎都阻止了我对项目做任何事情。 但是当我在我的外部服务器上运行 makemigrations 进行部署时,它给了我这个错误:
Traceback (most recent call last):
File "/opt/pyapps/venv/lib/python3.8/site-packages/django/db/backends/utils.py", line 86, in _execute
return self.cursor.execute(sql, params)
psycopg2.errors.UndefinedTable: relation "Report_report" does not exist
LINE 1: SELECT "Report_report"."id" FROM "Report_report" ORDER BY "R..
【问题讨论】:
-
你
migrate你对外部服务器上的数据库所做的所有更改吗? -
它不允许我尝试。我实际上只是将文件放在服务器上。它的初始设置。
标签: django database postgresql django-models