Commits

Chris Jones  committed 0071a25

Added a settings file and default values.

  • Participants
  • Parent commits 2e9c693

Comments (0)

Files changed (2)

 from flask import Flask, render_template
 import redis
+import settings
+
 app = Flask(__name__)
 app.debug = True
 
-r = redis.Redis()
+r = redis.Redis(host=settings.REDIS_HOST, port=settings.REDIS_PORT,
+    db=settings.REDIS_DB)
 
 @app.route('/')
 def index():
+REDIS_HOST = 'localhost'
+REDIS_PORT = 6379
+REDIS_DB = 0