RedHat系でdjangoをインストール
RedHat系OS(CentOS,sl6)等で、djangoのインストールメモ
今回、sl6上で作業しました。
Contents 1 epelリポジトリが入ってなければ導入しておく 2 Pythonが入ってなければ、インストール 3 Djangoのインストール 4 確認 5 プロジェクト作成 6 テストサーバ起動 epelリポジトリが入ってなければ導入しておく # yum install epel-release Pythonが入ってなければ、インストール # yum install python Djangoのインストール # yum install Django 確認 # python Python 2.6.6 (r266:84292, Jun 18 2012, 09:57:52) [GCC 4.4.6 20110731 (Red Hat 4.4.6-3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import django >>> print django.get_version() 1.3.1 >>> プロジェクト作成 $ django-admin startproject test $ cd test テストサーバ起動 $ python manage.py runserver python manage.py runserver Validating models... 0 errors found Django version 1.3.1, using settings 'test_project.settings' Development server is running at https://127.0.0.1:8000/ Quit the server with CONTROL-C. 自マシンから、ブラウザにて、https://127.0.0.1:8000/にアクセスし、It worked! …が表示されたら完了。
[Read More]