0

I get the following error when I try to install https://github.com/balanced/balanced-django "No module named balanced_django.middleware"

I followed the instructions provided in the README file.

1. pip install balanced

(after doing source env/bin/activate, I ran pip install backend)

2. MIDDLEWARE_CLASSES += (
    ...
    'balanced_django.middleware.BalancedMiddleware',
    ...
)

3. BALANCED = {
    'secret': '7b7a51ccb10c11e19c0a026ba7e239a9',
}

What am I doing wrong?

4

1 回答 1

2

看起来“balanced-django”实际上并不是一个库,而是一个关于如何将 Django 与 Balanced 集成的旧演示。

我找到了您想要的库(并且似乎正在积极开发):

https://github.com/balanced/django-balanced

于 2013-03-20T14:37:32.903 回答