Hi, On 8/6/07, Alex Nikolaenkov <[EMAIL PROTECTED]> wrote: > > Right, so moving on to your real question: > >> Here is an example of case-insensitive urls. They rock: > >> http://www.askeri.ru/PUBLISH/ > >> http://www.askeri.ru/publish/ > > > They do indeed rock. Luckily, supporting them is super-easy:: > > (r'(?P<slug>[\w]+)/$', my_view) > > def my_view(request, slug): > > o = MyObject.objects.get(slug__iexact=slug) > > Bingo; case-insensitive URLs! Rock on. > That's understood. But this code smells bad. Dont you think so? > F.e. most even do not know what '(?: )' means. Furthermore view is not > the right place to parse urls. View is a formatting object in my > viewpoint. Just like the XSLT template.
Please just learn django. Thank you. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---