django how get session in models or how get session out views
A:
Assuming that you have the sessions middleware enabled, you can access session
as a property of request which is passed into the view:
def my_view(request, *args, **kwargs):
print request.session['my_session_key']
T. Stone
2010-04-02 07:22:49