TypeError: 'module' object is not callable

2009-06-19 Thread db_333
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=True) build = models.CharField(max_length=50, blank=True)

Re: TypeError: 'module' object is not callable

2009-06-19 Thread db_333
ib.auth.models' ) I'm searching the APIs to see what I might be missing... any pointers? 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

Re: TypeError: 'module' object is not callable

2009-06-19 Thread db_333
On Jun 19, 4:25 pm, Alex Gaynor wrote: > 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', > >    '

debugging

2009-06-23 Thread db_333
Hi I'm trying to figure out why a record I am trying to save from a form will not commit. The form seems to be working fine, and I wanted to know if there were any specific debugging statements I could use to see where this is failing. The following is what I have: 1. model: class Units(models

Re: debugging

2009-06-24 Thread db_333
es) On Jun 23, 6:55 pm, Karen Tracey wrote: > On Tue, Jun 23, 2009 at 9:04 PM, db_333 wrote: > > > Hi I'm trying to figure out why a record I am trying to save from a > > form will not commit.  The form seems to be working fine, and I wanted > > to know if there were