4
dict와 객체를 템플릿에 전달해야합니다. 그래서, 나는 이것을한다django의 RequestContext에 여러 객체 전달
rc = RequestContext(request, {'prob':prob}, {'result':result})
return render_to_response('subject/question.html', context_instance=rc)
나는 얻는다.
Traceback: File "C:\Python27\lib\site-packages\django\core\handlers\base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs) File "E:\django-sample\proschools\..\proschools\subject\views.py" in eval_c
72. rc = RequestContext(request, {'prob':prob}, {'result':result}) File "C:\Python27\lib\site-packages\django\template\context.py" in __init__
173. self.update(processor(request))
Exception Type: TypeError at /practice/c/eval/
Exception Value: 'str' object is not callable
감사합니다. 누군가가 장고에 대해 '좋은'책을 쓴 최고의 시간입니다. – John