Answers for "django cms create page programmatically"

0

django cms create page programmatically

from cms.api import create_page

data = {
    'title': 'HOME', 'template': 'home.html', 
    'language': 'en','reverse_id': 'home', 'published': True,
    'created_by': 'db-initialization'
}
create_page(**data)
Posted by: Guest on March-12-2021

Code answers related to "django cms create page programmatically"

Python Answers by Framework

Browse Popular Code Answers by Language