このページは古いバージョンの Django で以前試したものです。これから試す方は「Django アプリケーションの作成」の方を参照してください。 大まかな流れ 大まかな流れとして次のようにします。 View を作成する URL を構成する それぞれ次のようにします。 View の作成 次の内容を views.py として作成する。 from django.http import HttpResponse def helloworl(request): return HttpResponse('Hello world!') 引数は request ひとつだけです。 URLconf の作成 urls.py を次のように編集します。 from django.conf.urls.defaults import * from mysite.views import helloworld urlpa
![はじめての Django ページ - Python 入門](https://cdn-ak-scissors.b.st-hatena.com/image/square/64302f4318814ef43c6ba6de794bdf7672b704c3/height=288;version=1;width=512/https%3A%2F%2Fpython.keicode.com%2Fimg%2Fog-image-1.png)