第1行:SELECT(1)AS“a”FROM“django_session”

时间:2018-01-27 15:01:35

标签: python django python-3.x postgresql

我在MacOS中创建了一个环境。 Django版本1.10.6。在Linux中,每件事都没问题,但在MacOS中我遇到了这个错误:

ProgrammingError at /
relation "django_session" does not exist
LINE 1: SELECT (1) AS "a" FROM "django_session" WHERE "django_sessio...
                               ^
Request Method: GET
Request URL:    http://localhost:8000/
Django Version: 1.10.6
Exception Type: ProgrammingError
Exception Value:    
relation "django_session" does not exist
LINE 1: SELECT (1) AS "a" FROM "django_session" WHERE "django_sessio...

重要的是,我无法在“网站”中运行迁移,只能在每个应用中运行。

0 个答案:

没有答案