djangosnippets.org: Latest snippets posted by dogadahttp://djangosnippets.org/users/dogada/2007-12-11T10:13:58.030958-06:00dogadaMathematical Captcha
2007-12-11T10:13:58.030958-06:00dogadahttp://djangosnippets.org/snippets/506/<p>Simple mathematical captcha where human is asked to solve a simple mathematical calculation like 2+3=?. Don't require database access or external libraries like PIL.</p>
<p>To use MathCaptchaForm subclass it and add your fields.</p>
<p>For example of usage and discussion about security of this captcha comparing with traditional image captcha please …</p>
Freely redistributableTable of Contents
2007-11-24T11:13:27.394968-06:00dogadahttp://djangosnippets.org/snippets/482/<p>Simple template filter that extracts from a text ids, replaces '_' with spaces and produces hyperlinked Table of Contents.</p>
<p>More info and usage example please see at <a href="http://www.mysoftparade.com/blog/autogenerated-toc/">http://www.mysoftparade.com/blog/autogenerated-toc/</a></p>
Freely redistributableDjango profiler
2007-11-10T10:05:25.109342-06:00dogadahttp://djangosnippets.org/snippets/461/<p>The script that can be used to profile any Django-powered web-site and find how many SQL-queries are used per page, how heavy html-pages are, etc.</p>
<p>To use the the script it's enough to put django-profile.py somewhere in PYTHONPATH and call it from the directory that holds projects' settings.py.</p>
<p>For more …</p>
Freely redistributable