1.Flask in HTTPResponse
HttpResponse with Flask seems in fact directly in the string we return
2.Flask in Redirect
Whenever access "/ redi" this address when redi view function triggers the redirect ( "/") Jump to the url: "/" and will trigger a "/" corresponds to the view function index ()
3.Flask the render (render_template)
HTML Web templates to render each frame must be some, as to the specific use render_template, leaving a suspense, looking back
Note: If you are using render_template return rendered template, please join a directory templates in the main directory of the project
Otherwise, there may be an exception that Jinja2 oh
Encounter this problem, basically the path to your template problem
1.Flask in HTTPResponse
HttpResponse with Flask seems in fact directly in the string we return
2.Flask in Redirect
Whenever access "/ redi" this address when redi view function triggers the redirect ( "/") Jump to the url: "/" and will trigger a "/" corresponds to the view function index ()
3.Flask the render (render_template)
HTML Web templates to render each frame must be some, as to the specific use render_template, leaving a suspense, looking back
Note: If you are using render_template return rendered template, please join a directory templates in the main directory of the project
Otherwise, there may be an exception that Jinja2 oh
Encounter this problem, basically the path to your template problem