B
B
blazer052016-01-23 11:41:47
Django
blazer05, 2016-01-23 11:41:47

Why doesn't the bootstrap 3.2.0 code work, according to the example from the book?

I am studying the book "How To Tango With Django" ( Russian translation , original ). I got to chapter 13 and got stuck.
I installed and configured bootstrap, it works, but by doing an example from the book, I cannot achieve the same design. Please help, please test this code and tell me if it works for you?
In general, this gray background does not display for me and does not display a small block on the left, I copied the code from the book completely.
The picture is how my design displays. Page "about"
a6b73d2619e74d179ae5920ea612b93d.jpg
And it should be like this!
1e3798cd925742ff9f5c3944c0a7cb16.jpg
The rest of the pages have the same problem, but the book says I should already have the same look. What did I do wrong?
The code:

{% extends 'base.html' %}

{% load staticfiles %}

{% block title %}About{% endblock %}

{% block body_block %}
    <div class="page-header">
                <h1>About</h1>
            </div>
            <div>
            <p></strong>.</p>

            <img  width="90" height="100" src="{% static "images/rango.jpg" %}" alt="Picture of Rango" /> <!-- New line -->
            </div>
{% endblock %}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2016-01-23
@vintello

on the screenshot you have the inscription About Rango
and in the code only <h1>About</h1>
later, there is such a code
it is described here everything is not so
similar it is not the same code

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question