阅读背景:

Django:实现嵌套的,可重用的组件设计

来源:互联网 

I'm working on a big social networking app in Django where I expect to use certain front-end components many times, and often with functionality designed in such a way that custom components contain other custom components, which might contain yet smaller subcomponents (ad infinitum). All of these components are typically dynamic generated. I'm trying to figure out the best way to architect this in the Django framework, such that my components are easy to maintain and have clear programming interfaces. Relying heavily on global context would seem to be the opposite of this, however, I can see advantages in avoiding redundant queries by doing them all at once in the view.I'm working on a big social networking app in D




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

分享到: