from django.http import HttpResponse def hello(request): return HttpResponse("Hello world ! ")
from django.conf.urls import url from . import view urlpatterns = [ url(r'^$', view.hello), ]
从 http://www.runoob.com/django/django-first-app.html copy的代码,感觉不错,再接再厉。先模仿。