so im new to Python and Django, im wondering if there is a concept like a template for the whole app/site like
<html>
...
<body>
{% content_goes_here %}
</body>
and than you got your views:
<tr>
{% name %}
</tr>
..
so i can use views as building blocks for my site but have a global template that does all the css/head/script/html stuff.
I know this concept from cakephp for example. How is this done in Django?
您可以通过使用模板继承来实现
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.