Snippet List
Sometimes a plain-text help-text isn't sufficient, and it's handy to be able to add links to pages, documentation or external websites.
This javascript snippet can be added to your page, in combination with adding a class to your help text in your template. This assumes you're using jQuery on your website.
Field template snippet:
```
{% if field.help_text %}<p class="help-text">{{ field.help_text }}</p>{% endif %}
```
On document ready, this will convert the markdown-style links into anchor tags, allowing you to have richer help text for your users
- help
- link
- documentation
- docs
- href
- help_text
We had some fun today on the #django IRC channel searching and counting through past logs for people saying "thanks" to [a known very helpful person](http://djangopeople.net/magus/).
Here's a unix shell script for checking your own score if you're using Pidgin and have logging turned on.
Replace ".purple" with ".gaim" in the script if you're using Gaim (an older version of Pidgin).
- log
- help
- irc
- thanks
- score
Just put it in your python path and add it into MIDDLEWARE_CLASSES.
I know that there are a couple of snippets on this site that do something similar to this, but none of them quite suited me.
I wanted something that would indent and space the SQL so that I could differentiate it from the other output from the development server.
Also, I wanted something that would output total query execution time, which my solution does. I just hope that it's useful for someone else, too!
UPDATE: Now this should no longer get upset when running it on windows.
- sql
- middleware
- profile
- debug
- help
- console
- printing
- speed
3 snippets posted so far.