Skip to content
Browse files

Add support for debug argument

  • Loading branch information...
1 parent 842839d commit 74889b7f3b87fcd8a0d6153599f3ba23a3eb7da5 @jonasb jonasb committed Oct 24, 2011
Showing with 5 additions and 1 deletion.
  1. +1 −1 README.md
  2. +4 −0 mugshots.py
View
2 README.md
@@ -15,7 +15,7 @@ Now using a template and a CSS and a favicon, and Jinja template language.
Start by e.g.
- python mugshots.py
+ python mugshots.py debug
## Setup
View
4 mugshots.py
@@ -2,6 +2,7 @@
from flask import Flask, g, abort, flash, redirect, url_for, request, render_template
import flaskext.redis
import datetime
+import sys
app = Flask(__name__)
with open('secret_key.txt') as f:
@@ -152,4 +153,7 @@ def get_circles():
return render_template('report.html', report=report)
if __name__ == "__main__":
+ if 'debug' in sys.argv:
+ app.debug = True;
+
app.run()

0 comments on commit 74889b7

Please sign in to comment.
Something went wrong with that request. Please try again.