将Django与python一起使用时出错

2024-04-24 22:05:23 发布

您现在位置:Python中文网/ 问答频道 /正文

mongodb的数据库设置

    DATABASES = {  
         'default': {  
            'ENGINE': 'django_mongodb_engine',  
            'NAME': 'test',  
            'USER': '',  
            'PASSWORD': '',  
            'HOST': 'localhost',  
            'PORT': '27017',  
            'SUPPORTS_TRANSACTIONS': False,  
        } 

已经安装了mongodb引擎,mongodb norel,pymongo。。如果我遗漏了什么,请指引我。。在

^{pr2}$

Tags: djangonametest数据库localhostdefaulthostport