Blocks in Django templates are not displayed?

Good afternoon, dear experts and experts. The question asks the student programming.

Do the video tutorial. Prescribed all there, but not displays the text in the template through the blocks. Open the page but the container is empty. What could be the problem? Screens know. For an hour I am suffering.

home.html
uprEV.jpg
base.html
nxJFJ.jpg
July 9th 19 at 13:33
1 answer
July 9th 19 at 13:35
Solution
You home.html and base.html lie in the same directory
1. Specify {% extends 'base.html' %} in home.html
2. You home.html render? So?
Not working! - Damaris.Fisher commented on July 9th 19 at 13:38
: You home.html render? - Nathan_Gaylord commented on July 9th 19 at 13:41
: What do you mean render? Can you explain? - Damaris.Fisher commented on July 9th 19 at 13:44
: show your view.py - Nathan_Gaylord commented on July 9th 19 at 13:47
: The url of the blog application, I wrote: url(r'^$', blog.views.home, name='home'), - Damaris.Fisher commented on July 9th 19 at 13:50
: Everything! Checked view.py there renterias base! Thanks for the tip! At the beginning of training always obvious do not understand and do not notice. - Damaris.Fisher commented on July 9th 19 at 13:53
: well, let the home that you have in blog/views.py - Nathan_Gaylord commented on July 9th 19 at 13:56
: so that's now changed! Standing base
def home(request):
return render(request, 'blog/home.html') - Damaris.Fisher commented on July 9th 19 at 13:59
: Not at all :) - Nathan_Gaylord commented on July 9th 19 at 14:02

Find more questions by tags DjangoPython