阅读背景:

如何将数据传递到django布局(如'base.html')而不必通过每个视图提供它?

来源:互联网 

I am trying to pass the data to layout 'base.html'. I am currently doing it by storing the data in request.session and accessing it in 'base.html' through request object. Is there any way to pass the data to 'base.html' without having to pass the data from every views.I am trying to pass the data to layout 'base.ht




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

分享到: