My thread got hijacked :( After rooting around a little bit, I've figured out that the error is never getting removed from request.session['ERRORS']. Is there a particular point where this should be getting removed?
On Jul 22, 10:34 am, Udbhav <[email protected]> wrote: > Currently, in order to be able to submit credit card #s to Pay Flo > Pro, I have the file cache backend enabled with a timeout of 300. > However, I have no template caching enabled as far as I know. I'm > just starting to understand caching with django, so I haven't really > modified much in the way of cache in the settings from what's created > with a default satchmo project. > > From what I can understand of caching within templates in django, you > need to use the {% cache %} tag to cache a block of your template, > which I haven't used at all. I temporarily moved my templates > directory, forcing Satchmo to use only its own templates to render the > page, and am still encountering the same problem. > > On Jul 21, 8:38 pm, Chris Moffitt <[email protected]> wrote: > > > Any chance you are using caching in part of your templates? > > > -Chris > > > On Tue, Jul 21, 2009 at 5:38 PM, Udbhav <[email protected]> wrote: > > > > I'm getting an integer as expected. The only way I can get rid of the > > > error showing up on all product pages is by clearing cookies from my > > > browser, or logging out and logging in as another user. It shows up > > > when simply viewing a product page, even if I'm not attempting to add > > > a product. > > > > On Jul 21, 6:23 pm, Chris Moffitt <[email protected]> wrote: > > > > I'd throw some debugging statements in there to see if the value you're > > > > getting for "minimum" is what you are expecting. There could be some > > > caching > > > > going on but I don't think that's the issue. > > > > > -Chris > > > > > On Tue, Jul 21, 2009 at 3:31 PM, Udbhav <[email protected]> wrote: > > > > > > I have my own product model inheriting from satchmo's, which has a > > > > > minimum quantity field. I've hooked up a listener that checks to see > > > > > if the quantity being added to the cart in satchmo_cart_add_verify is > > > > > at least equal to the minimum quantity if it's defined. This all > > > > > works fine, the only problem is that once the error has been raised, > > > > > it shows up as an error on every product page. Anybody know what > > > > > might cause this, would it have anything to do with my cache? Here's > > > > > my listener code for reference... > > > > > >http://dpaste.com/hold/69662/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en -~----------~----~----~----~------~----~------~--~---
