On 28 June 2010 12:07, kernel1983 <kernel1...@gmail.com> wrote: > There is exception Http404 in the system. > > During django programming, we often need to do some data valid: > > def A(request): > valid() > return render_to_response(...) > > def B(request): > valid() > return render_to_response(...) > ... > > def valid(): > throw Http301(url) > > With Http301 exception, we can save a lot of code instead of using > HttpResponseRedirect
I don't understand why you want to issue a "permanent redirect" in case of invalid(valid?) data ? Can you give a more complete example ? -- Łukasz Rekucki -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@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.