2019年6月27日
摘要: 程序目录 urls.py """s14_day21 URL Configuration"""from django.contrib import adminfrom django.conf.urls import url,includefrom app01 import viewsurlpatter 阅读全文
posted @ 2019-06-27 19:58 SZ_文彬 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 默认值:url(r'index/', views.index,{'name':"root"})def index(request,name): print(name) return HttpResponse('ok')命名空间:/a/ include('app01.urls',namespace=' 阅读全文
posted @ 2019-06-27 19:54 SZ_文彬 阅读(153) 评论(0) 推荐(0) 编辑