postgres 数据库错误:未创建 table

Error in postgres database : table is not created

当我迁移我的 Django 应用程序时,"Postgres" 数据库 "django_site" table 未创建。请帮我解决这个问题。谢谢。

启用站点框架

要启用站点框架,请按照下列步骤操作:

Add 'django.contrib.sites' to your INSTALLED_APPS setting.

定义一个 SITE_ID 设置:

SITE_ID = 1

运行 迁移。 您的网站 table 将立即创建。

来源:https://docs.djangoproject.com/en/1.10/ref/contrib/sites/

希望这对您有所帮助。