以下内容来自Django文档
Changed in Django 1.6:
In previous versions, the sites framework was enabled by default.
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.