title: Django store information in one variable
body: <p>I have different pages with items, each item has its own price which I would like to store in one variable and then send all of them to paypal payment form.
  So question is,how can I store information about price from different pages? I tried sessions but nothing happens.</p>
  
  <pre><code>        &lt;article&gt;
   {% block content %}
          &lt;span&gt;Kuriame mieste registruojiesi&lt;/span&gt;
          &lt;select&gt;
              {% for item in upsell.skaidyti_miestus %}
                  &lt;option value="{{item}}"&gt;{{ item }}&lt;/option&gt;
              {% endfor %}
          &lt;/select&gt;
       {%if upsell.prideti_upsell_nr_2_taip%} 
          &lt;button onclick="location.href='/upselliai/{{upsell.upsell_nr2_taip.id}}/pirkti/'"&gt;Taip, pridÄ—ti prie bendros sumos&lt;/button&gt;
       &lt;!-- {#prideti kaina paimti ID} --&gt;
          {% else %}
       &lt;button onclick="location.href='/pirkejas/apmoketi'"&gt;Taip, pridÄ—ti prie bendros sumos&lt;/button&gt;
       {%endif%}
       {%if upsell.prideti_upsell_nr_2_ne%}   
          &lt;a href="/upselliai/{{upsell.upsell_nr2_ne.id}}/pirkti/"&gt;{{ upsell.atsisakymo_tekstas }}&lt;/a&gt;
          &lt;!-- {#prideti kaina paimti ID} --&gt;
       {% else %}
       &lt;a href="/pirkejas/apmoketi"&gt;{{ upsell.atsisakymo_tekstas }}&lt;/a&gt;
       {%endif%}
  {% endblock %}
      &lt;/article&gt;
  </code></pre>
  
  <p>my views.py </p>
  
  <pre><code>def pirkti_upsell(request, upsellis_id = 1):
  
  #if 'pirkejas_id' in request.session:
  session_pirkejas_id = request.session['pirkejas_id']
  Upsellis.objects.get(id = upsellis_id).sum(session_pirkejas_id)
  
  return render_to_response("upsell_template.html", {"upsell": Upsellis.objects.get(id = upsellis_id)})
  </code></pre>