Re: Proposal for 1.2: Improved URL system

2009-10-19 Thread dchandek
-1. I would question the wisdom of introducing a second URL system on the basis of simplicity and clarity alone. The assertion that regular expressions are "ugly" and "difficult" is, I suppose, subjective. I prefer to think of them as "powerful". In any case, I think we should ask whether the

Accounting for protocol in building fully-qualified URLs

2009-02-23 Thread dchandek
Since some of my Django sites are behind https and others are not, I have been a bit frustrated by the lack of accounting for this in django.contrib.sites.models and/or Django project settings. I've seen the proposal to overhaul get_absolute_url() at http://code.djangoproject.com/wiki/ReplacingGe

Stripping admin form input (Ticket #6362)

2008-10-16 Thread dchandek
Just curious about the status of the feature request in Ticket #6362. IMO it fits nicely with the spirit of Django in reducing repetitive and boring work for the developer. I was originally researching this issue with respect to URLField in particular (saw ticket #6717), since leading or trailing

Generic view for serialized queryset

2007-02-23 Thread dchandek
FWIW, I didn't see anything like this in the distribution, and it might be useful ... def serialized(request, queryset, format, mimetype=None): """ Serialize queryset in specified format and return via HTTP Standard mimetype for format can be overridden with provided value """