2018.08.30 21:12 第一个Django程序完成

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的代码,感觉不错,再接再厉。先模仿。

 

posted on 2018-08-30 21:20  leviticus  阅读(135)  评论(0编辑  收藏  举报