#新媒体舆情

This commit is contained in:
Bob 2020-08-29 10:21:12 +08:00
parent df4aaf1c17
commit d90770a195
2 changed files with 3 additions and 2 deletions

View File

@ -43,7 +43,8 @@ INSTALLED_APPS = [
'captcha',
'dashboard',
'management',
'monitor'
'monitor',
'polls'
]
MIDDLEWARE = [

View File

@ -62,7 +62,7 @@ def user_login(request):
else:
messages.error(request, '账号或密码错误,请您确认账号和密码')
except:
messages.error(request, '111')
messages.error(request, '账号或密码错误,请您确认账号和密码')
return render(request,'dashboard/login.html',{'hash_key':hash_key,'image_url':image_url})
def user_logout(request):
logout(request)