Задать вопрос

Тел: +7 965 3737 888

411

Просмотров

1

Ответов

HTTP authentication using your ModelBackend

<p>Save this file as httpauth.py. This example should help you guys out for sure.</p>
from httpauth import *
@logged_in_or_basicauth()
def temp_view(request):
    pass

<p>Feel free to contact me in case you need help.
By <a href="http://dipankar.name">Dipankar sarkar</a>
me@dipankar.name</p>

Вопрос полезен? Да0/Нет0
file_2903.py(4.2Кб)
None

Ответы (1):

Ответarne:17.11.2008
Ответ полезен? Да0/Нет0

I don't see a big difference to snippet 243, only that this snippet allows username or e-mail address as login-name.