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