开发者

Django class based views, no loader erro

While the code below works fine when the server is running, using south or syncdb gives me errors:

SomeTemplateView.as_view(template_name=get_template("app/test.html").name)

However this code works bo开发者_开发知识库th during server running and using south or syncdb:

SomeTemplateView.as_view(template_name="app/test.html")

What's the catch?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜