I am having some challenge implementing database replication in django using postgresql. I followed the instruction on this page https://github.com/yandex/django_replicated/tree/master/django_replicated but i keep getting the error.
'ReplicationMiddleware' object is not callable
The Middleware class in that library is using the "old" style middleware from Django < 1.10.
You can see the note on the changes in the Django docs:
A new style of middleware was introduced for use with the new MIDDLEWARE setting. If you’re using the old MIDDLEWARE_CLASSES setting, you’ll need to adapt old, custom middleware before using the new setting. This document describes new-style middleware. Refer to this page in older versions of the documentation for a description of how old-style middleware works.
It will need to be adapted for use with Django >= 1.10