html renders jinja code as html

Hi everybody,

I'm kind of nooby and having an issue with html and jinja, it seems that it just renders the jinja code as html. I've tried changing the code but i just can't get it to work.

This is what it get's render

from flask import Flask, render_template
#from flask_bootstrap import Bootstrap

app = Flask(__name__)
app.config['SECRET_KEY'] = 'test'
#bootstrap = Bootstrap(app)

def index():
    #if 'username' in session:
    return render_template('index.html', my_string="Wheeeee!", my_list=[0,1,2,3,4,5])


<!DOCTYPE html>
    <title>Flask Template Example</title>
      <p>My string: {{my_string}}</p>
      <p>Value from the list: {{my_list[3]}}</p>
      <p>Loop through the list:</p>
        {% for n in my_list %}
        {% endfor %}



Glad you worked it out -- what turned out to be the problem?

How did u fix this issue?

As the OP is a deleted user, I wouldn't expect an answer...