HTTP Utilities with CherryPy
Various Blog Posts by Benjamin Smith
A set of Django template filters to make caring about typography on the web a bit easier.
I'm using x|encon (http://www.xencon.net/) for my Django hosting. Might add that in the future.
nice comparison; finally it's a matter of taste and of python vs. ruby.
base class for contact forms that notifiy admins/staff after submission
It occurred to me while I was researching serving static files from Apache, Lighttpd or nginx that why do I even bother?
I'm a strong fan of Amazon's web services. Especially their Simple Storage Solution (S3).
So, I messed around with my DNS settings at the wonderful SliceHost (http://slicehost.com) and found some info online about mapping a CNAME record to my S3 bucket and then BAM! Instant static media hosting!
I had to make one small change to my settings.py file. I changed the ADMIN_MEDIA_PREFIX to ADMIN_MEDIA_PREFIX = 'http://media.bitcircle.com/'
read more
This is a customized version of the default for template tag which takes an optional {% else %} clause that will be displayed if the given array is empty.
from django.template import *
t1 = Template("""
{% load mytags %}
{% for athlete in athlete_list %}
{{ athlete }}
{% else %}
No athlete in list!
{% endfor %}
""")
c1 = Context(
{'athlete_list':
['me ...
I’ve written a couple of things recently talking about useful things to be aware of when you’re putting together the URL configuration for a Django application — one covering a pitfall you should watch out for with regular expressions and one touching on the utility of the “url” tag and the “permalink” decorator, and the “reverse” utility — but you can never have too much useful information about URL configuration, because for a lot of ...
Read full entry and comments