Tag: dry

Here you can see a listing of all the posts tagged with dry on this website.

  • DRY in Django views

    Posted on April 19, 2008 at 08:52 +0200 Tagged with ,

    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?

    [more ...]

    4 comments