在View.py中写一个方法
列如:
#搜索页面 type = None def detail(requests): global type type = requests.GET['type'] if requests.GET.get('pagenum')==None: pagenum = 1 else: pagenums = requests.GET
在View.py中写一个方法
列如:
#搜索页面 type = None def detail(requests): global type type = requests.GET['type'] if requests.GET.get('pagenum')==None: pagenum = 1 else: pagenums = requests.GET