Permalink
Browse files

Use a Python file

- Avoids struggle with WSGI home path
  • Loading branch information...
1 parent 1a38df8 commit eba74190e704f3f8bd935bf04717aeaa15e2bd34 @olleolleolle olleolleolle committed Oct 24, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 mugshots.py
View
@@ -4,10 +4,10 @@
import datetime
import sys
import os
+import secret_key
app = Flask(__name__)
-with open('%s/secret_key.txt' % os.getcwd()) as f:
- app.secret_key = f.read()
+app.secret_key = secret_key.key
db = flaskext.redis.init_redis(app)

0 comments on commit eba7419

Please sign in to comment.