Re: how to “break” from a regex in urlconf

2012-08-27 Thread Matthew Meyer
Fantastic solution, thank you so much. I will be sure to loose those phrases from my vocab as well :) On Monday, August 27, 2012 3:18:52 AM UTC-4, Melvyn Sopacua wrote: > > On 27-8-2012 4:14, Matthew Meyer wrote: > > > So the question: Is there a way I can keep the flexible tag regex > redirect

Re: how to “break” from a regex in urlconf

2012-08-27 Thread Melvyn Sopacua
On 27-8-2012 4:14, Matthew Meyer wrote: > So the question: Is there a way I can keep the flexible tag regex redirect > behavior but then "break" from it once I reach a product page? One > important thing to note is that I want to keep the product page within the > built up url scheme like: mens

how to “break” from a regex in urlconf

2012-08-26 Thread Matthew Meyer
I have the following views: def tag_page(request, tag): products = Product.objects.filter(tag=tag) return render(request, 'shop/tag_page.html', {'products': products, 'tag': tag}) def product_page(request, slug): product = Product.objects.get(slug=slug) return render(reque