Prafulla
Prafulla

Reputation: 85

Error in postgres database : table is not created

When I migrate my django application then in "Postgres" database "django_site" table is not created. Please help me to solve this problem. Thank you.

Upvotes: 0

Views: 303

Answers (1)

Darshan
Darshan

Reputation: 457

Enabling the sites framework

To enable the sites framework, follow these steps:

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

Define a SITE_ID setting:

SITE_ID = 1

Run migrate. your sites table will be created now.

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

Hope this helps.

Upvotes: 1

Related Questions