Search
 
SCRIPT & CODE EXAMPLE
 

HTML

django base html

base.html

<!DOCTYPE html>
<html>
    <head>
        <title>My Project</title>
    </head>

    <body>
    {% block content %}{% endblock content %}
    </body>
</html>

And say you have an app called myapp with a view.html page,

{% extends "base.html" %}

{% block content %}
    <h2>Content for My App</h2>
    <p>Stuff etc etc.</p>
{% endblock content %}
Comment

PREVIOUS NEXT
Code Example
Html :: html code example 
Html :: bootstrap grids examples 
Html :: html separator line 
Html :: redirect to folder html 
Html :: HTML Select Dropdown Menu 
Html :: prevent image saving in html 
Html :: how to use figure and caption in html 
Html :: how to apply color to bootstrap icons 
Html :: display html input datetime-local value from mysql date time 
Html :: html bookmark spot 
Html :: how to set limit of words in input type text 
Html :: emmet vscode twig 
Html :: bootstrap 4 
Html :: how to comment in html 
Html :: html input js onclick button click 
Html :: font asweome cdn 
Html :: install php windows 10 
Html :: bootstrap dropdown going off page 
Html :: input with plus and minus buttons 
Html :: white text html 
Html :: html color code for green 
Html :: execute python script onclick html 
Html :: html video on end 
Html :: select input placeholder 
Html :: Drupal twig get value of entity reference field 
Html :: alert tailwind css 
Html :: form tag radio 
Html :: html typing shortcuts 
Html :: bootstrap notification 
Html :: html to powerpoint 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =