Make sure you have all of the required installed apps. Note there are a few django.contrib
apps that are required, including django.contrib.sites
, which your error message indicates you missed.
Relevant portion of docs here.
EDIT:
INSTALLED_APPS
requires at least the following:
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.admin',
'django.contrib.sites', # Note this one is not included by default
'django.contrib.comments', # Note this one is not included by default
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.contenttypes',
'tagging',
'mptt',
'zinnia',
)
Also, you'll likely need to add a SITE_ID
setting.
SITE_ID = 1
Sites framework setup here.
EDIT 2:
Since Django 1.6 django.contrib.comments
is a separated project: django_comments
.
You must install it as in this quick install guide and add 'django_comments'
in INSTALLED_APPS
(not 'django.contrib.comments'
).