section on your website which should be the same on every single page, such as a 
footer block.  You could hard-code your 
footer into the template, but it would be nicer to be able to manage it through the add a 
footer to all our pages. Since we want our 
footer on every single page, we should add it to our base template (mysite/templates/base.html). Place it at the bottom of the HTML 
:  <footer>   {% {% static_placeholder 'footer' %}  footer>  Save the template and return to your browser. Refresh any page in Structure mode, and you’ll see the new static placeholder. If you add some content to it in 0 码力 |
          395 页 |
          1.64 MB
          | 1 年前 3
  section on your website which should be the same on every single page, such as a footer block.  You could hard-code your footer into the template, but it would be nicer to be able to manage it through the static placeholders from a template, you can reuse them later.  So let’s add a footer to all our pages. Since we want our footer on every single page, we should add it to our base template (mysite/templates/base (mysite/templates/base.html). Place it near the end of the HTML  element:  <footer>  {% static_placeholder 'footer' %}  footer>  {% render_block "js" %}    4.1. Django/Python compatibility table 13  django
 0 码力 |
          278 页 |
          1.63 MB
          | 1 年前 3
  section on your website which should be the same on every single page, such as a footer block.  You could hard-code your footer into the template, but it would be nicer to be able to manage it through the static placeholders from a template, you can reuse them later.  So let’s add a footer to all our pages. Since we want our footer on every single page, we should add it to our base template (mysite/templates/base Django/Python compatibility table 13  django cms Documentation, Release 3.9.0  <footer>  {% static_placeholder 'footer' %}  footer>  {% render_block "js" %}  
  Save the template and return to your browser