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

Тел: +7 965 3737 888

534

Просмотров

2

Ответов

Captcha Middleware

A middleware we are using to stop "spam" on Curse. It makes the user fill in a captcha box whenever they submit a form unless a cookie is set (which expires by default after 6 hours)

See also the template

Note: render_template is simply a shortcut function we have for doing render_to_response with a request context

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

Ответы (2):

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

This is a very good article.And I used this middleware in my test project. But how to check whether it is right for a user's input text? Can give me a example?

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

Please explain:

from cursesite.functions.template import render_template

What this function returns? Or supply code. Otherwise it doesn't work.