程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Computer Graduation Design Python+djang College Student Association Management System (source code + system + mysql database + Lw document)

編輯:Python

項目介紹

學生社團是一個增加學生社會交際能力,擴展學生視野,豐富校園生活和個人生活一個團體.當前大學生主意任務已經不僅僅是學習那麼簡單啦,他更需要鍛煉一些社會能力.只有是適應社會的大學生才能夠在畢業之後更好地進行工作和生活,而不是一味只知道學習而嚴重缺乏集體交流能力
Python+djang學生社團管理系統是一個為大學生培養能力而開發的系統,本系統采用Python+djang進行開發,分為前台和後台兩部分,前台部分主要是讓用戶進行注冊登錄,參加社團活動和查看新聞資訊內容等進行服務的.後來部分主要是讓管理人員對學生社團進行管理使用的.

開發環境

計算機畢業設計Python+djang大學生社團管理系統(源碼+系統+mysql數據庫+Lw文檔)
開發語言:Python
python框架:django
軟件版本:python3.7/python3.8
數據庫:mysql 5.7或更高版本
數據庫工具:Navicat11
開發軟件:PyCharm/vs code
前端框架:vue.js
可開發框架:ssm/Springboot/vue/python/PHP/小程序/安卓均可開發

系統截圖

When student users see their favorite clubs,You can view the details of the club by clicking on the club's image or name to replay,The societies can be seen in the details of the societies.More detailed content includes the community's account number,the name of the society,The nature of the society, etc.After the user logs in, the community can be bookmarked,At the same time, you can apply to join the society you are interested in.

管理人員後台界面

管理人員在登陸之後可以對學生社團系統中的所有內容進行管理,後台管理人員的功能包括

系統用戶管理,對本系統內的用戶信息進行管理.
社團信息管理,管理本系統的社團信息,包括對社團的添加,修改,刪除,查詢等操作.
社團類別管理, 管理本系統的社團類別信息,包括對社團類別的添加,修改,刪除,查詢等操作.
社團活動管理 , 管理本系統的社團活動,包括對社團活動的添加,修改,刪除,查詢等操作.
社團論壇管理 , 主要是對用戶發布的帖子進行.回復和刪除等操作.
系統管理,對系統裡的一些基本信息進行設置.

核心代碼

def shenqingshetuan_register(request):
if request.method in ["POST", "GET"]:
msg = {
'code': normal_code, "msg": mes.normal_code}
req_dict = request.session.get("req_dict")
error = shenqingshetuan.createbyreq(shenqingshetuan, shenqingshetuan, req_dict)
if error != None:
msg['code'] = crud_error_code
msg['msg'] = "用戶已存在,請勿重復注冊!"
return JsonResponse(msg)
def shenqingshetuan_login(request):
if request.method in ["POST", "GET"]:
msg = {
'code': normal_code, "msg": mes.normal_code}
req_dict = request.session.get("req_dict")
datas = shenqingshetuan.getbyparams(shenqingshetuan, shenqingshetuan, req_dict)
if not datas:
msg['code'] = password_error_code
msg['msg'] = mes.password_error_code
return JsonResponse(msg)
try:
__sfsh__= shenqingshetuan.__sfsh__
except:
__sfsh__=None
if __sfsh__=='是':
if datas[0].get('sfsh')=='否':
msg['code']=other_code
msg['msg'] = "賬號已鎖定,請聯系管理員審核!"
return JsonResponse(msg)
req_dict['id'] = datas[0].get('id')
return Auth.authenticate(Auth, shenqingshetuan, req_dict)
def shenqingshetuan_logout(request):
if request.method in ["POST", "GET"]:
msg = {

"msg": "登出成功",
"code": 0
}
return JsonResponse(msg)
def shenqingshetuan_resetPass(request):
'''
'''
if request.method in ["POST", "GET"]:
msg = {
"code": normal_code, "msg": mes.normal_code}
req_dict = request.session.get("req_dict")
columns= shenqingshetuan.getallcolumn( shenqingshetuan, shenqingshetuan)
try:
__loginUserColumn__= shenqingshetuan.__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=shenqingshetuan.getbyparams(shenqingshetuan, shenqingshetuan, recordsParam)
if len(records)<1:
msg['code'] = 400
msg['msg'] = '用戶不存在'
return JsonResponse(msg)
eval('''shenqingshetuan.objects.filter({
}='{}').update({
}='{}')'''.format(username_str,username,password_str,init_pwd))
return JsonResponse(msg)
def shenqingshetuan_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'] = shenqingshetuan.getbyparams(shenqingshetuan, shenqingshetuan, req_dict)[0]
return JsonResponse(msg)
def shenqingshetuan_default(request):
if request.method in ["POST", "GET"]:
msg = {
"code": normal_code,"msg": mes.normal_code, "data": {
}}
req_dict = request.session.get("req_dict")
req_dict.update({
"isdefault":"是"})
data=shenqingshetuan.getbyparams(shenqingshetuan, shenqingshetuan, req_dict)
if len(data)>0:
msg['data'] = data[0]
else:
msg['data'] = {
}
return JsonResponse(msg)

  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved