阅读背景:

Django模板——为“include”模板更改上下文

来源:互联网 

I have a template that includes several tables. I want to use a sub-template which renders these tables in the same way. I can get it to work for a single table, by setting the context in the view and passing that to the template. But how do you change the data for to render another table for different data?I have a template that includes several tables.




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

分享到: