阅读背景:

按功能名称的Django基于反向类的视图不起作用

来源:互联网 

According to the django docs, viewname is either the function name or the url pattern name. But reversing an url like this 'reverse(MyView.as_view())' turns into a NoReverseMatch exception. Is there any way to reverse class based view by function name?According to the django docs, viewname is eithe




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

分享到: