Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #django #cms #create #page #programmatically
ADD COMMENT
Topic
Name
2+6 =