Django内置的url转换器

在写项目中,我们有时候需要规定url传递的参数的种类,这个时候我们就需要用到Django中内置的url转换器了。 编写测试代码: 在项目中的app中的views.py中写入一下代码: from django.http import HttpResponse def student_detail(request,student_id): text = "该学生的学号是:%s" % stud
相关文章
相关标签/搜索