This is what I want to do when installing Debian armel. I ran django, but the goal was finally completed.
Then, I was planning to write a script for initialization. Later, I used a terminal (two terminals were installed on my mobile phone) to complete the initialization.
Directly add an initial command, because it is on windows, too lazy to switch, so we have to do this.
losetup /dev/block/loop7 /sdcard/debian/debian.imgmount /dev/block/loop7 /sd-ext/debiancd /sd-ext/debianchroot . /bin/bashsource /etc/bash.bashrcsource /etc/profileclear
As a result, the chroot is automatically started every time the terminal is opened.
The next step is to install django and python.
apt-get install pythonapt-get install python-setuptools easy_install django
Aptitude is better than apt-get, but it is easier to understand apt-get.
So you can have it.
django-admin.py startproject mysitecd mysitepython manage.py runserver
If it is the same as me, you can download django from your computer, push it to the home or a directory like your phone, tar-xvf, and then python setup. py install
The next step is django-cms,
The official method is to use pip. In fact, easy_install can also be used. However, I still think pip's version control is easy to understand.
sudo pip install django=1.3.1 django-cms south
However, the current two are the same.
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
The official installation method, however, does not know if it is because of win or a small problem, wget seems to be implemented.
Finally, we have it.
If easy_install is used, it should be
easy_install django -U "flup==1.0.2"