在哪里可以下载 Django 模板示例?
我刚刚开始在一个地方作为前端开发人员工作,我需要构建 Django 模板。我以前从未使用过这些,有谁知道我可以在哪里下载示例模板,以便我可以查看代码结构?
我不会使用 Django 框架进行任何应用程序开发,只会采用开发人员提供给我的变量并将其合并到我构建的 html/css 模板中。
I just started working at a place as a front end developer where I need to build Django templates. I never worked with these before, does anyone know where I can download a sample template so I can look through the code structure?
I won't be doing any application development using the Django framework, only taking the variables the developer gives me and incorporating the in the html/css templates I build.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以查看许多开源 django 应用程序来获取灵感。一个例子是 Zinnia,它是一个博客应用程序 - 该项目中有数十个模板,请参阅此目录。 http://github.com 和 http://bitbucket.org
您还应该看看 官方模板文档,那里有很多非常有用的片段。
There are lots of Open Source django apps that you could look at for inspiration. One example is Zinnia which is a blogging application - there are dozens of templates in this project, see this directory. There are many other open source django projects on http://github.com and http://bitbucket.org
You should also take a look at the official template documentation, there are lots of snippets there that are very useful.
这是一个很好的小教程。
http://www.webmonkey.com/2010/02/use_templates_in_django/
另外,查看 Django 文档。
http://docs.djangoproject.com/en/1.3/ref/templates/内置函数/
Here's a nice little tutorial.
http://www.webmonkey.com/2010/02/use_templates_in_django/
Also, Check out the Django Docs.
http://docs.djangoproject.com/en/1.3/ref/templates/builtins/