Skip to content

Commit

Permalink
Merge pull request heroku-python#28 from wujiang/patch-1
Browse files Browse the repository at this point in the history
provide MONGODB_USERNAME
  • Loading branch information
singingwolfboy committed Apr 22, 2015
2 parents 7111721 + 1efac39 commit 7c88639
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flask_heroku.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def init_app(self, app):
url = urlparse(mongolab_uri)
app.config.setdefault('MONGO_URI', mongolab_uri)
app.config.setdefault('MONGODB_USER', url.username)
app.config.setdefault('MONGODB_USERNAME', url.username)
app.config.setdefault('MONGODB_PASSWORD', url.password)
app.config.setdefault('MONGODB_HOST', url.hostname)
app.config.setdefault('MONGODB_PORT', url.port)
Expand Down

0 comments on commit 7c88639

Please sign in to comment.