1👍
✅
You need have both these conditions met:
django.contrib.sites
needs to be an entry inINSTALLED_APPS
setting- Ensure
django.contrib.sites
needs to be present beforeactstream
in the list ofINSTALLED_APPS
. (More on this here)
If either of these conditions are not met, django could raise the exception you are seeing.
The other thing i notice is, in your url patterns,
url(r'^activity/$', include('actstream.urls')),
should be
url(r'^activity/', include('actstream.urls')),
The $
indicates end of pattern, and none of the URLs under activity/
would be recognized if it is present.
Source:stackexchange.com