title: Flask rendering templates from another folder
body: <p>I have a simple flask app with only an index.html page (so far), it's located in a folder with a bunch of javascript and CSS, which makes it a bit difficult to render. </p>
  
  <p>I tried listing the file path for my HTML, however, it gives an internal server error, when I open the browser. Should I instead declare the path as a variable and pass that in?</p>
  
  <p>I'm on Linux  Ubuntu 16.04 btw.</p>
  
  <p>here is my sample code:</p>
  
  <pre><code>from flask import Flask, render_template
  app = Flask(__name__)
  
  
  @app.route("/")
  @app.route("/home")
  def home():
      return render_template('/frontend/index.html')
  </code></pre>
  
  <p>here is how my directory is listed</p>
  
  <pre><code>--flaskwebsite
  ----routes.py
  ----routes.pyc
  ----templates
  ------frontend(other folders, javascript files etc)
  ------index.html
  </code></pre>