Django template inherits the extend label instance code details

Modified on

… DEF Ordered (REQ): Return Render (Req, “Ordered.html”) DEF Shopping_car (Req): RETURN RENDER (Req, “Shopping_Car.html”)
  Modified in  

… Path (‘Ordered /’, Views.ordered), Path (‘Shopping_Car /’, Views.Shopping_car), …

  under the TMPLATES folder Create base.html file  

 .page-head {height: 50px Background-color: rebeccapurple;} .page-body .Menu {height: 500px; Background-color: antiquewhite; float: left; width: 20%;} .page-body .content {height: 500px; Background-Color: CornflowerBlue; float: Left; width: 80%} .page-footer {height: 50px; Background-color: green; clear: Both;}       Order     {% endblock%}  
{% Extends "Base.html"%} {% block content%}
{% endblock%} Shopping_car.html file {% extends "base.html"%} {% block content%}
Shopping cart {% endblock%}

The above is the Django introduced to you. Template inherits the Extend label instance code detailed, I hope to help everyone. If you have any questions, please leave a message, Xiaobian will reply to everyone in time. Thank you very much for your support of Tumi Cloud Website!
If you think this article helps you, welcome to reprint, please indicate the source, thank you!
© Copyright Notice
Just support it if you like
comment Grab the couch

Please log in to comment