开发环境
项目编号: py225基于python的家政管理系统设计
开发语言:Python
python框架:django
软件版本:python3.7/python3.8
数据库:mysql 5.7或更高版本
数据库工具:Navicat11
开发软件:PyCharm/vs code
项目介绍
随着大家生活水平的提高,在生活中家政服务变得越来越受大家的欢迎,如何来选择一个好的员工就也变得越来越重要,如何让人们足不出户就能找到自己满意的家政人员是本网站要解决的主要问题,我们建立一个家政公司信息系统来实现需求者从网站中快速的获取正确真实的家政服务信息的手段,所以开发一个友好的家政公司信息系统就显得非常重要。
目前,大多数的寻找合适的家政人员还停留在去家政公司资讯并选择的传统方式,这样的方式浪费了大量的时间,也不能很好的了解家政人员的服务水平和状态,利用互联网建立一个家政公司信息系统来寻找符合自己条件的家政人员非常的方便,有更多的选择性,由于家政公司信息系统由第三方来运营,所以平台上提供你的家政人员信息都是客观的描述和评价,不会遭到家政公司的夸大。
系统截图





关键代码
def xuqiuzhongxin_register(request):
if request.method in ["POST", "GET"]:
msg = {'code': normal_code, "msg": mes.normal_code}
req_dict = request.session.get("req_dict")
error = xuqiuzhongxin.createbyreq(xuqiuzhongxin, xuqiuzhongxin, req_dict)
if error != None:
msg['code'] = crud_error_code
msg['msg'] = error
return JsonResponse(msg)
def xuqiuzhongxin_login(request):
if request.method in ["POST", "GET"]:
msg = {'code': normal_code, "msg": mes.normal_code}
req_dict = request.session.get("req_dict")
datas = xuqiuzhongxin.getbyparams(xuqiuzhongxin, xuqiuzhongxin, req_dict)
if not datas:
msg['code'] = password_error_code
msg['msg'] = mes.password_error_code
return JsonResponse(msg)
req_dict['id'] = datas[0].get('id')
return Auth.authenticate(Auth, xuqiuzhongxin, req_dict)
def xuqiuzhongxin_logout(request):
if request.method in ["POST", "GET"]:
msg = {
"msg": "登出成功",
"code": 0
}
return JsonResponse(msg)
def xuqiuzhongxin_resetPass(request):
'''
'''
if request.method in ["POST", "GET"]:
msg = {"code": normal_code, "msg": mes.normal_code}
req_dict = request.session.get("req_dict")
error = xuqiuzhongxin.updatebyparams(xuqiuzhongxin,xuqiuzhongxin, req_dict)
if error != None:
msg['code'] = crud_error_code
msg['msg'] = error
return JsonResponse(msg)
def xuqiuzhongxin_session(request):
'''
'''
if request.method in ["POST", "GET"]:
msg = {"code": normal_code,"msg": mes.normal_code, "data": {}}
req_dict={"id":request.session.get('params').get("id")}
msg['data'] = xuqiuzhongxin.getbyparams(xuqiuzhongxin, xuqiuzhongxin, req_dict)[0]
return JsonResponse(msg)
这是一个使用Python 3.7/3.8、Django框架和MySQL5.7+构建的家政管理系统。系统旨在提供一个方便的平台,让用户能在线查找和选择合适的家政服务人员,避免传统方式的时间浪费和信息不透明。关键功能包括注册、登录、注销、重置密码和用户信息管理。代码示例展示了用户注册和登录的处理过程。

287

被折叠的 条评论
为什么被折叠?



