目录:  

  

   1、URL

   2、Models

    - 操作

   3、Templates

    - html模板的使用

    - 自定义函数

   4、cookie和session

   5、分页(自定义分页)

   6、Form验证

 

内容:

  1、URL

   

    默认值:

urls.py

url(r'^index/', views.index, {'name': 'root'}),

views.py
def index(request,name):
    print(name)
    return HttpResponse('ok')
View Code

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-04
  • 2021-05-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-20
  • 2022-12-23
相关资源
相似解决方案