Skip to content

Commit

Permalink
Ensure host port is an integer.
Browse files Browse the repository at this point in the history
  • Loading branch information
christabor committed Jul 6, 2016
1 parent 5966730 commit f43624d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charts_builder/settings.py
Expand Up @@ -5,7 +5,7 @@
# DB Settings - Defaults to values specific for Mongo,
# but Postgresql is also supported.
DB_URI = os.environ.get('CHARTS_DB_HOST', 'localhost')
DB_PORT = os.environ.get('CHARTS_DB_PORT', 27017)
DB_PORT = int(os.environ.get('CHARTS_DB_PORT', 27017))
DB_NAME = os.environ.get('CHARTS_DB_DB', 'charts')
# This name is used for table/collection,
# regardless of Postgresql or Mongodb usage.
Expand Down

0 comments on commit f43624d

Please sign in to comment.