+1 on both: combine to regex IGNORABLE_URLS, and on empty defaults with
commented-out suggestion in generated settings.py
As a bonus, the transition for someone who has placed non-default values
in IGNORABLE_(STARTS_ENDS) to regexes is near trivial.
On Tue, 03 May 2011 23:16:12 +0300, Aymeric Augustin
<aymeric.augus...@polytechnique.org> wrote:
Hello,
Currently, there are two problems with
settings.IGNORABLE_404_(STARTS|ENDS):
- STARTS + ENDS is too limited: for example, there's no way to exclude
icon requests of iOS >= 4.2. A list of regexps would be more flexible.
- The default values are fairly arbitrary and prone to endless
discussion. An empty default would avoid that.
Luke suggested to replace them by a single setting IGNORABLE_404_URLS
here: http://code.djangoproject.com/ticket/15954#comment:2
The two old settings would be deprecated, following the usual path. In
the end, that will decrement the number of settings :)
That new setting would behave a lot like DISALLOWED_USER_AGENTS.
I am +1 on this suggestion, what do you think?
Best regards,
--
You received this message because you are subscribed to the Google Groups "Django
developers" group.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-developers?hl=en.