cd
curl -oDjango-1.2.5.tar.gz http://media.djangoproject.com/releases/1.2/Django-1.2.5.tar.gz
tar -xf Django-1.2.5.tar.gz
cd Django-1.2.5
sudo python setup.py install
Убеждаемся, что Django встал, как требуется:
cd
python
Python 2.5.1 (r251:54863, Sep 1 2010, 22:03:14)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>> print django.get_version()
1.2.5
>>>
mkdir testdjango
django-admin.py startproject mysite
cd mysite
python manage.py runserver
No comments :
Post a Comment
Note: only a member of this blog may post a comment.