Пример #1
0
 def get(self):
     return render_to_response(self, 'main.html')
     
Пример #2
0
		def wrapper(request, *args, **kwargs):
			context_dict = func(request, *args, **kwargs)
			if not isinstance(context_dict, dict):
				return context_dict
			return shortcuts.render_to_response(request, template_name,
					context_dict)