Skip to content

Commit

Permalink
#20: flask_form.py, redirect to 'static' directory if not POST method
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff1evesque committed Aug 27, 2014
1 parent 9a9c212 commit 11b2575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/python/flask_form.py
Expand Up @@ -17,7 +17,7 @@ def parse_request():
temp = request.form['svm_session']
return temp
else:
return redirect(url_for('/machine-learning/tests/python/form.html'));
return redirect(url_for('static', 'form.html'))

if __name__ == '__main__':
app.run()

0 comments on commit 11b2575

Please sign in to comment.