A small site 5 pages. Footer Heder are the same
prescribe them like this On every page:
<? include 'blocks/header.php'; ?> <!-- Здесь код страницы --> <? include 'blocks/footer.php'; ?> Outwardly, everything is displayed as needed.
am i doing right or is there a better way?
every page on the site has a php extension, is it ok? (I just don't know it myself)
{% extends 'base.html' %}. I don’t know if php can be so clean, but I consider the variant indicated in the question text to be worthless - andreymal<?; 2. Such pages should not contain data processing, but should be called from the pages that implement it (read about the separation of logic and display) - tutankhamun