Can the URL dispatcher know about escaped punctuation in the path?

2009-07-20 Thread James Pearce
Simple one, I'm sure. In short, can the Django URL dispatcher tell between http://site.com/first%2esecond.json and http://site.com/first.second.json ? The reason is that I have a RESTful API, where the object name can be used to address it, and I'd like the name to be able to contain periods.

Filtering does not work through recursive models

2009-02-01 Thread James Pearce
(or so it seems) My model has a class with a reference to itself. It's for modelling a hierarchy of geographical areas. (e.g. cities in states, states in countries, countries in continents etc) class Area(models.Model): name = models.CharField(max_length=50) parent