justquick / django-activity-stream

Generate generic activity streams from the actions on your site. Users can follow any actors' activities for personalized streams.
http://django-activity-stream.rtfd.io/en/latest/
BSD 3-Clause "New" or "Revised" License
2.38k stars 482 forks source link

Add multidatabase support #533

Open davit555 opened 1 year ago

davit555 commented 1 year ago

in case when you want to add this framework in already existing project with the separate database it won't work it will fallback to default database always

auvipy commented 1 year ago

did you try django multi db config?

pembo13 commented 7 months ago

I too wanted to keep the activity in a separate database, but it doesn't work.

Because of the heavy reliance on contentypes a db router doesn't work. If you allow the contenttypes to be created in the secondary database, it's out of sync with the default database, and generic lookups fail. If you don't allow contenttpes in the secondary database, one gets errors since django_content_type does not exist.