【发布时间】:2017-09-19 08:54:13
【问题描述】:
我在使用 postgresql 在 django 中实现数据库复制时遇到了一些挑战。我按照此页面上的说明进行操作 https://github.com/yandex/django_replicated/tree/master/django_replicated 但我一直收到错误消息。
“ReplicationMiddleware”对象不可调用
【问题讨论】:
标签: django postgresql python-2.7
我在使用 postgresql 在 django 中实现数据库复制时遇到了一些挑战。我按照此页面上的说明进行操作 https://github.com/yandex/django_replicated/tree/master/django_replicated 但我一直收到错误消息。
“ReplicationMiddleware”对象不可调用
【问题讨论】:
标签: django postgresql python-2.7
Middleware class in that library 使用 Django
你可以看到the note on the changes in the Django docs:
引入了一种新的中间件样式,用于新的 MIDDLEWARE 设置。如果您使用旧的 MIDDLEWARE_CLASSES 设置,则需要在使用新设置之前调整旧的自定义中间件。本文档描述了新型中间件。有关旧式中间件如何工作的说明,请参阅旧版文档中的此页面。
【讨论】: