摘要:
所有视图继承自View类,例如,RedirectView用于HTTP重定向,TemplateView扩展基类使它能渲染模板。 ListView类:要在index.html中用列表显示对象 <ul> {% for question in latest_question_list %} <li><a h 阅读全文
摘要:
所有视图继承自View类,例如,RedirectView用于HTTP重定向,TemplateView扩展基类使它能渲染模板。 ListView类:要在index.html中用列表显示对象 <ul> {% for question in latest_question_list %} <li><a h 阅读全文
|