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()
>
> >
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
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
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
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
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
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
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
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
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
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
11 matches
Mail list logo