Hello, I need help.
Trying to use the Django template engine. Inheritance does not work.
- Created a project;
- Created the
Newsapp; Wrote the
#News views.pyfunctionfrom django.shortcuts import render def newsHome(request): return render(request, 'main/base.html')In the very
base.htmlmade markup and pointed tags{% block title%}{% endblock %}Next
home.htmlfile{% extends 'main/base.html'%} {% block title%}TEXT!!1{% endblock %}
However, no inheritance occurs. The page is displayed. But there is no text block. Why does not it work? Python 3.6.4; Django 2.0.2
return render(request, 'main/home.html')- andreymal