Re: Error: 'module' object is not callable

2012-04-27 Thread Tom Evans
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". >

Re: Error: 'module' object is not callable

2012-04-27 Thread bruno desthuilliers
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

Re: Error: 'module' object is not callable

2012-04-27 Thread Tom Evans
, 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

Re: Error: 'module' object is not callable

2012-04-27 Thread Timothy Makobu
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

Error: 'module' object is not callable

2012-04-27 Thread Gopi Kirupanithi
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

Re: TypeError: 'module' object is not callable

2009-06-23 Thread Paula Leuzzi
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

Re: TypeError: 'module' object is not callable

2009-06-19 Thread db_333
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() > >

Re: TypeError: 'module' object is not callable

2009-06-19 Thread Alex Gaynor
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"

Re: TypeError: 'module' object is not callable

2009-06-19 Thread db_333
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/

Re: TypeError: 'module' object is not callable

2009-06-19 Thread Andy McKay
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

Re: TypeError: 'module' object is not callable

2009-06-19 Thread Alex Gaynor
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

TypeError: 'module' object is not callable

2009-06-19 Thread db_333
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"

Re: 'module' object is not callable

2006-10-01 Thread Marco Amato
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

Re: 'module' object is not callable

2006-10-01 Thread Brett Parker
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

'module' object is not callable

2006-10-01 Thread Marco Amato
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