1👍
✅
Can access to the request using self.request
, so try:
return render_to_response('userpics/photo.html',
{'pic':pic,},
context_instance=RequestContext(self.request))
Source:stackexchange.com