2010-02-01 60 views
0

所有,Django的模板例外處理

有一個模板說x.html 其contes是

<form action ="/lookinto/a"> 
<p >name:</td><td> <input type="text" id=name" name="name"></input></p></tr> 
<tr><td> 
<p >Section:</td><td> <input type="text" id="section" name="section"></input></p></td></tr> 
</form> 

我的問題是,處理,/ lookinto /年的時候,如果我有一個例外,如何將數據發送回x.html

即,如果名稱是xx,並且保存時出現錯誤,xx如何從視圖發送回x.html。

感謝......

回答