Android Django-CMS

Source: Internet
Author: User
Tags install django pip install django

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"

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.