Both the Smarty and Twig templating systems support "Template inheritance" as found in django's templating system. Both of these are popular and well supported templating systems however, twig has a syntax closer to django and so you may be more comfortable using this.
Smarty
To do this in smarty you can do so as in the following example, copied from the Smarty Documentation on Inheritence
layout.tpl
<html>
<head>
<title>{block name=title}Default Page Title{/block}</title>
</head>
<body>
{block name=body}{/block}
</body>
</html>
mypage.tpl
{extends file="layout.tpl"}
{block name=title}My Page Title{/block}
{block name=body}My HTML Page Body goes here{/block}
output of mypage.tpl
<html>
<head>
<title>My Page Title</title>
</head>
<body>
My HTML Page Body goes here
</body>
</html>
Twig
Again, there is great documentation for the use of this feature. In the twig documentation the example is more complex in order to demonstrate some of the more advanced features provided by twig but for comparative purposes I have written something which mirrors the smarty example in twig.
layout.twig
<html>
<head>
<title>{% block title %}Default Page Title{% endblock %}</title>
</head>
<body>
{% block body %}{% endblock %}
</body>
</html>
mypage.twig
{% extends layout.twig %}
{% block title %}My Page Title{% endblock %}
{% block body %}My HTML Page Body goes here{% endblock %}
Conclusion
In retrospect, both examples are almost identical and so choosing between the two is a matter of comparing the features and a completely different question. Using a PHP template framework you are able to achieve template inheritance much like how it is done with django.
Further Reading
ob_start()
andob_get_clean()
: symfony.com/doc/current/book/from_flat_php_to_symfony2.html – Opisthognathous