i implemented custom simple auth backend (two methods - authenticate and get_user, nothing special), now i could successfully authenticate and login my customUser
, but what should i need to do to have possibility call request.user
with my customUser
in the views methods? For now it just give me an error 'WSGIRequest' object has no attribute 'user'
UPD. Turns out, i forg开发者_开发技巧ot to add default 'django.contrib.auth.middleware.AuthenticationMiddleware'
in settings.py
. It worked now
精彩评论