hi this is something personal choice i prefer to check GET and POST directly from the view method, but in some case is useful to part the GET and the POST view for readable and clean coding
El 11/04/2012, a las 01:21, John Yeukhon Wong escribió: > 3/4 down the page > http://www.djangobook.com/en/2.0/chapter08/ > urlpatterns = patterns('', # ... (r'^somepage/$', views.method_splitter, > {'GET': views.some_page_get, 'POST': views.some_page_post}), # ... ) > > Is this a good practice at all? If I use the method splitter, my urls will > look ugly. Or should I just separate based on the length of certain views? > (If it's too long, break it into two, or use the delegator) > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/django-users/-/AzISlKRiq0UJ. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.