ubuntu 14 下安装Django-cms 3.0

ubuntu 14 下安装Django-cms 3.0,这两个都是最近两天更新的,所以,安装比较折腾,记录下。

1.virtualenvwrapper

还是同样想装个虚拟环境,

2.workon

3.download

到官网下载tar包,https://www.django-cms.org/en/或者用django-cms的安装工具,djangocms-installer.不清楚的参看http://djangocms-installer.readthedocs.org/en/latest/readme.html

pip install djangocms-installer

4.Prerequisites

会发现缺少一大堆依赖包,最麻烦的是pillow,之前大家都知道大名鼎鼎的PIL,但是后面不维护了,现在图片都用的pillow包。但是依赖比较多,虽然是ubuntu14,我还是去下的12的依赖包

树莓派同样用这个也可以


sudo apt-get install python-dev


$ sudo apt-get install libtiff4-dev libjpeg8-dev zlib1g-dev \
    libfreetype6-dev liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev python-tk libjpeg-dev

5.pillow

全部好了后,pip install pillow

6.install

djangocms -p /path/whatever project_name 

上面分别是安装位置及项目名称

language code:en,zh-cn

time zone:Asia/Shanghai

ubuntu 14 下安装Django-cms 3.0_第1张图片

附上官方how to :

7.HOWTO

  1. Create an empty virtualenv:

    virtualenv /virtualenv/path/my_project 
  2. Installdjangocms-installer:

    pip install djangocms-installer
    

    or:

    pip install https://github.com/nephila/djangocms-installer/archive/master.zip
    
  3. Execute the wizard:

    djangocms-start -p /path/whatever project_name
    
  4. Answer the wizard questions;

  5. Change to your project directory:

    cd /path/whatever project_name
    
  6. Modify the provided settings. You will want to modify at least the language and the template settings;

  7. Execute the project:

    (whatever) $ python manage.py runserver
    
  8. Enjoy!

8.postgresql

1.sudo apt-get install libpq-dev

2.pip install psycopg2

你可能感兴趣的:(3.0,UBUNTU14,django-cms)