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.
(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
2 matches
Mail list logo