ProgrammingError at / relation "file_filetype" does not exist 我在部署django2.2项目到阿里云ECS上去,实例安装好了。然后按以下步骤进行: 1、安装虚拟环境:按教程已经成功。也建立了虚拟环境。 2、安装nginx:成功,可以看到初始页面; 3、安装postgresql10.11 for ubuntu18.04,按教程弄好了一切; 4、安装uwsgi:也能成功输出页面:Hello world. 5、上传项目文件到服务器后,就出了问题,我觉得问题可能是 migrations. 我的环境是:ubuntu18.04+nginx1.14+postgresql10+uwsgi2.18+python3.6.9+django2.2.9 异常如下:
ProgrammingError at /
relation "file_filetype" does not exist
LINE 1: ...id", "file_filetype"."file_type_chinesename" FROM "file_file...
^
Request Method: GET
Request URL:
Django Version: 2.2
Exception Type: ProgrammingError
Exception Value:
relation "file_filetype" does not exist
LINE 1: ...id", "file_filetype"."file_type_chinesename" FROM "file_file...
^
Exception Location: /home/tsfs/.virtualenvs/tsfswork/lib/python3.6/site-packages/django/db/backends/utils.py in _execute, line 84
Python Executable: /home/tsfs/.virtualenvs/tsfswork/bin/uwsgi
Python Version: 3.6.9
Python Path:
['.',
'',
'/home/tsfs/.virtualenvs/tsfswork/lib/python36.zip',
'/home/tsfs/.virtualenvs/tsfswork/lib/python3.6',
'/home/tsfs/.virtualenvs/tsfswork/lib/python3.6/lib-dynload',
'/usr/lib/python3.6',
'/home/tsfs/.virtualenvs/tsfswork/lib/python3.6/site-packages']
Server time: Sun, 23 Feb 2020 21:26:27 +0800
遇到了同样的问题,在CSDN看到了,希望阿里云团队能够给出正确、标准的答案~请查看
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。