Я пытаюсь настроить меня пирамиды приложение какPyMongo и Pyramid настройки
но при config.registry.settings['mongodb_conn'] = conn
получить ошибку:
File "/usr/local/lib/python2.6/dist-packages/pymongo-2.0.1-py2.6-linux-i686.egg/pymongo/database.py", line 682, in __call__
"failing because no such method exists." % self.__name)
TypeError: 'Database' object is not callable. If you meant to call the '__html__' method on a 'Connection' object it is failing because no such method exists.
, что случилось?
0 Какой тип db_uri вы используете? – varela
Я думаю, что это тот же вопрос, что и http://stackoverflow.com/questions/7201969/how-to-integrate-pyramid-1-1-and-mongo-db-as-few-lines-as-possible. –