But this is what 
"sessions"<https://docs.djangoproject.com/en/1.4/topics/http/sessions/>does. By 
default a session is saved in the database but you can move it 
also in a cache 
(https://docs.djangoproject.com/en/1.4/topics/http/sessions/#using-cached-sessions
 
). Memcached is realy performant.
You can write by write "request.session['fav_color'] = green" and read by 
write "request.session['fav_color']" or "fav_color = 
request.session.get('fav_color', 'red')" then "red" is the default value if 
"fav_color" is'nt set.
Am Montag, 21. Januar 2013 15:44:47 UTC+1 schrieb frocco:
>
> I found django-cart, but it seems to write to the database.
> I want to keep items in session until they checkout.
>
> Thanks for the link to Shop, I will take a look at that also.
>
> On Monday, January 21, 2013 8:54:00 AM UTC-5, Stefano Probst wrote:
>>
>> Did you mean something like 
>> "sessions"<https://docs.djangoproject.com/en/1.4/topics/http/sessions/>(
>> example<https://docs.djangoproject.com/en/1.4/topics/http/sessions/#examples>
>> )?
>>
>> Am Montag, 21. Januar 2013 13:50:13 UTC+1 schrieb frocco:
>>>
>>> Hello,
>>>
>>> I am learning django and want to port an app over from PHP.
>>> In PHP, I use a session cart to store items purchased.
>>> Is there anything for django?
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/M0kVsnPBGOIJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to