djangoインストール

640 ワード

Djangoソースパッケージのダウンロード
[https://www.djangoproject.com/download/](https://www.djangoproject.com/download/)


ソースパッケージの解凍
tar zxvf Django-1.x.y.tar.gz

または、上記の2つのステップの代わりにgitをダウンロードします.
git clone https://github.com/django/django.git

コマンドラインDjangoのインストール
cd Django-1.x.y
sudo python setup.py install

djangoバージョンの表示
django-admin --version

コマンドラインDjangoプロジェクトの作成
$ django-admin.py startproject testdj

Djangoプロジェクトの実行
 python manage.py runserver