Thanks, I tried it last night and it seems like a fit for me, porting my 
PHP app logic.


On Monday, January 21, 2013 4:24:50 PM UTC-5, somecallitblues wrote:
>
> Use django-cart. It does store the cart content in db but it stores the 
> session as well, so it will nicely match the user to their cart content 
> according to the cart id stored inside a cookie. It's a breeze to implement 
> with any product model. I highly recommend it.
> On 22 Jan, 2013 7:43 AM, "frocco" <far...@gmail.com <javascript:>> wrote:
>
>> Thanks, I need to look at this, not sure how django-cart knows what 
>> records are for each user logged in.
>>
>> On Monday, January 21, 2013 11:12:01 AM UTC-5, Stefano Probst wrote:
>>>
>>>
>>> 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<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/-/-i0YYos4f3IJ.
>> To post to this group, send email to django...@googlegroups.com<javascript:>
>> .
>> To unsubscribe from this group, send email to 
>> django-users...@googlegroups.com <javascript:>.
>> For more options, visit this group at 
>> http://groups.google.com/group/django-users?hl=en.
>>
>

-- 
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/-/VrDDLcvfr3oJ.
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