Django decorator generates SiteProfileNotAvailable error
问题 Newbie to Python (2.6) and Django (1.2) here, learning the ropes. Consider the following decorator that I want to use on methods, along with @login_required, that redirects users to a profile completion url if they try and do something that requires a "minimum information supplied" profile. The usage pattern is intended to be: @login_required @min_profile_required def my_view(request): # do whatever. My current defintion of the min_profile_required decorator is as follows: def min_profile