On Fri, Apr 27, 2012 at 4:03 PM, bruno desthuilliers
wrote:
> On Apr 27, 2:30 pm, Tom Evans wrote:
>>
>> The datetime class lives inside the datetime module.
>
> So far so good but!
>
>> You must have
>> "import datetime" in that code, perhaps as well as "from datetime
>> import datetime".
>
On Apr 27, 2:30 pm, Tom Evans wrote:
>
> The datetime class lives inside the datetime module.
So far so good but!
> You must have
> "import datetime" in that code, perhaps as well as "from datetime
> import datetime".
The first statement will import the datetime module and bind it to the
na
, I got the " 'module' object is not
> callable " error.
>
>
> Anybody can explain why this error occur..
>
The datetime class lives inside the datetime module. You must have
"import datetime" in that code, perhaps as well as "from datetime
import
mdtpart[1],fromdtpart[0]) <
> datetime(todtpart[2], todtpart[1], todtpart[0]):
>
> while execute the above line, I got the " 'module' object is not
> callable " error.
>
>
> Anybody can explain why this error occur..
>
> --
> You received this mes
Actually I am using datetime object for comparing two date inputs.
if datetime(fromdtpart[2],fromdtpart[1],fromdtpart[0]) <
datetime(todtpart[2], todtpart[1], todtpart[0]):
while execute the above line, I got the " 'module' object is not
callable " error.
Anybody can
on/2.5/site-packages/django/core/handlers/
> > > > > wsgi.py", line 228, in __call__
> > > > >self.load_middleware()
> > > > > File "/Library/Python/2.5/site-packages/django/core/handlers/
> > > > > base.py", line 47, in load_middleware
> &g
On Jun 19, 4:20 pm, Andy McKay wrote:
> > > On 19-Jun-09, at 3:38 PM, db_333 wrote:
>
> > > > File "/Library/Python/2.5/site-packages/django/core/handlers/
> > > > wsgi.py", line 228, in __call__
> > > > self.load_middleware()
> >
t; >
> > > File "/Library/Python/2.5/site-packages/django/core/handlers/
> > > wsgi.py", line 228, in __call__
> > >self.load_middleware()
> > > File "/Library/Python/2.5/site-packages/django/core/handlers/
> > > base.py"
228, in __call__
> > self.load_middleware()
> > File "/Library/Python/2.5/site-packages/django/core/handlers/
> > base.py", line 47, in load_middleware
> > mw_instance = mw_class()
> > TypeError: 'module' object is not callable
> > [19/Jun/
in load_middleware
>mw_instance = mw_class()
> TypeError: 'module' object is not callable
> [19/Jun/2009 14:09:22] "GET / HTTP/1.1" 500 644
But what Middleware do you have installed - whats the settings.py
value for middlewa
viron, self.start_response)
> File "/Library/Python/2.5/site-packages/django/core/servers/
> basehttp.py", line 635, in __call__
>return self.application(environ, start_response)
> File "/Library/Python/2.5/site-packages/django/core/handlers/
> wsgi.py", line 22
uot;, line 228, in __call__
self.load_middleware()
File "/Library/Python/2.5/site-packages/django/core/handlers/
base.py", line 47, in load_middleware
mw_instance = mw_class()
TypeError: 'module' object is not callable
[19/Jun/2009 14:09:22] "GET / HTTP/1.1"
I am really sorry for the stupid question
Import Contex whit the C (the doc is right) all work like a charm
Thanks
On 10/1/06, Brett Parker <[EMAIL PROTECTED]> wrote:
>
> On Sun, Oct 01, 2006 at 11:20:08AM +0200, Marco Amato wrote:
> > def index(request):
> >list = Evento.o
On Sun, Oct 01, 2006 at 11:20:08AM +0200, Marco Amato wrote:
> def index(request):
>list = Evento.objects.all().order_by('-data')[:5]
>t = loader.get_template('index.html')
>>c = context({'list': list,})
>return HttpRespon
I doesnt undestand this error :
Type error at /
'module' object is not callable
Request Method: GET
Request URL: http://127.0.0.1:8000/
Exception Type: TypeError
Exception Value: 'module' object is not callable
Excep
15 matches
Mail list logo