Answer the question
In order to leave comments, you need to log in
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 %}
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)
{% 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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question