title: django messages not showing
body: <p>I'm trying to use django messages framework to display a message when a user signs out of my application. I'm new to django and the documentation isn't very clear to me. Why is my message not showing up?</p>
  
  <p><a href="https://docs.djangoproject.com/en/dev/ref/contrib/messages/#adding-a-message" rel="noreferrer">https://docs.djangoproject.com/en/dev/ref/contrib/messages/#adding-a-message</a></p>
  
  <p>VIEW.PY</p>
  
  <pre><code>from django.contrib import messages
  
  def signout(request):
      logout(request)
      messages.add_message(request, messages.INFO, 'Signout Successful.')
      return HttpResponseRedirect(reverse(index))
  
  def index(request):
      lf = LoginForm()
      if request.method == "POST":
          username = request.POST['username']
          password = request.POST['password']
          user = authenticate(username=username, password=password)
          if user is not None:
              if user.is_active:
                  auth_login(request, user)
      return render_to_response('test/home.html', {'login_form': lf,}, context_instance=RequestContext(request))
  </code></pre>
  
  <p>TEMPLATE - index</p>
  
  <pre><code>{% if messages %}
  &lt;ul class="messages"&gt;
      {% for message in messages %}
      &lt;li{% if message.tags %} class="{{ message.tags }}"{% endif %}&gt;{{ message }}&lt;/li&gt;
      {% endfor %}
  &lt;/ul&gt;
  {% endif %}
  </code></pre>
  
  <p>I'm using django1.3. And the following is required (note that .tz is commented out)</p>
  
  <pre><code>TEMPLATE_CONTEXT_PROCESSORS = (
      "django.contrib.auth.context_processors.auth",
      "django.core.context_processors.debug",
      "django.core.context_processors.i18n",
      "django.core.context_processors.media",
      "django.core.context_processors.static",
      #"django.core.context_processors.tz",
      "django.contrib.messages.context_processors.messages")
  </code></pre>
  
  <p>From documentation on TEMPLATE_CONTEXT_PROCESSORS:</p>
  
  <p>New in Django 1.3: The django.core.context_processors.static context processor was added in this release.</p>
  
  <p>New in Django 1.4: The django.core.context_processors.tz context processor was added in this release.</p>