CODE:
<form>
    <div class="form-group">
    <label for="sel1">Select list (select one):</label>
    <select class="form-control" id="sel1" style="width: 96px">
        {% for i in 150 %} <!-- here is what I ask for -->
            <option>{{ i + 1989 }}</option>
        {% endfor %}
    </select>
    </div>
</form>
I want to make year select form which is from 1900 to 2050.
How can I use i variable in django template tag?
 
     
    