-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
You must specify a URI or set the MONGO_URI Flask config variable #3
Comments
I've tried to reproduce your error by messing with my mongodb settings, but I haven't had luck. So a few questions:
|
I am using anaconda and have following packages |
In which file do we have to add this text? can you please tell the location of the file in Ubuntu. |
Are you using the mongo_uri and then defining the value |
When I try to run , I got the following error,
'''
mongo = PyMongo(app)
File "/usr/local/lib/python2.7/dist-packages/flask_pymongo/init.py", line 116, in init
self.init_app(app, uri, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/flask_pymongo/init.py", line 146, in init_app
"You must specify a URI or set the MONGO_URI Flask config variable",
ValueError: You must specify a URI or set the MONGO_URI Flask config variable
'''
Any help?
The text was updated successfully, but these errors were encountered: