title: How to assign one variable to another in Django template
body: <p>What I want to achieve is very simple, and I have tried few different things but none of them are working for me. I am using Django version 1.10 and python 3.4 (not sure if it matters)</p>
  
  <p>This is what I want to do, <code>variable_a = variable_b</code> or <code>variable_b = variable_a</code></p>
  
  <p><strong>Failed Attempt #1:</strong></p>
  
  <pre><code>{% variable_a = variable_b %}
  </code></pre>
  
  <p><strong>Failed Attempt #2:</strong></p>
  
  <pre><code>{% with varibale_b as variable_a %}
  {% endwith %}
  </code></pre>
  
  <p><strong>Failed Attempt #3:</strong></p>
  
  <pre><code>{{ variable_a|default:variable_b }}
  </code></pre>
  
  <p><strong>Failed Attempt #4:</strong></p>
  
  <p>Filter:</p>
  
  <pre><code>@register.assignment_tag
  def define(variable_a=None):
    return variable_a
  </code></pre>
  
  <p>template:</p>
  
  <pre><code>{% define variable_b as variable_a %}
  </code></pre>