On Wed, Oct 19, 2011 at 7:20 PM, Wilfred Hughes
<wilf...@potatolondon.com> wrote:
> 1. Can we provide an example of a pattern containing "|" that doesn't
> work? I've successfully reversed the pattern r'^fruit/(bananas|apples)
> $' above.

Any regexp with alternation that is not part of a captured parameter:

url(r'^homepage/(?:apple|banana)$', 'homepage', name='bad_homepage')
url(r'^homepage/a|b$', 'homepage', name='bad_homepage2')


Cheers

Tom

-- 
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.

Reply via email to