ImportError: No module named django.sessions

在settings.py中配置

SESSION_ENGINE = 'mongoengine.django.sessions'


使用mongoengine管理django的seesion时报错


ImportError: No module named django.sessions


参考文档

http://docs.mongoengine.org/django.html

6. Django Support

Note

Django support has been split from the main MongoEnginerepository. The legacy Django extension may be found bundled with the0.9 release of MongoEngine.


新的mongoengine已经把django的扩展分到

django-mongoengine

中去了

0.9以前的版本才打包在一起


选择使用0.9版本的mongoengine


pip install mongoengine==0.9.0



你可能感兴趣的:(django)