开发者

Django class based views, no loader erro

开发者 https://www.devze.com 2023-04-01 10:25 出处:网络
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)

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

精彩评论

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