Z
Z
zelsky2015-04-19 12:33:32
Django
zelsky, 2015-04-19 12:33:32

Django block inheritance?

I can't figure out why it doesn't display.
Inherit page from base html

{% block title %}{{ alb_opis.Name_album }}{% endblock title %}

view
show_albums = Album.objects.all().filter(id_alb=alb_id)
  context = {'phot':get_photos,'categor': categir,'alb_opis':show_albums}
  return render(request,'adst/galar.html',context)

Base html start
{% load staticfiles %}


<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
  <title>{% block title %} {% endblock title %}  </title>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri Shikanov, 2015-04-19
@zelsky

block title != block meta_title

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question