#新媒体舆情
This commit is contained in:
parent
df4aaf1c17
commit
d90770a195
|
@ -43,7 +43,8 @@ INSTALLED_APPS = [
|
|||
'captcha',
|
||||
'dashboard',
|
||||
'management',
|
||||
'monitor'
|
||||
'monitor',
|
||||
'polls'
|
||||
]
|
||||
|
||||
MIDDLEWARE = [
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue