Update these settings in your project’s As of v0.4.4, all settings are contained inside the ACTSTREAM_SETTINGS dictionary. Here is an example of what you can set in your

    'MODELS': ('auth.user', '', '', 'comments.comment'),
    'MANAGER': 'myapp.streams.MyActionManager',
    'USE_PREFETCH': True,
    'USE_JSONFIELD': True,

Supported settings are defined below.


A list the models that you want to enable actions for. Models must be in the format app_label.model_name . In the background, django-activity-stream sets up GenericRelations to handle stream generation.

Defaults to ('auth.user',)


The Python import path of the manager to use for Action.objects. Add your own manager here to create custom streams.

For more info, see Writing Custom Streams

Defaults to actstream.managers.ActionManager


Set this to False to disable select_related and prefetch_related when querying for any streams. When True, related generic foreign keys will be prefetched for stream generation (preferrable).

Defaults to True


Set this to True to forcefully enable prefetch_related (Django>=1.4 only). On earlier versions, the generic foreign key prefetch fallback contained within actstream.gfk will be enabled.

Defaults to whatever version you have.


Set this setting to True to enable the JSONField for all actions. Lets you add custom data to any of your actions, see Adding Custom Data to your Actions

Defaults to False


Number of levels of relations that select_related will perform. Only matters if you are not running prefetch_related (Django<=1.3).

Defaults to 0

Table Of Contents

Previous topic


Next topic

Generating Actions

This Page