Re: Understanding sessions

2009-03-14 Thread sotirac
ion['cart'] =cart just like you have in your get_cart method. > > Stephen > > On Fri, Mar 13, 2009 at 5:02 PM, sotirac wrote: > > > Looking at the django-cart open source code: > > > cart = request.session.get('cart', None) or Cart() > > >

Re: Understanding sessions

2009-03-13 Thread sotirac
Thanks in advance. On Mar 13, 3:57 pm, sotirac wrote: > What is happening here: > > fav_color = request.session.get('fav_color', 'red') > > Is it trying to retrieve 'fav_color' from the session.  If

Understanding sessions

2009-03-13 Thread sotirac
What is happening here: fav_color = request.session.get('fav_color', 'red') Is it trying to retrieve 'fav_color' from the session. If it doesn't exist, does it put it in the session and assign the value 'red' for it. --~--~-~--~~~---~--~~ You received this mess

using django-gcal, how do i defined the "instance" parameter

2008-10-26 Thread sotirac
I'm implementing django-gcal into my project. (http://code.google.com/p/django-gcal) I'm trying to invoke the get_event_data() method from view.py but I'm kind of clueless how to pass the instance parameter. def get_event_data(self, instance): """ Returns a CalendarEventData objec

use vObject for event calender application?

2008-10-14 Thread sotirac
Has anybody had any experience using vObject (http:// vobject.skyhouseconsulting.com/). I want to try to create an event calendar application in django and all blogs/website suggest that I use this as part of the backend. Just want to make sure that I am going down the correct path. I haven't se

Re: using forloop variable to get the provide special tags for the 4th element.

2008-09-23 Thread sotirac
Hi Steve, the cycle tag fixed the issue. Thanks. On Sep 15, 1:00 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > Lee Hinde wrote: > > > On Sun, Sep 14, 2008 at 10:00 PM, sotirac <[EMAIL PROTECTED] > > <mailto:[EMAIL PROTECTED]>> wrote: > > >     In th

strategy for deploying to production server

2008-09-23 Thread sotirac
Just trying to get a feel for what other developers are doing when deploying to a production server. There are some differences between my development machine and production server such as the location of my media files, the database settings, and if I want to enable caching or not. Right now m

Re: using forloop variable to get the provide special tags for the 4th element.

2008-09-15 Thread sotirac
Thank you. I'll test this out. I also found the "cycle" tag which looks very promising. On Sep 15, 1:05 am, "Lee Hinde" <[EMAIL PROTECTED]> wrote: > On Sun, Sep 14, 2008 at 10:00 PM, sotirac <[EMAIL PROTECTED]> wrote: > > > In the django temp

using forloop variable to get the provide special tags for the 4th element.

2008-09-14 Thread sotirac
In the django template where I am using a for loop, I have to use a special tag (div class="yui-u first" instead of div class="yui") for every forth item. Im trying to create a table with three columns. I can access the first loop but how do I do it for every third. -- {% extends "b

working with yaml fixtures

2008-09-14 Thread sotirac
I'm trying to initialize my database using yaml fixtures. I've created a yaml fixtures directory (src/fixtures). Within the yaml fixtures directory, I created a yaml fixtures file title websites.yaml. I first had error saying that: neptune:$ python manage.py loaddata fixtures/websites.yml Probl

how do i do background tasks

2008-08-31 Thread sotirac
i'm creating an application that will read rss feeds. i'm using the universal feed parser library. i have a feed model (has the url to the feed) and an entry model (for each individual entry). Is there a method in the model that I have to overwrite that will allow me to retrieve rss entries in th