I'm trying to implement a generic view that performs some pre-processing and redirects to an external website. Essentially I want to query and update the database before performing the redirect each time the view is accessed.
I spotted Python + Django page redirect but this only deals with simple redirects and not with generic views.
Can anyone provide an example on how this should be implemented?
Any help you can give would be greatly appreciated,
Niall