学习Django【2】把视图和路由连接起来的是URLconfigs的配置文件
摘要:
在view.py视图中定义: def detail(request, question_id): return HttpResponse("You're looking at question %s." % question_id) def results(request, question_id) 阅读全文
posted @ 2024-06-01 08:19 USEGEAR 阅读(8) 评论(0) 推荐(0) 编辑