Django 1.8.x Documentationa special-case 404 view.) This is blazingly fast, because the regular expressions are compiled at load time. Once one of the regexes matches, Django imports and calls the given view, which is a simple concept of “template inheritance”. That’s what the {% extends "base.html" %} does. It means “First load the template called ‘base’, which has defined a bunch of blocks, and fill the blocks with the following html” template, including the use of static files, might look like: mysite/templates/base.html {% load staticfiles %}{% block title %}{% endblock %} 0 码力 | 1685 页 | 6.01 MB | 1 年前
3
Django 1.8.x Documentationa special-case 404 view.) This is blazingly fast, because the regular expressions are compiled at load time. Once one of the regexes matches, Django imports and calls the given view, which is a simple concept of “template inheritance”. That’s what the {% extends "base.html" %} does. It means “First load the template called ‘base’, which has defined a bunch of blocks, and fill the blocks with the following html” template, including the use of static files, might look like: mysite/templates/base.html {% load staticfiles %}{% block title %}{% endblock %} 0 码力 | 2454 页 | 2.85 MB | 1 年前3
Django CMS 3.11.10 Documentation= [ ('home.html', 'Home page template'), ] This is worth explaining in a little detail: {% load cms_tags sekizai_tags %} loads the template tag libraries we use in the template. {% page_attribute page_title attribute. {% render_block "css" %} and {% render_block "js" %} are Sekizai template tags that load blocks of HTML defined by Django applications. django CMS defines blocks for CSS and JavaScript, and template, shared by all the applications in the project, that your django CMS templates can extend. {% load cms_tags sekizai_tags %}{% page_attribute "page_title" %} 0 码力 | 493 页 | 1.44 MB | 6 月前0.03
Django CMS 3.0.x DocumentationCMS permission management: yes • Use Twitter Bootstrap Theme: yes • Use custom template set: no • Load a starting page with examples after installation: yes Create a Django admin user when invited. Start them in feature.html: {% placeholder "feature" %} and {% placeholder "content" %}. You’ll also see {% load cms_tags %} in that file - cms_tags is the required templatetag library. If you’re not already familiar show_menu 0 1 100 100 "menu.html" %} Any template that uses show_menu must load the CMS’s menu_tags library first: {% load menu_tags %} If you chose “bootstrap” while setting up with djangocms-installer0 码力 | 180 页 | 1.56 MB | 6 月前3
django cms 3.1.x DocumentationCMS permission management: yes • Use Twitter Bootstrap Theme: yes • Use custom template set: no • Load a starting page with examples after installation: yes Create a Django admin user when invited. Start in feature.html: {% placeholder "feature" %} and {% placeholder "content" %}. You’ll also see {% load cms_tags %} in that file - cms_tags is the required templatetag library. If you’re not already familiar show_menu 0 1 100 100 "menu.html" %} Any template that uses show_menu must load the CMS’s menu_tags library first: {% load menu_tags %} If you chose “bootstrap” while setting up with djangocms-installer0 码力 | 200 页 | 1.63 MB | 1 年前3
django cms 3.10.x Documentationtags. fullwidth.html contains a single placeholder, {% placeholder "content" %}. You’ll also see {% load cms_tags %} in that file - cms_tags is the required template tag library. If you’re not already familiar template you can use the show_menu tag. Any template that uses show_menu must load the CMS’s menu_tags library first: {% load menu_tags %} The menu we use in mysite/templates/base.html is:0 码力 | 296 页 | 1.79 MB | 1 年前3
Django CMS 3.9.x Documentationtags. fullwidth.html contains a single placeholder, {% placeholder "content" %}. You’ll also see {% load cms_tags %} in that file - cms_tags is the required template tag library. If you’re not already familiar template you can use the show_menu tag. Any template that uses show_menu must load the CMS’s menu_tags library first: {% load menu_tags %} The menu we use in mysite/templates/base.html is:0 码力 | 417 页 | 1.68 MB | 6 月前3
Django CMS 4.0.x Documentationtags. fullwidth.html contains a single placeholder, {% placeholder "content" %}. You’ll also see {% load cms_tags %} in that file - cms_tags is the required template tag library. If you’re not already familiar template you can use the show_menu tag. Any template that uses show_menu must load the CMS’s menu_tags library first: {% load menu_tags %} The menu we use in mysite/templates/base.html is:0 码力 | 296 页 | 1.79 MB | 6 月前3
Django CMS 3.9.x Documentationtags. fullwidth.html contains a single placeholder, {% placeholder "content" %}. You’ll also see {% load cms_tags %} in that file - cms_tags is the required template tag library. If you’re not already familiar template you can use the show_menu tag. Any template that uses show_menu must load the CMS’s menu_tags library first: {% load menu_tags %} The menu we use in mysite/templates/base.html is:0 码力 | 298 页 | 1.79 MB | 6 月前3
Django CMS 4.1.x Documentationin that, home.html, a minimal django CMS template: This is worth explaining in a little detail: {% load cms_tags sekizai_tags %} loads the template tag libraries we use in the template. {% page_attribute page_title attribute. {% render_block "css" %} and {% render_block "js" %} are Sekizai template tags that load blocks of HTML defined by Django applications. django CMS defines blocks for CSS and JavaScript, and "djangocms_versioning", "djangocms_alias", CMS_TEMPLATES = [ ('home.html', 'Home page template'), ] {% load cms_tags sekizai_tags %}{% page_attribute "page_title" %} 0 码力 | 518 页 | 1.66 MB | 6 月前3
共 91 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10













