From d90770a195076aabb91c6eb4f2f5eba6cd888c92 Mon Sep 17 00:00:00 2001 From: Bob <1397910458@qq.com> Date: Sat, 29 Aug 2020 10:21:12 +0800 Subject: [PATCH] =?UTF-8?q?#=E6=96=B0=E5=AA=92=E4=BD=93=E8=88=86=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NewMediaMonitoring/settings.py | 3 ++- dashboard/views.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NewMediaMonitoring/settings.py b/NewMediaMonitoring/settings.py index f9d0ddd..420b4bb 100644 --- a/NewMediaMonitoring/settings.py +++ b/NewMediaMonitoring/settings.py @@ -43,7 +43,8 @@ INSTALLED_APPS = [ 'captcha', 'dashboard', 'management', - 'monitor' + 'monitor', + 'polls' ] MIDDLEWARE = [ diff --git a/dashboard/views.py b/dashboard/views.py index 857473f..f337002 100644 --- a/dashboard/views.py +++ b/dashboard/views.py @@ -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)