Videos4 6 - terryinfcco/python-flask-for-beginners Wiki

Video 4

Work with get and post requests.

@app.route('method', methods = ['GET', 'POST'])
def method (): 
	if request.method == 'POST':
		return ('Post request used')	
	else:	 
		return('probably a GET request')

Video 5 Flask Folder Hierarchy

Video 6 Getting started with Jinja 2 HTML templates

 <p>This is my root page.</p>

in app.py:

return render-template('index.html')