Re: an elusive ValueError: 'str' object not callable -- lost.

2013-01-31 Thread Tom Evans
On Wed, Jan 30, 2013 at 6:59 PM, Maurice Asimov wrote: > Hey guys. > > I recently started getting a ValueError complaining that an str is not > callable -- in a very wierd place. > > This happens to some calls to messages.info(request, 'somethingsomething'), > in one of those cases __inside the dj

an elusive ValueError: 'str' object not callable -- lost.

2013-01-30 Thread Maurice Asimov
Hey guys. I recently started getting a ValueError complaining that an str is not callable -- in a very wierd place. This happens to some calls to messages.info(request, 'somethingsomething'), in one of those cases __inside the django console__ Traceback: Traceback: File "/app/.heroku/python/

Re: 'str' object not callable

2010-10-26 Thread bruno desthuilliers
On 26 oct, 17:45, John Yeukhon Wong wrote: > This is part of my views > > [[[code]]]  from mysite.views > > def site_root(request): >     return HttpResponse("This is the site root") > def hello(request): >     return HttpResponse("Hello World") > > [[endcode]] > > My URLConf > [[code]] > from dja

'str' object not callable

2010-10-26 Thread John Yeukhon Wong
This is part of my views [[[code]]] from mysite.views def site_root(request): return HttpResponse("This is the site root") def hello(request): return HttpResponse("Hello World") [[endcode]] My URLConf [[code]] from django.conf.urls.defaults import * urlpatterns = patterns('mysite.view

Re: 'str' object not callable

2009-07-18 Thread grant neale
Yes it's the URL. you are probably calling an incomplete view or wrong template name. Grant On 18 Jul 2009, at 09:29, adelaide_mike wrote: > > Hi > Can some kind soul tell me what, in principle, this means: > > 'str' object not callable > > ? It

'str' object not callable

2009-07-18 Thread adelaide_mike
Hi Can some kind soul tell me what, in principle, this means: 'str' object not callable ? It seems to be associated with urls.py Newbie just needs some additional words to help. Have looked at the history of this, which did not help. I do not want to know why the error is arising

Re: Object not callable

2007-10-14 Thread Cat
Hi Malcolm Thanks for your reply. I have done a bit of reading/experimentation since my post and thought what you have said might be the case. I will have a look at your suggestions. However, I think I may be on the wrong track. What I want to do is create a custom form (ie SurveyForm) to both a

Re: Object not callable

2007-10-14 Thread Malcolm Tredinnick
On Thu, 2007-10-11 at 17:34 -0700, Cat wrote: > Hello > > Can anyone tell me why when I get to the line - form = > InstanceForm(request.POST) in the following view (stepping through the > code), I get a Type Error SurveyForm object is not callable. My > understanding is that it should be as it su

Re: Object not callable

2007-10-11 Thread Cat
Hi Jeremy This is the definition Thanks Cat class SurveyForm(forms.Form): survey_name = forms.CharField(required = True) associated_company = forms.ModelChoiceField(queryset = Company.objects.all(), required = True) operator = forms.ModelChoiceField(queryset = Operator

Re: Object not callable

2007-10-11 Thread Jeremy Dunck
On 10/11/07, Cat <[EMAIL PROTECTED]> wrote: > Can anyone tell me why when I get to the line - form = > InstanceForm(request.POST) in the following view (stepping through the > code), I get a Type Error SurveyForm object is not callable. My > understanding is that it should be as it subclasses Form

Object not callable

2007-10-11 Thread Cat
Hello Can anyone tell me why when I get to the line - form = InstanceForm(request.POST) in the following view (stepping through the code), I get a Type Error SurveyForm object is not callable. My understanding is that it should be as it subclasses Form def addEditSurvey(request, id = None):