python manage.py createsuperuser
docker compose up -d
After selecting Next, you will add in your
title and some basic text content for the
new page, click Create.
Here is your newly created page.
Publish libraries we use in
the template.
{% page_attribute "page_
title" %} extracts the page’s page_
title
attribute.
{% render_
block "css" %} and {% render_
block "js" %} are Sekizai
template tags that load blocks of <
title>{% page_attribute "page_
title" %}
title>
{% render_
block "css" %}
{% cms_toolbar %}
{% placeholder "content" %}
{% render_block "js" %} 0 码力 |
518 页 |
1.66 MB
| 6 月前 3
elements to a placeholder:
1. switch to Structure mode
2. select the menu icon on the placeholder’s title bar
3. select a plugin type to add
10
Chapter 5. Table of contents
django cms Documentation, Release to have a section on your website which should be the same on every single page, such as a footer block.
You could hardcode your footer into the template, but it would be nicer to be able to manage it through of contents
django cms Documentation, Release 3.0.19.dev1
{% extends 'base.html' %}
{% block content %}
{% block polls_content %}
{% endblock %}
{% endblock %}
Open the /polls/ again. The navigation should
0 码力 |
180 页 |
1.56 MB
| 6 月前 3
sekizai_tags %}
{% render_block "css" %}
{% cms_toolbar %}
{% placeholder base_content %}
{% block base_content%}{% endblock %}
{% render_block "js" %}
1.11.4 Database sekizai_tags %}
{% render_block "css" %}
{% cms_toolbar %}
{% placeholder base_content %}
{% block base_content %}{% endblock %}
{% render_block "js" %}
Now, create your base template, and add
extra content to it:
{% extends "base.html" %}
{% load cms_tags %}
{% block base_content %}
{% placeholder template_1_content %}
{% endblock %}
When you set template_1.html as
0 码力 |
104 页 |
709.98 KB
| 6 月前 3
{% render_block "css" %}
{% cms_toolbar %}
{% placeholder base_content %}
{% block base_content%}{% endblock %}
{% render_block "js" %}
next | modules
{% render_block "css" %}
{% cms_toolbar %}
{% placeholder base_content %}
{% block base_content %}{% endblock %}
{% render_block "js" %}
your
base template, and add extra content to it:
{% extends "base.html" %}
{% load cms_tags %}
{% block base_content %}
{% placeholder template_1_content %}
{% endblock %}
When you set template_1.html
0 码力 |
156 页 |
727.78 KB
| 6 月前 3
sekizai_tags %}
{% render_block "css" %}
{% cms_toolbar %}
{% placeholder base_content %}
{% block base_content%}{% endblock %}
{% render_block "js" %}
1.9.4 Database sekizai_tags %}
{% render_block "css" %}
{% cms_toolbar %}
{% placeholder base_content %}
{% block base_content %}{% endblock %}
{% render_block "js" %}
Now, create your base template, and add
extra content to it:
{% extends "base.html" %}
{% load cms_tags %}
{% block base_content %}
{% placeholder template_1_content %}
{% endblock %}
When you set template_1.html as
0 码力 |
92 页 |
666.41 KB
| 6 月前 3