Re: TypeError: 'module' object is not callable

2009-06-23 Thread Paula Leuzzi
Is there any way to tell through debugging if there's an issue with saving a record? This form seems to work fine, but the record does not save. I'm lost as to why it's not committing. Any pointers on debug statements for this kind of issue? On Fri, Jun 19, 2009 at 4:32 PM, db_333 wrote: > >

Re: TypeError: 'module' object is not callable

2009-06-19 Thread db_333
I wanted to later implement a login based on a user session, and I got some guidance from pretty decent Django book on learning to build websites with Django. However, I can see that I need to better understand how the middleware APIs work before I jump ahead. I appreciate your quick responses O

Re: TypeError: 'module' object is not callable

2009-06-19 Thread Alex Gaynor
On Fri, Jun 19, 2009 at 6:24 PM, db_333 wrote: > > here's what I have for the Middleware: > > MIDDLEWARE_CLASSES = ( >'django.middleware.common.CommonMiddleware', >'django.contrib.sessions.middleware.SessionMiddleware', >'django.contrib.auth.middleware.AuthenticationMiddleware', >

Re: TypeError: 'module' object is not callable

2009-06-19 Thread db_333
here's what I have for the Middleware: MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.models' ) I'm searching the APIs t

Re: TypeError: 'module' object is not callable

2009-06-19 Thread Andy McKay
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() > File "/Library/Python/2.5/site-packages/django/core/handlers/ > base.py", line 47, in load_middleware >mw_instance = mw_cla

Re: TypeError: 'module' object is not callable

2009-06-19 Thread Alex Gaynor
On Fri, Jun 19, 2009 at 5:38 PM, db_333 wrote: > > Hi, > > I am new to Django and am trying to create a simple form around an > existing database (I'm using 1.0). The Model I have looks like this: > > class Units(models.Model): >serial_number = models.CharField(max_length=25, primary_key=Tru