title: django for loop in a .html template page (newbie)
body: <p>The thing I really hate when learning a new language / framework is how ignorant I feel when I get stuck on a seemingly easy to solve issue.</p>
  
  <p>I have a django for loop inside a html page but for some reason it is not working. I have missed something and cannot fix the issue on my own, so I turn to StackOverflow to help me.</p>
  
  <p>This is my model I am running my query on <strong>models.py</strong>:</p>
  
  <pre><code>class RIAchievement(models.Model):
    riAchievementID = models.AutoField(primary_key=True, db_column="RIAchievementID")
    userLanguageVersionID = models.ForeignKey(UserLanguageVersion, db_column="UserLanguageVersionID")
    typeAchievementID = models.ForeignKey(TypeAchievement, db_column="TypeAchievementID")
    riAchievementTypeUserDescription = models.CharField(max_length=255, blank=True, null=True, db_column="RIAchievementTypeUserDescription")
    riAchievementDescription = models.TextField(max_length=2000, db_column="RIAchievementDescription")
    auth_user_id = models.ForeignKey(auth_user, db_column="auth_user_id")
    class Meta:
      db_table="RIAchievement"
  </code></pre>
  
  <p>This is where my <strong>models.py</strong> file is located in my project: GlobalXpy\app_data\models.py</p>
  
  <p>This is the code within my <strong>views.py</strong> file:</p>
  
  <pre><code>from django.shortcuts import render_to_response
  from GlobalXpy.app_data.models import RIAchievement
  
  def index(request):
    ri_achievement = RIAchievement.objects.all()
    get_template = loader.get_template('ri_achievement.html')
    return render_to_response(get_template)
  </code></pre>
  
  <p>This is the for loop that is inside my template file (<strong>ri_achievement.html</strong>):</p>
  
  <pre><code>{% for e in ri_achievement %}
    &lt;td&gt; Preview  Edit  Duplicate  Delete &lt;/td&gt;
    &lt;td&gt; FlagPath &lt;/td&gt;
    &lt;td&gt; AchievementType / RIAchievementTypeUserDescription &lt;/td&gt;
    &lt;td&gt; {{ e.riAchievementDescription }} &lt;/td&gt;
  {% endfor %}
  </code></pre>
  
  <p>Any assistance would be appreciated.</p>