Skip to content

Commit

Permalink
Use a Python file
Browse files Browse the repository at this point in the history
- Avoids struggle with WSGI home path
  • Loading branch information
olleolleolle committed Oct 24, 2011
1 parent 1a38df8 commit eba7419
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mugshots.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit eba7419

Please sign in to comment.