-1.
Replacing regular expressions with... well, what looks like regular
expressions with names doesn't make much sense, and even if it did
we're not going to change a major component like this in the middle of
a stable release line.
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
> Okay, I guess I can live with that. Maybe, if I can write a patch
> implementing this in a completely backwards-compatible way, I'll
> propose it again for a later version (earlier in the release cycle).
In the meantime you might want to have a look at Surlex, Cody
Soyland's 3rd party app that does pretty much what you propose: http://codysoyland.com/blog/2009/sep/6/introduction-surlex/
.
Best,
Janis
'pythonic' %(slug)s syntax is a good idea.
Regexes are very flexible but we don't need it in most cases.
Another crazy idea for shorter object fetch is
"/%(model_name.id)d/" or may be another syntax like "/%%(model_name)/"
to get rid of
get_object_or_404( id=int(id) )
at the first line of every view method.
--
-- mpe...@gmail.com icq:3861496 www.penzin.ru --
Another crazy idea for shorter object fetch is
"/%(model_name.id)d/" or may be another syntax like "/%%(model_name)/"
to get rid of
get_object_or_404( id=int(id) )
at the first line of every view method.