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)