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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.