【发布时间】:2012-10-19 19:14:36
【问题描述】:
尝试将 Django-MongoDB 开发环境转移到生产环境
不断从网页界面收到以下错误:
ImproperlyConfigured at /
port must be an instance of int
在终端上,如果我运行
python manage.py syncdb
File "/home/user/lib/python-environments/djangomongo/local/lib/python2.7/site-packages/pymongo/connection.py", line 209, in __init__
raise TypeError("port must be an instance of int")
django.core.exceptions.ImproperlyConfigured: port must be an instance of int
【问题讨论】:
-
您的
settings.py、PORT = '1234'中有某处吗?应该是PORT = 1234。
标签: mongodb pymongo django-nonrel