I create new app for this: regstreams, and then add this code to apps.py:
from django.apps import AppConfig, apps
from actstream import registry
class ActivityConfig(AppConfig):
name = 'regstreams'
def ready(self):
registry.register(apps.get_model('auth.User'))
Hi, I try to register user. I find other posts with this (eg. https://github.com/justquick/django-activity-stream/issues/216)
But not work for me. I have Django 3.1.7 version.
I create new app for this: regstreams, and then add this code to apps.py:
And in init.py
default_app_config = 'regstreams.apps.ActivityConfig'
But still I have error:
Please help.
Ok I get solution. Just move from actstream import registry to def ready(self) like this: