试图将 Django-MongoDB 开发环境转移到生产环境
不断从 Web 界面收到以下错误:
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