Django News与Keditor集成。
django-zms-news的Python项目详细描述
django simple news
=
>安装:
p p p p p p p p p p p install django u simple'u simple'u news
>安装的django简单的应用程序=(
…
'ckeditor',
'新建',
…
seo_name_for_news/',include('new.url'),
https://github.com/shaunsephton/django-ckeditor-ckeditor-chiditor-chiditor-chiditor安装
settings.py
ckeditor-chiditor-config
<
='source','-','保存','-','剪切',''''''-','剪切''''''''''''复制',粘贴','PasteText','PasteText'''PasteText','Pastefromword','-','Undo','重做','-','替换','-','SelectAll'],
('br/>'宋宋宋词,'倾斜','下划线',''下划线',''下划线','罢工','上标','-','Removeformat'],'/',
('br/>'br/>,'BulleredList','-','Outdent','indent','-','block引号','creatediv','creatediv','-'',',''-'','改左','Just左','如果中心',“正义”、“正义”、“BIDILTR”、“BiDuttl”、“BR/>”、“BR/>”、“BR/> > [图像]、“表”、“水平规则”、“特殊字符”、
[格式]、[文本颜色]、“BGROOP”、“-'、'样式'、'格式'、' FunStig' '、
[最大化',“showblocks”,“—”,“about”],
,
,
'format'u-tags':'p;h1;h2;h3;h4;h5;h6;pre;address;div',
,
<
<
<
>为每个模板配置简单的缩略图
https://pypi.pypi.org/pypi/简单的缩略图/1.2
缩略图:人们的缩略图<<<
:{{
:{
“新详细信息”:{'size':(50,50),'crop':true},
'new_list':{'size':(152,152),'crop':true},
'new_index':{'size':(960,1760),'crop':false,'upscale':true},
},
}
您还可以覆盖模板:
/templates/new/new_detail.html for new detail
/templates/new/news_index.html for a list of news
/templates/new/news_list.html以获取新闻列表,而不需要在自定义模板中包含上下文。
=
>安装:
p p p p p p p p p p p install django u simple'u simple'u news
>安装的django简单的应用程序=(
…
'ckeditor',
'新建',
…
seo_name_for_news/',include('new.url'),
https://github.com/shaunsephton/django-ckeditor-ckeditor-chiditor-chiditor-chiditor安装
settings.py
ckeditor-chiditor-config
<
='source','-','保存','-','剪切',''''''-','剪切''''''''''''复制',粘贴','PasteText','PasteText'''PasteText','Pastefromword','-','Undo','重做','-','替换','-','SelectAll'],
('br/>'宋宋宋词,'倾斜','下划线',''下划线',''下划线','罢工','上标','-','Removeformat'],'/',
('br/>'br/>,'BulleredList','-','Outdent','indent','-','block引号','creatediv','creatediv','-'',',''-'','改左','Just左','如果中心',“正义”、“正义”、“BIDILTR”、“BiDuttl”、“BR/>”、“BR/>”、“BR/> > [图像]、“表”、“水平规则”、“特殊字符”、
[格式]、[文本颜色]、“BGROOP”、“-'、'样式'、'格式'、' FunStig' '、
[最大化',“showblocks”,“—”,“about”],
,
,
'format'u-tags':'p;h1;h2;h3;h4;h5;h6;pre;address;div',
,
<
<
<
>为每个模板配置简单的缩略图
https://pypi.pypi.org/pypi/简单的缩略图/1.2
缩略图:人们的缩略图<<<
:{{
:{
“新详细信息”:{'size':(50,50),'crop':true},
'new_list':{'size':(152,152),'crop':true},
'new_index':{'size':(960,1760),'crop':false,'upscale':true},
},
}
您还可以覆盖模板:
/templates/new/new_detail.html for new detail
/templates/new/news_index.html for a list of news
/templates/new/news_list.html以获取新闻列表,而不需要在自定义模板中包含上下文。