<div dir="ltr">I'm following a tutorial about Flask using Python 3.4.1, but I'm getting an error with a dead simple example:<div><br></div><div>generator.py:</div><div><br></div><div><div>from flask import Flask, render_template</div><div><br></div><div><br></div><div>app = Flask(__name__)</div><div><br></div><div>@app.route('/')</div><div>def index():</div><div><span class="" style="white-space:pre">        </span>return 'Hello World'</div><div><br></div><div><br></div><div>@app.route('/blog/post/')</div><div>def post():</div><div><span class="" style="white-space:pre">   </span>return render_template('post.html', post_content = "Hello, World (from a template)")</div><div><br></div><div><br></div><div>if __name__ == '__main__':</div><div><span class="" style="white-space:pre">  </span>app.run(port = 8000)</div></div><div><br></div><div>------------------------<br></div><div><br></div><div>base.html:</div><div><br></div><div><div><html></div><div><head></div><div><span class="" style="white-space:pre">     </span>{% block head %}</div><div><span class="" style="white-space:pre">           </span><title>Test</title></div><div><span class="" style="white-space:pre">    </span>{% endlbock head %}</div><div></head></div><div><body></div><div><br></div><div>{% block content %}{% endlbock content %}</div><div><br></div><div></body></div><div></html></div></div><div><br></div><div>------------------------</div><div><br></div><div>post.html:</div><div><br></div><div><div>{% extends "base.html" %}</div><div><br></div><div>{% block content %}</div><div><span class="" style="white-space:pre">        </span><!-- Header --></div><div><span class="" style="white-space:pre">      </span><div id = "header"></div><div><span class="" style="white-space:pre">                </span><h1>Blog post title</h1></div><div><span class="" style="white-space:pre">               </span><h2>Subtitle</h2></div><div><span class="" style="white-space:pre">              </span><h3 id = "date">date</h3></div><div><span class="" style="white-space:pre">    </span></div></div><div><br></div><div><span class="" style="white-space:pre">      </span><!-- Contect --></div><div><span class="" style="white-space:pre">     </span><div id = "content"></div><div><span class="" style="white-space:pre">               </span>{{ post_content }}</div><div><span class="" style="white-space:pre"> </span></div></div><div>{% endblock content %}</div></div><div><br></div><div>------------------------<br></div><div><br></div><div>I typed everything correct,acessing <a href="http://localhost:8000">http://localhost:8000</a> works, but <a href="http://localhost:8000/blog/post/">http://localhost:8000/blog/post/</a> gives me ' 500 Internal Server Error '. Why?</div><div><br></div><div>Python 3.4.1</div><div><br></div><div><div>Flask (0.10.1)</div><div>itsdangerous (0.24)</div><div>Jinja2 (2.7.3)</div><div>MarkupSafe (0.23)</div><div>pip (1.5.6)</div><div>setuptools (5.8)</div><div>Werkzeug (0.9.6)</div></div><div><br></div></div>