這就是我安裝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"