试试django-cms 3.0带来了什么新的东西,之前的django-cms有点让人失望,就转到了mezzanine门下。
安装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其他的都是默认的,似乎会等一些时候才会继续。
第一个就是数据库设置
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]:
组件都被从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
截图一张
不见小马哥了~~
围观我的Github Idea墙, 也许,你会遇到心仪的项目