python Django views
目录结构 views.py from django.http import HttpResponse def hello(request): return HttpResponse("Hello world ! ") urls.py from django.conf.urls import url from csdn import views urlpatterns = [ url(r'^hello$', views.hello), ] 运行结果 ps:自定义的视图等级 from django.http import HttpResponse from django.t
用户评论