Hi,
I have a Django template as my front-end. At the back-end, I used the sessions provided from Gaeutilities to store a variable (email).
Front-end:
{% if session.Email %}
<div id="entersite">WELCOME <em>{{session.Email}}</em></div>
{% else %}
<div id= "entersite"><a href="/login/" id= "entersite">Enter the Site</a></div>
{% endif %}
Back-end:
self.session = Session()
self.session['email'] = email
temp = os.path.join(os.path.dirname(__file__),'templates/index.htm')
outstr = template.render(temp, {})
self.response.out.write(outstr)
Problem: How do I access the stored session on the server side and use it on the Django template (front-end)?
Anybody can give an update on this qns?