Blog

Blog

PHODAL

Django CMS 3.0 小试

试试django-cms 3.0带来了什么新的东西,之前的django-cms有点让人失望,就转到了mezzanine门下。

Django CMS 3.0

djangocms-installer 小试

安装djangocms-installer

 pip install djangocms-installer

用默认的官方djangocms - p命令就有了下面这些过程

fdhuang@phodal:~ $ djangocms -p . my_demo
Database configuration (in URL format) [default sqlite://locahost/project.db]:
django CMS version (choices: 2.4, stable, rc, develop) [default stable]:
Django version (choices: 1.4, 1.5, 1.6, stable) [default 1.5]: 1.6
Activate Django I18N / L10N setting (choices: yes, no) [default yes]:
Install and configure reversion support (choices: yes, no) [default yes]:
Languages to enable. Option can be provided multiple times, or as a comma separated list:
Languages to enable. Option can be provided multiple times, or as a comma separated list: Zh-CN
Optional default time zone [default America/Chicago]: /Asia/Shanghai
Activate Django timezone support (choices: yes, no) [default yes]:
Activate CMS permission management (choices: yes, no) [default yes]:
Load a starting page with examples after installation (choices: yes, no) [default no]:

一步步往下走,除了语言改为了zh-cn,timezine是asia/shanghai其他的都是默认的,似乎会等一些时候才会继续。

Django CMS 3.0配置

第一个就是数据库设置

Database configuration (in URL format) [default sqlite://locahost/project.db]:

默认的Django CMS版本

django CMS version (choices: 2.4, stable, rc, develop) [default stable]:

Django 版本

 Django version (choices: 1.4, 1.5, 1.6, stable) [default 1.5]: 1.6

是否多语言支持

Activate Django I18N / L10N setting (choices: yes, no) [default yes]:

安装和设置重设版本支持

Install and configure reversion support (choices: yes, no) [default yes]:

语言选择

 Languages to enable. Option can be provided multiple times, or as a comma separated list:

可选的时区

 Optional default time zone [default America/Chicago]:

激活Django时区支持

 Activate Django timezone support (choices: yes, no) [default yes]:

开启CMS权限管理

Activate CMS permission management (choices: yes, no) [default yes]:

使用bootstrap主题

Activate CMS permission management (choices: yes, no) [default yes]:

安装完成后载入一个开始页

 Load a starting page with examples after installation (choices: yes, no) [default no]:

DJANGO CMS 3.0 PLUGINS

组件都被从core分离出来了,需要重新安装。。当然也可以用requirements.txt

pip install djangocms-file
pip install djangocms-flash
pip install djangocms-googlemap
pip install djangocms-inherit
pip install djangocms-picture
pip install djangocms-teaser
pip install djangocms-video
pip install djangocms-link
pip install djangocms-snippet

这个过程中还会安装其他组件。如各种出问题的PIL

然而,在CentOS上面除了要重新编译PIL,还需要用easy_install换掉pip,还是新版的。。

easy_install djangocms-file
easy_install djangocms-flash
easy_install djangocms-googlemap
easy_install djangocms-inherit
easy_install djangocms-picture
easy_install djangocms-teaser
easy_install djangocms-video
easy_install djangocms-link
easy_install djangocms-snippet

截图一张 Django CMS

不见小马哥了~~

Django CMS IT works


或许您还需要下面的文章:

关于我

Github: @phodal     微博:@phodal     知乎:@phodal    

微信公众号(Phodal)

围观我的Github Idea墙, 也许,你会遇到心仪的项目

QQ技术交流群: 321689806
comment

Feeds

RSS / Atom

最近文章

关于作者

Phodal Huang

Engineer, Consultant, Writer, Designer

ThoughtWorks 技术专家

工程师 / 咨询师 / 作家 / 设计学徒

开源深度爱好者

出版有《前端架构:从入门到微前端》、《自己动手设计物联网》、《全栈应用开发:精益实践》

联系我: h@phodal.com

微信公众号: 最新技术分享

标签