1. 数据爬取平台不限,字段不限
  2. 管理员后台功能,会员管理、球鞋销售数据爬取、系统公告、可视化大屏。
  3. 前台会员功能,注册登录,查看系统信息,球鞋查看,评论等。
  4. 数据量要多

开发语言:Python 框架:django Python版本:python3.7.7 数据库:mysql 5.7(一定要5.7版本) 数据库工具:Navicat11 开发软件:PyCharm 浏览器:谷歌浏览器

def qiuxiexinxi_register(request): if request.method in ["POST", "GET"]: msg = {'code': normal_code, "msg": mes.normal_code} req_dict = request.session.get("req_dict")

error = qiuxiexinxi.createbyreq(qiuxiexinxi, qiuxiexinxi, req_dict)
    if error != None:
        msg['code'] = crud_error_code
        msg['msg'] = "用户已存在,请勿重复注册!"
    return JsonResponse(msg, encoder=CustomJsonEncoder)

def qiuxiexinxi_login(request): if request.method in ["POST", "GET"]: msg = {'code': normal_code, "msg": mes.normal_code} req_dict = request.session.get("req_dict") datas = qiuxiexinxi.getbyparams(qiuxiexinxi, qiuxiexinxi, req_dict) if not datas: msg['code'] = password_error_code msg['msg'] = mes.password_error_code return JsonResponse(msg, encoder=CustomJsonEncoder)

try:
        __sfsh__= qiuxiexinxi.__sfsh__
    except:
        __sfsh__=None

    if  __sfsh__=='是':
        if datas[0].get('sfsh')!='是':
            msg['code']=other_code
            msg['msg'] = "账号已锁定,请联系管理员审核!"
            return JsonResponse(msg, encoder=CustomJsonEncoder)
            
    req_dict['id'] = datas[0].get('id')


    return Auth.authenticate(Auth, qiuxiexinxi, req_dict)

def qiuxiexinxi_logout(request): if request.method in ["POST", "GET"]: msg = { "msg": "登出成功", "code": 0 }

return JsonResponse(msg, encoder=CustomJsonEncoder)

def qiuxiexinxi_resetPass(request): ''' ''' if request.method in ["POST", "GET"]: msg = {"code": normal_code, "msg": mes.normal_code}

req_dict = request.session.get("req_dict")

    columns=  qiuxiexinxi.getallcolumn( qiuxiexinxi, qiuxiexinxi)

    try:
        __loginUserColumn__= qiuxiexinxi.__loginUserColumn__
    except:
        __loginUserColumn__=None
    username=req_dict.get(list(req_dict.keys())[0])
    if __loginUserColumn__:
        username_str=__loginUserColumn__
    else:
        username_str=username
    if 'mima' in columns:
        password_str='mima'
    else:
        password_str='password'

    init_pwd = '123456'
    recordsParam = {}
    recordsParam[username_str] = req_dict.get("username")
    records=qiuxiexinxi.getbyparams(qiuxiexinxi, qiuxiexinxi, recordsParam)
    if len(records)<1:
        msg['code'] = 400
        msg['msg'] = '用户不存在'
        return JsonResponse(msg, encoder=CustomJsonEncoder)

    eval('''qiuxiexinxi.objects.filter({}='{}').update({}='{}')'''.format(username_str,username,password_str,init_pwd))
    
    return JsonResponse(msg, encoder=CustomJsonEncoder)