摘要:
中间件中一共有四个方法: process_request,process_response 当用户发起请求的时候会依次经过所有的的中间件,这个时候的请求时process_request,最后到达views的函数中,views函数处理后,在依次穿过中间件,这个时候是process_response,最 阅读全文
摘要:
使用 reverse 阅读全文
摘要:
view.py index 完善(利用django自身page加上自己定制) views: html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <link rel="styl 阅读全文