Python/Flask web development : <p>I using flask web development to create a mini-web with python 2.7.</p>

<pre><code>import settings

from flask import Flask, render_template

app = Flask(__name__)
app.config.from_object(settings)

@app.route("/")
def hello():
    return "Hello World!"

@app.route("/login")
def login_template():
    return render_template("login.html") 

if __name__=="__main__":
    app.run()
</code></pre>

<p>The <code>@app.route("/")</code> is working perfectly fine but i got an error in <code>@app.route("/login")</code> because im tryng to <code>render_template("login.html")</code>.</p>

<p>The file is in a directory <code>/templates/login.html</code> in the same working directory</p>

<p>I got this error:</p>

<p><a href="https://i.gyazo.com/761c169e0d55de45e3dd6c7af346c48c.png" rel="nofollow">https://i.gyazo.com/761c169e0d55de45e3dd6c7af346c48c.png</a></p>

<p><a href="https://i.gyazo.com/571c079b44c6216612c16798d57d200a.png" rel="nofollow">https://i.gyazo.com/571c079b44c6216612c16798d57d200a.png</a></p>
