Android Django-CMS

來源:互聯網
上載者:User

這就是我安裝Debian armel想做的事情了,運行django,不過目標總算完成了。

然後的話,我本來是打算寫個指令碼用作初始化的,後來是直接用一個終端(手機上安裝了兩個終端)完成這些的。

直接加個初始命令上面,因為是在windows上,也懶得切換,只好這樣了。

losetup /dev/block/loop7 /sdcard/debian/debian.imgmount /dev/block/loop7 /sd-ext/debiancd /sd-ext/debianchroot . /bin/bashsource /etc/bash.bashrcsource /etc/profileclear

於是每次一開終端就會自動的chroot了。

接著就是安裝django和python了

apt-get install pythonapt-get install python-setuptools easy_install django

用aptitude會比apt-get好此,但是自我感覺apt-get這個比較容易理解了。

於是就可以有此了

django-admin.py startproject mysitecd mysitepython manage.py runserver

如果和我一樣,遇到不可下載的情況,可以用電腦下載django,然後push到手機的home或之類的目錄,再tar -xvf,然後python setup.py install

接著就是django-cms了,

官方的方法是用pip,其實用easy_install也可以的,不過我還是覺得pip對於版本的控制比較簡單易懂。

sudo pip install django=1.3.1 django-cms south

但是,當前兩者是一樣的。

sudo aptitude install python2.6 python-setuptools python-imagingsudo easy_install pipsudo pip install django==1.3.1 django-cms southdjango-admin.py startproject mycmsprojectcd mycmsprojectrm settings.pyrm urls.pywget https://gist.github.com/raw/1125918/settings.pywget https://gist.github.com/raw/1125918/urls.pymkdir templatescd templateswget https://gist.github.com/raw/1125918/example.htmlcd ..python manage.py syncdb --allpython manage.py migrate --fakepython manage.py runserver

官方的安裝方法,不過,不知道是不是因為是在win的原因還是這個有點小問題,wget好像是實現的。

最後就有了。

用easy_install的話,應該是

easy_install django -U "flup==1.0.2"

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.