Re: Django feeds sometimes generate AttributeError: 'LatestStripsByStripConfig' object has no attribute '__name __'

2010-11-27 Thread marty3d
> On 26 November 2010 10:35, marty3d wrote: > > > I have disabled cache and still getting the error. That > > leaves...what? :/ > > > I could really appreciate some help debugging this. > > On a closer look, this looks like:http://code.djangoproject.com/ticket/13842

Re: Django feeds sometimes generate AttributeError: 'LatestStripsByStripConfig' object has no attribute '__name __'

2010-11-26 Thread marty3d
I have disabled cache and still getting the error. That leaves...what? :/ I could really appreciate some help debugging this. Thank you, /Martin On Nov 25, 10:06 pm, marty3d wrote: > It's 1.2.3. I have two ideas, either it could be the cache (started > using filesystem cache a week

Re: Django feeds sometimes generate AttributeError: 'LatestStripsByStripConfig' object has no attribute '__name __'

2010-11-25 Thread marty3d
sz Rekucki wrote: > Well, something must have changed if you didn't had the problem > before. What version of Django are you running ? > > On 25 November 2010 15:38, marty3d wrote: > > > > > Hi! > > > My site have started to behave a little weird. >

Django feeds sometimes generate AttributeError: 'LatestStripsByStripConfig' object has no attribute '__name __'

2010-11-25 Thread marty3d
Hi! My site have started to behave a little weird. Lately, I get two or three errors per day, saying: Traceback (most recent call last): File "/home/mistalaba/.virtualenvs/production/lib/python2.5/site- packages/django/core/handlers/base.py", line 95, in get_response response = middleware_me

Re: HttpResponseRedirect(request.path) after request.POST issue

2010-05-14 Thread marty3d
chiming in with good advices! This is such a great community! /Martin On May 14, 10:41 am, Tom Evans wrote: > On Thu, May 13, 2010 at 6:11 PM, marty3d wrote: > > Thanks, that's a shame... > > So I'm now trying to do the request.POST stuff in a view instead. > &g

Re: HttpResponseRedirect(request.path) after request.POST issue

2010-05-13 Thread marty3d
ust be a "ContentType" instance. new_vote.content_type = ContentType.objects.get_for_id(form.cleaned_data['content_type']) #This SHOULD work, right? new_vote.save() return HttpResponseRedirect('/news/1/') #To make dynamic once the above code work Thanks, /Martin On May 13, 8:14 pm,

Re: HttpResponseRedirect(request.path) after request.POST issue

2010-05-13 Thread marty3d
h the post? Thanks! /Martin On May 13, 2:33 pm, Daniel Roseman wrote: > On May 13, 1:21 pm, marty3d wrote: > > > > > Hi! > > > I'm making this small generic voting application and have stumbled > > across a strange issue. > > My idea is that the user co

HttpResponseRedirect(request.path) after request.POST issue

2010-05-13 Thread marty3d
Hi! I'm making this small generic voting application and have stumbled across a strange issue. My idea is that the user comes to a page, like /news/slug where I'm having an inclusion tag showing up/down voting controls. Select your choice in the vote form and submit. The inclusion tag then takes t

Re: Strange error using modelformset_factory

2008-12-18 Thread marty3d
Ah I see. Thanks for the explanation! On Dec 18, 9:38 am, "alex.gay...@gmail.com" wrote: > The reason this occurs, even with valid data, is because is_valid() > triggers the validation procedures which set the cleaned_data > attribute. > > Alex > > On

Re: Strange error using modelformset_factory

2008-12-18 Thread marty3d
17, 4:23 pm, "Karen Tracey" wrote: > On Wed, Dec 17, 2008 at 7:49 AM, marty3d wrote: > > > Hi! > > > I've been stuck with this for some days now, and can't find any > > answers whatsoever. Please bare with me since I'm a newbie with Python/ >

Strange error using modelformset_factory

2008-12-17 Thread marty3d
Hi! I've been stuck with this for some days now, and can't find any answers whatsoever. Please bare with me since I'm a newbie with Python/ Django. I have this form that's created and populated using 'modelformset_factory'. What it's supposed to do is to 1. show a number of sets so the user can