阅读背景:

Django Python——如何在一个HTML模板中显示来自不同表的信息。

来源:互联网 

I have a MySQL database containing 4 tables. Those tables have 4 corresponding classes in my models.py file (in my Django app). I have defined some views in the views.py file and made some HTML templates but each template can communicate only with 1 view (and I think it has to be like this). But I would like to display on a html template informations coming from different tables (classes from models.py).I have a MySQL database containing 4 tables. Th




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: