-
posts
-
QueryDict and update()
Yesterday I ran into an interesting quirk with Django’s QueryDict object and
the normal dictionary update() method. Normally the update method will allow
you to merge two dictionary or dictionary like objects but because the
QueryDict internally h...
-
Field/column Queries in Django
One of the neat things making it’s way into Django 1.1 is F object
queries.
The F object is kind of like the Q object as it can be used it queries but it
represents a database field on the right hand side of an equality/inequality.
For the exampl...
-
Python date range iterator
I couldn’t find something that gave me quite what I wanted so I created
a simple Python generator to give me the dates
between two datetimes.
def datetimeIterator(from_date, to_date):
from datetime import timedelta
if from_date > to_da...
-
Introduction to Algorithms
Today my copy of Introduction to Algorithms came in the mail (a gift from the
family). I’ve decided, mostly inspired by Peteris
Krumins to revisit classic algorithms as it’s been a
while since I’ve taken a look at them.
I have decided to als...
-
Django Sitemap Framework
Using the Django sitemap
framework is so
easy it’s almost no work at all. Just make a sitemap object and add it to the
sitemap in urls.py. The sitemap framework calls items() in your Sitemap to
get the list of objects to put in the sitemap and the...
-
Django admin inline forms
For my new project dlife (Update: Now
django-lifestream), I went
about implementing a simple comments interface that would allow users to make
comments on imported feed items. I wanted to support this in the admin in the
typical manner such that w...
-
Feedparser and Django
Over the weekend at Python Onsen I worked on a lifestream web application using Django and feedparser. I was really impressed with how simple feedparser is to use and how easy it is to get unified results from atom or rss feeds. You simply import ...
-
Python Onsen Oct. 2008
Last weekend I went to my second Python Onsen organized by
Nakai-san(id:voluntas). I talked about Python Onsen in
my first blog post. Python Onsen is a 3 day event (Fri, Sat,
Sun) but as before I only participated on Saturday and Sunday. This time...
-
jsonschema 0.2 alpha
I just released a new version of jsonschema 0.2 alpha over at http://code.google.com/p/jsonschema
The source can be downloaded here: jsonschema-0.2a.tar.gz
The documentation can be found here: jsonschema (version 0.2a) documentation
The new rele...
-
jsonschema mentioned on json.com
Kris Zyp (the author of the JSONSchema proposal)
mentioned
jsonschema
on his blog at
json.com. Thanks Kris!!