[Fixed]-Django : Urls with django-activity-streams

1👍

You need have both these conditions met:

  • django.contrib.sites needs to be an entry in INSTALLED_APPS setting
  • Ensure django.contrib.sites needs to be present before actstream in the list of INSTALLED_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.

Leave a comment