title: Internal server error Flask
body: <p>First time learning Flask and I am trying to build things following a tutorial. I am getting this message in my browser when I input this url:</p>
  
  <pre><code>http://127.0.0.1:5000/index 
  
  127.0.0.1 - - [16/Jun/2014 19:37:41] "GET /index HTTP/1.1" 500 -
  
  Internal Server Error
  
  The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
  </code></pre>
  
  <p>I'm not sure why I am getting this error. Could someone help me out and tell me why? I am new to Flask and web development</p>
  
  <p>code:</p>
  
  <pre><code>from flask import Flask, request, make_response, redirect, render_template
  from flask.ext.script import Manager
  from flask.ext.bootstrap import Bootstrap
  
  
  app = Flask(__name__)
  manager = Manager(app)
  bootstrap = Bootstrap(app)
  
  @app.route('/index')
  def index():
      return render_template('index.html')
  
  @app.route('/user/&lt;name&gt;')
  def user(name):
      return render_template('user.html', name = name)
  
  if __name__ == '__main__':
      #app.run(debug = True)
      manager.run()
  </code></pre>
  
  <p>index.html:</p>
  
  <pre><code>{% extends "base.html" %}
  
  {% block title %} Index {% block title %}
  
  {% block head %}
      &lt;!-- Uses super() to retain the original contents--&gt;
      {{ super() }}
      &lt;style type="text/css"&gt;
  
      &lt;/style&gt;
  {% endblock %}  
  {% block body %}
  &lt;h1&gt;Hello, World!&lt;/h1&gt;
  {% endblock %}
  </code></pre>
  
  <p>This is my project structure:</p>
  
  <pre><code>/Flask_0_11
     /templates
        base.html
        index.html
        user.html
     hello.py
  </code></pre>