title: Context Variable will not show up in Django template
body: <p>I am writing a blog application, and a variable will not show up when the page is rendered. Here is my <code>views.py</code> function for my blog app:</p>
  
  <pre><code>def post_share(request, post_id):
      # retrieves post by id
      post = get_object_or_404(Post, id=post_id, status='published')
      sent = False
  
      if request.method == 'POST':
          # FORM was submitted
          form = EmailPostForm(request.POST)
          if form.is_valid():
              # form fields passed validation
              cd = form.cleaned_data
  
              post_url = request.build_absolute_uri(post.get_absolute_url())                                          
              subject = '{} ({}) recommends you reading "{}"'.format(cd['name'], cd['email'], post.title)
              message = 'Read "{}" at {}\n\n{}\'s comments: {}'.format(post.title, post_url, cd['name'], cd['comments'])
  
              send_mail(subject, message, 'admin@myblog.com', [cd['to']])
              sent = True
  
      else:
          form = EmailPostForm()
      return render(request, 'blog/post/share.html', {'post': post,
                                                  'form': form,
                                                  'sent': sent})
  </code></pre>
  
  <p>And <code>forms.py</code>:</p>
  
  <pre><code>from django import forms
  from .models import Comment
  
  class EmailPostForm(forms.Form):
      name = forms.CharField(max_length=25)
      email = forms.EmailField()
      to = forms.EmailField()
      comments = forms.CharField(required=False, widget=forms.Textarea)
  </code></pre>
  
  <p>Relevant part of my HTML template:</p>
  
  <pre><code>{% block content %}
      {% if sent %}
          &lt;h1&gt; Email successfully sent &lt;/h1&gt;
          &lt;p&gt;
              "{{ post.title }}" was successfully sent to {{ cd.to }} .
          &lt;/p&gt;
      {% else %}
          &lt;h1&gt; Share "{{ post.title }}" by email&lt;/h1&gt;
          &lt;form action="." method="post"&gt;
              {{ form.as_p }}
              {% csrf_token %}
              &lt;input type="submit" value="Send e-mail"&gt;
          &lt;/form&gt;
      {% endif %}
  </code></pre>
  
  <p>The template loads and the email is sent but it only says:</p>
  
  <blockquote>
    <p>"Post Test" was succesfully sent to .</p>
  </blockquote>
  
  <p>I need it to say the recipients email.</p>