阅读背景:

基于Django动态类的通用视图

来源:互联网 

We've got a lot, a lot of views that utilize simple generic views that we used to loop over in urls.py and point to the same function based generic view. Now that we're moving to class based generic views, we need to replicate this functionality and we're being forced to move all of the logic into the urls.py file, like this:We've got a lot, a lot of views that utilize si




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

分享到: