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

Тел: +7 965 3737 888

474

Просмотров

1

Ответов

Protect anti robots template tag

<p>This code works like that in the Google Groups you see and when try to see an e-mail and it is like this "mari..@gmail.com" with a link to write a captcha code and see the true value.</p>
<p>You can use it for anything you want: links, blocks of texts, block of HTML, etc.</p>
<p>To use in your template, place the a code like this (remember to load the template tags file with a {% load file_name %} before):</p>
{% protectantirobots %}
  &lt;a href="mailto: {{ office.email }}"&gt;{{ office.email }}&lt;/a&gt;
{% endprotectantirobots %}

<p>You can also use <strong>django-plus</strong> application to do this:</p>
<p><a href="http://code.google.com/p/django-plus/">http://code.google.com/p/django-plus/</a></p>

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

Ответы (1):

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

Fixed line 65 (not subscriptable request object)