2012-01-05 91 views

回答

8

你明白了究竟,但一定要包括到/ views文件夾內的視圖中的相對路徑。所以,如果你有/views/default/other_view.html,你可以這樣做:

response.view = 'default/other_view.html' 

您也可以直接呈現任何觀點:

def myfunc(): 
    context = dict(...) 
    return response.render('default/other_view.html', context) 

herehere

相關問題