Grigory Fateyev wrote: > If I undastand, your MIDDLEWARE code checks any permissions through any > view, right?
You and Andrew use different approaches. Your backend is checking a password against a foreign database and then creates a new Django user corresponding to that account. You don't need a special middleware because your backend works (or rather it should) under the built-in middleware in django.contrib.auth. Andrew (as far as I understand) does not rely on a auth's middleware and uses his own to check user's credentials and instantiate request.user totally working around the built-in infrastructure with backends and such... Getting back to the original problem, it's worth to stick some exceptions around the code to see what real values do vars and params have. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---