Answer the question
In order to leave comments, you need to log in
How to name a tab in Django framework?
This is the file: base.html
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<title>{% block title %)Мой сайт{% endblock %}</title>
</head>
<body>
{% block content %}{% endblock %}
</body>
</html>
{% extends 'base.html' %}
{% block title %}Последние статьи{% endblock %}
{% block content %}
Блабла ...
{% endblock %}
from django.shortcuts import render
def index(request):
return render(request, 'articles/list.html')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question