Announcement
iPhone DZone: Fresh Links On Your iPhone by matt at Sat Jul 05 14:09:51 EDT 2008
Reading DZone on your iPhone just got a little bit easier. Visit http://dzone.com/iphone from your iPhone to try out our beta iPhone support. You can view stories, filter by tags, and login. We'd appreciate your feedback at feedback@dzone.com.
Voting at DZone is super easy, but you aren't logged in. Login and vote now.
By skoop
via zerokspot.com
Published: Apr 21 2008 / 08:52
A couple of days ago, a topic came up on the django-users mailinglist where someone asked how to avoid code repetition in views if the views mostly do the same (for instance do some processing on the request parameters or check a certain session variable etc.).
There is one question you have to ask yourself first, though: Does this common processing require request-specific data like session-data or request parameters?
SaveShareSend
Tags: frameworks, python
Add your comment