-1 ... IMO that's a change that we really don't need :), and isn't hard to implement if developer prefer 'exceptions' way.
2010/6/28 Sergej dergatsjev eecho <sergej.dergats...@gmail.com> > -1 > > 2010/6/28 kernel1983 <kernel1...@gmail.com>: > > 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 > > > > So I suggest add this feature, will be helpful to django developers. > > > > -- > > 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<django-developers%2bunsubscr...@googlegroups.com> > . > > For more options, visit this group at > http://groups.google.com/group/django-developers?hl=en. > > > > > > > > -- > Sergej Dergatsjev > E-mail: sergej.dergats...@gmail.com > Skype: SergejDergatsjev > Site: http://www.eecho.info > > -- > 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<django-developers%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-developers?hl=en. > > -- Felipe 'chronos' Prenholato. Linux User nº 405489 Home page: http://chronosbox.org/blog Twitter: http://twitter.com/chronossc -- 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.