3
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

PythonのWebフレームワークDjangoを使ってみる(1) - 導入からサーバー起動まで

Last updated at Posted at 2015-08-10

環境

  • Mac

Python3のインストール

せっかくなのでPython3をインストールします。

$ brew install python3

$ python3 --version
Python 3.4.3

Djangoのインストール

$ sudo pip install django
...
Successfully installed django-1.8.3

$ pip freeze -l
...
Django==1.8.3
...

Djangoプロジェクトの作成

$ django-admin.py startproject project
$ ls
project

Djangoプロジェクトのマイグレーションと起動

$ python manage.py migrate
...

$ python manage.py runserver
...
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

localhost:8000 に接続してみると、It worked! と表示されます。

次回

参考

3
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?