Hello, i use a native django in appengine i have create a authentication middleware in django,. I am inspired by contrib
{{{ class LazyUser (object): def __get__ (self, request, obj_type = None): if not hasattr (request, '_cached_user'): from common import user request.__cached_user = user.get_user_from_request (request) return request.__cached_user class AuthenticationMiddleware (object): def process_request (self, request): request.__class__.user = LazyUser () }}} and in settings.py {{{ # Middlewares MIDDLEWARE_CLASSES = ( 'middleware.auth.AuthenticationMiddleware', ) }}} but i have this error : {{{ AttributeError at / 'NoneType' object has no attribute 'get_and_delete_messages' }}} I have checked in google, but i don't have really understand the problem. You have an idea for resolve this ? i have tested with beta django Thanks of lots ~sahid --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---