1. 首页
  2. 数据库
  3. 其它
  4. python Django views

python Django views

上传者: 2020-12-22 13:02:17上传 PDF文件 38KB 热度 10次
目录结构 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
用户评论