Skip to content

Commit

Permalink
Switch to MONGO_URI
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaiarocci committed May 25, 2018
1 parent 1892026 commit cbb64cf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions settings.py
Expand Up @@ -22,11 +22,7 @@

# We want to seamlessy run our API both locally and on Heroku. If running on
# Heroku, sensible DB connection settings are stored in environment variables.
MONGO_HOST = os.environ.get('MONGO_HOST', 'localhost')
MONGO_PORT = os.environ.get('MONGO_PORT', 27017)
MONGO_USERNAME = os.environ.get('MONGO_USERNAME', 'user')
MONGO_PASSWORD = os.environ.get('MONGO_PASSWORD', 'user')
MONGO_DBNAME = os.environ.get('MONGO_DBNAME', 'evedemo')
MONGO_URI = os.environ.get('MONGODB_URI', 'mongodb://user:user@localhost:27017/evedemo')


# Enable reads (GET), inserts (POST) and DELETE for resources/collections
Expand Down

0 comments on commit cbb64cf

Please sign in to comment.