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 <pleu...@gmail.com> wrote:

>
> 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
>
> On Jun 19, 4:25 pm, Alex Gaynor <alex.gay...@gmail.com> wrote:
> > On Fri, Jun 19, 2009 at 6:24 PM, db_333 <pleu...@gmail.com> 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',
> > >        'django.contrib.auth.models'
> > > )
> > > I'm searching the APIs to see what I might be missing...  any
> > > pointers?
> >
> > > On Jun 19, 4:20 pm, Andy McKay <a...@clearwind.ca> 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()
> > > > >  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" 500 644
> >
> > > > But what Middleware do you have installed - whats the settings.py
> > > > value for middleware?
> >
> > > > It looks like that might be problem, none of the above code.
> >
> > Why did you add 'django.contrib.auth.models' to your middleware?  That's
> > whats causing your issue, but what were you hoping to accomplish?
> >
> > Alex
> >
> > --
> > "I disapprove of what you say, but I will defend to the death your right
> to
> > say it." --Voltaire
> > "The people's good is the highest law."--Cicero
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to