title: {% %} and {{ }} in Django
body: <p>I am learning Django and came across 2 sets of special characters that I haven't seen used like this before. I can guess what they are used for in the examples, but don't understand their scope.</p>
  
  <p>They are:</p>
  
  <ul>
  <li><code>{% if registered %}</code></li>
  <li><code>{{ user_form.as_p }}</code></li>
  </ul>
  
  <p>I added the <code>if registered</code> and <code>user_form.as_p</code> in for context. I am only concerned with the <code>{% %}</code> and <code>{{ }}</code> parts of it.</p>
  
  <ul>
  <li>Are these only used in Django or are they also used in Python?</li>
  <li>What is the meaning of each?</li>
  <li>Are there other similar sets of characters?</li>
  </ul>