Hey Sivaram,
Here fav_color is just a a variable and you are putting the value of what
is in request.session['fav_color'] into it
and request.session['fav_color'] is getting the key/value
so think of it this way
request {
'session' : { 'fav_color' : 'GREEN' }
}
you a
I am learning django.
I came accross the django doc about session.
My question is for example if i am having the below models.py
class Report(models.Model):
user = models.ForeignKey(User, null=False)
report_number = models.CharField('Incident Number', max_length=100)
device_id = mode
2 matches
Mail list logo