Answers for "django cms api"

0

django cms api

from cms.api import create_page, add_plugin

page = create_page('My Page', 'my_template.html', 'en')
placeholder = page.placeholders.get(slot='body')
add_plugin(placeholder, 'TextPlugin', 'en', body='hello world')
Posted by: Guest on March-12-2021

Python Answers by Framework

Browse Popular Code Answers by Language