| ページ一覧 | ブログ | twitter |  書式 | 書式(表) |

MyMemoWiki

差分

ナビゲーションに移動 検索に移動
編集の要約なし
==[[Django インストール 0.96]]==
[[Python]] | [[Django 0.96]] | [[Fedora]] | [[Django インストール]] |
http://docs.djangoproject.com/en/dev/intro/install/
===Pythonのインストール[[Python]]のインストール===
*バージョン 2.3 ~ 2.6 ならどれでもよい
*バージョン 3.0 は 現在サポートされていない
*2.5以降を利用すれば、[http://typea-mixi01.appspot.com/yh_s?q=SQLite SQLite]が同梱されるため、データベースを構成する必要がない
====[[Fedora Core ]] 6 のPythonのバージョンを確認====
*自分の現在のテストサーバーがFC6のため
# python
[[Python ]] 2.4.4 (#1, Oct 23 2006, 13:58:00)
[GCC 4.1.1 20061011 (Red Hat 4.1.1-30)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
====2.6.2のダウンロード====
http://www.python.org/download/releases/2.6.2/
http://www.python.org/ftp/python/2.6.2/[[Python]]-2.6.2.tgz
wgetでダウンロード
# wget http://www.python.org/ftp/python/2.6.2/[[Python]]-2.6.2.tgz
=====既存を削除して最新をインストールと思ったが、既存のバージョンが管理ツールなどで激しく使われており既存を削除できない=====
:
=====以下などを参考に普通にインストールしてみる=====
http://lowlife.jp/yasusii/wiki/InstallingAnotherVersionOfPythonInstallingAnotherVersionOf[[Python]].html
*ダウンロードしたファイルを[[Linux 圧縮、解凍|解凍] [解凍]、READMEを参照
# tar xzvf [[Python]]-2.6.2.tgz
<blockquote>To start building right away (on [[UNIX]]): type "./configure" in the current directory and when it finishes, type "make". This creates an executable "./python"; to install in /usr/local, first do "su root" and then "make install".</blockquote>
*解凍されたディレクトリで、以下を実行
/usr/local/share/man/man1/python.1
====Python2[[Python]]2.6.2の実行====
=====2.6.2が実行された=====
# python
[[Python ]] 2.6.2 (r262:71600, Jun 13 2009, 02:28:29)
[GCC 4.1.2 20070626 (Red Hat 4.1.2-13)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
*Python2.5以降の場合不要。"large"なデータベースを使用したい場合、[http://docs.djangoproject.com/en/dev/topics/install/#database-installation こちら]参照
====[[PostgreSQL]]====*[[PostgreSQL 8.3.5]]===Djangoインストールの3つの方法[[Django]]インストールの3つの方法===
=====OSのディストリビューションが提供するバージョンをインストール=====
*yumさんに聞いてみる
# yum search django
:
[[Django]].noarch 0.96.1-1.fc6 extras
Matched from:
[[Django]] Django is a high-level [[Python ]] Web framework that encourages rapid
development and a clean, pragmatic design. It focuses on automating as
much as possible and adhering to the DRY D[[R]]Y (Don't Repeat [[R]]epeat Yourself)
principle.
http://www.djangoproject.com/
*http://docs.djangoproject.com/en/dev/topics/install/#installing-development-version
===Djangoのインストール[[Django]]のインストール===
====最新版のダウンロード====
*http://www.djangoproject.com/download/
*http://www.djangoproject.com/download/1.0.2/tarball/
ダウンロードして、[[Linux 圧縮、解凍|解凍] [解凍]
# wget http://www.djangoproject.com/download/1.0.2/tarball/
====セットアップスクリプトの実行====
*解凍されたフォルダに入って、以下を実行
[[Django]]-1.0.2-final]# python setup.py install
====準備完了====
*[[Django 最初のアプリケーション 1] [|最初のアプリケーション 1 (環境設定~モデルの作成)]]

案内メニュー