Permalink
Browse files

More work on template

  • Loading branch information...
1 parent dd455f5 commit 8f379dcb10da13362b08488001e7e5e59fa3646d @whaity whaity committed Sep 11, 2011
Showing with 6 additions and 6 deletions.
  1. +2 −3 main.py
  2. +4 −3 templates/logon.html
View
@@ -7,11 +7,10 @@ def index():
@app.route('/logon', methods=['POST', 'GET'])
def logon():
- values = [request.logon['username'], request.logon['password']]
+ values = request.logon['username']
return render_template('logon.html', values=values)
-
@app.route('/new/')
def new():
return "Create a new PO"
@@ -26,4 +25,4 @@ def view(po_number):
if __name__ == "__main__":
- app.run()
+ app.run(debug=True)
@@ -1,6 +1,7 @@
<!doctype html>
-<title>user . pass</title>
-{{ values.username }} <br />
-{{ values.password }}
+<title>user . pass</title>
+{% for v in values %}
+{{ v.username }} <br />
+
Vesion 2

0 comments on commit 8f379dc

Please sign in to comment.