title: Template includes and django views/urls. How (do/should) they work?
body: <p>I have a mini box that pops up when hovered to reveal profile information(constantly being hidden). It's working due to a template include:</p>
  
  <pre><code>{% for i in leftbar_network|slice:":12" %}
       {% include "includes/mini_profile.html" %} 
  {% endfor %}
  </code></pre>
  
  <p>But I want to add some conditions and pull other information... for instance: check if they can be messaged. pull that specific profiles friend count.. yadda yadda. I have a url and view that should work. But it seems as though they're being completely ignored. </p>
  
  <p>template: </p>
  
  <pre><code>&lt;div class="mini-profile"&gt;
      &lt;div class="mini-profile-top"&gt;
          &lt;a href="/profile/{{i.get_type|lower}}/{{ i.user.username }}/" data-title="{{ i.user.get_full_name }}" data-content="{{i.get_type}}"&gt;
              &lt;img class="img-frame" width="90" height="90" src="{% if i.avatar %}{% thumbnail i.avatar 120x120 crop %}{% else %}{{ DEFAULT_AVATAR }}{% endif %}" alt="{{ i.user.get_full_name }}" /&gt;
          &lt;/a&gt;
          &lt;a href="/profile/{{i.get_type|lower}}/{{ i.user.username }}/" data-title="{{ i.user.get_full_name }}" data-content="{{i.get_type}}"&gt;{{ i.user.get_full_name }}&lt;/a&gt;
          &lt;div&gt;{{ i.get_type }}&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="mini-profile-bottom"&gt;
          {% if can_message %}
          &lt;form method="GET" action="/messages/compose/{{ i.get_type|lower }}/{{ i.user.username }}/"&gt;
              &lt;button class="btn btn-margin" type="submit"&gt;
                  &lt;i class="icon-envelope"&gt;&lt;/i&gt; Message
              &lt;/button&gt;
          &lt;/form&gt;
          {% else %}
          &lt;button class="btn btn-margin tooltip-bottom disabled" title="You need to be connected to message {{profile.user.get_full_name}}" type="submit"&gt;
              &lt;i class="icon-envelope"&gt;&lt;/i&gt; Message
          &lt;/button&gt;
          {% endif %}
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Is there any way to work with the {% include %} and generate a view around that? Or have I gone about this the wrong way? If so, how should I generate a mini box with a view and url that pops up smoothly? </p>
  
  <p>Example: Google chat, when hovering over a user.</p>
  
  <p>Thanks for your advice in advance. </p>