From f48b3ec68217fde29f18db97c9c486be366c7ad8 Mon Sep 17 00:00:00 2001 From: wrmswindmill Date: Mon, 16 Jul 2018 10:34:51 +0800 Subject: [PATCH] add userinfo.html forgetpwd an so on,but is so ugly --- Codepedia2/settings.py | 2 +- Codepedia2/urls.py | 5 + apps/users/forms.py | 12 +- apps/users/urls.py | 3 +- apps/users/views.py | 34 +- nohup.out | 907 ++++++++++++++++++++++++ static/js/source.js | 13 +- templates/users/email_send_success.html | 10 + templates/users/forget_pwd.html | 103 +++ templates/users/login.html | 3 +- templates/users/user_center_base.html | 282 ++++++++ 11 files changed, 1355 insertions(+), 19 deletions(-) create mode 100644 templates/users/email_send_success.html create mode 100644 templates/users/forget_pwd.html create mode 100644 templates/users/user_center_base.html diff --git a/Codepedia2/settings.py b/Codepedia2/settings.py index b5c75b0..19d3b64 100644 --- a/Codepedia2/settings.py +++ b/Codepedia2/settings.py @@ -46,7 +46,7 @@ INSTALLED_APPS = [ 'projects', 'actions', 'operations', - # xadmin + # xadminxadmin 'xadmin', 'crispy_forms', 'reversion', diff --git a/Codepedia2/urls.py b/Codepedia2/urls.py index 6048692..2f2a489 100644 --- a/Codepedia2/urls.py +++ b/Codepedia2/urls.py @@ -24,6 +24,11 @@ from projects.views import FileListlView from django.conf.urls.static import static from django.conf import settings + +# version模块自动注册需要版本控制的 Model +from xadmin.plugins import xversion +xversion.register_models() + urlpatterns = [ path('admin/', admin.site.urls), path('xadmin/', xadmin.site.urls), diff --git a/apps/users/forms.py b/apps/users/forms.py index b441f74..698480d 100644 --- a/apps/users/forms.py +++ b/apps/users/forms.py @@ -1,6 +1,7 @@ from django import forms from .models import User from captcha.fields import CaptchaField +from .models import User class LoginForm(forms.Form): @@ -10,4 +11,13 @@ class LoginForm(forms.Form): class RegisterForm(forms.Form): # 注册 email = forms.EmailField(required=True) password = forms.CharField(required=True, min_length=5) - captcha = CaptchaField(error_messages={"invalid": u"验证码错误"}) \ No newline at end of file + captcha = CaptchaField(error_messages={"invalid": u"验证码错误"}) + +class ForgetPwdForm(forms.Form): #忘记密码 + email = forms.CharField(required=True) + captcha = CaptchaField(error_messages={"invalid": u"验证码错误"}) + +class UserInfoForm(forms.Form): + class Meta: + model = User + fields = ['nick_name', 'gender', 'birday', 'address', 'mobile'] \ No newline at end of file diff --git a/apps/users/urls.py b/apps/users/urls.py index 82c573d..c5d17c8 100644 --- a/apps/users/urls.py +++ b/apps/users/urls.py @@ -15,7 +15,7 @@ Including another URLconf """ from django.urls import path -from .views import LoginView, LogoutView, RegisterView, UserInfoView, ActiveView +from .views import LoginView, LogoutView, RegisterView, UserInfoView, ActiveView,ForgetPwdView app_name = "users" urlpatterns = [ @@ -23,5 +23,6 @@ urlpatterns = [ path('logout/', LogoutView.as_view(), name='logout'), path('register/',RegisterView.as_view(),name='register'), path('userinfo',UserInfoView.as_view(), name = 'userinfo'), + path('forgetpwd',ForgetPwdView.as_view(), name='forgetpwd'), path('active/', ActiveView.as_view(), name='useractive'), ] diff --git a/apps/users/views.py b/apps/users/views.py index b9e8c95..a5feeb3 100644 --- a/apps/users/views.py +++ b/apps/users/views.py @@ -13,7 +13,7 @@ import requests from projects.models import File from .models import User, EmailVerifyRecord -from .forms import LoginForm,RegisterForm +from .forms import LoginForm,RegisterForm,ForgetPwdForm,UserInfoForm import utils.scanner_project as scanner from pure_pagination import Paginator, EmptyPage, PageNotAnInteger @@ -112,13 +112,13 @@ class UserInfoView(View): user = User.objects.get(id=request.user.id) return render(request, 'users/user_info.html', {'user': user}) - # def post(self, request): - # user_info_form = UserInfoForm(request.POST, instance=request.user) - # if user_info_form.is_valid(): - # user_info_form.save() - # return HttpResponse('{"status":"success"}', content_type='application/json') - # else: - # return HttpResponse(json.dumps(user_info_form.errors), content_type='application/json') + def post(self, request): + user_info_form = UserInfoForm(request.POST, instance=request.user) + if user_info_form.is_valid(): + user_info_form.save() + return HttpResponse('{"status":"success"}', content_type='application/json') + else: + return HttpResponse(json.dumps(user_info_form.errors), content_type='application/json') # 用户登录 @@ -208,3 +208,21 @@ class LogoutView(View): def get(self, request): logout(request) return HttpResponseRedirect(reverse('index')) + + +class ForgetPwdView(View): + def get(self, request): + + forget_form = ForgetPwdForm() + return render(request, 'users/forget_pwd.html',{'forget_form':forget_form}) + + def post(self, request): + forget_form = ForgetPwdForm(request.POST) + if forget_form.is_valid(): + email = request.POST.get('email', '') + from .tasks import send_type_email + send_type_email(email, 'forget') + + return render(request, 'users/email_send_success.html') + else: + return render(request, 'users/', {'forget_form': forget_form}) \ No newline at end of file diff --git a/nohup.out b/nohup.out index f78941e..71a6df7 100644 --- a/nohup.out +++ b/nohup.out @@ -13128,3 +13128,910 @@ Not Found: /http:/www.baidu.com/cache/global/img/gs.gif [15/Jul/2018 00:38:04] "GET http://www.baidu.com/cache/global/img/gs.gif HTTP/1.1" 404 1738 [15/Jul/2018 00:51:19] code 400, message Bad request version ('MCTP/1.0') [15/Jul/2018 00:51:19] "REMOTE HI_SRDK_DEV_GetHddInfo MCTP/1.0" 400 - +[15/Jul/2018 15:55:50] "GET / HTTP/1.1" 200 24223 +[15/Jul/2018 15:55:51] "GET /static/vendor/qtip/jquery.qtip.css HTTP/1.1" 304 0 +[15/Jul/2018 15:55:51] "GET /static/vendor/bootstrap/css/bootstrap.css HTTP/1.1" 304 0 +[15/Jul/2018 15:55:51] "GET /static/vendor/font-awesome/css/font-awesome.css HTTP/1.1" 304 0 +[15/Jul/2018 15:55:51] "GET /static/css/common.css HTTP/1.1" 304 0 +[15/Jul/2018 15:55:51] "GET /static/css/base.css HTTP/1.1" 304 0 +[15/Jul/2018 15:55:51] "GET /static/css/jstree.css HTTP/1.1" 304 0 +[15/Jul/2018 15:55:51] "GET /static/css/prettify.css HTTP/1.1" 304 0 +[15/Jul/2018 15:55:51] "GET /static/vendor/site/css/style.css HTTP/1.1" 304 0 +[15/Jul/2018 15:55:51] "GET /static/js/run_prettify.js HTTP/1.1" 304 0 +[15/Jul/2018 15:55:51] "GET /static/js/jstree.js HTTP/1.1" 304 0 +[15/Jul/2018 15:55:51] "GET /static/js/base.js HTTP/1.1" 304 0 +[15/Jul/2018 15:55:51] "GET /static/vendor/bootstrap/js/bootstrap.min.js HTTP/1.1" 304 0 +[15/Jul/2018 15:55:51] "GET /static/vendor/qtip/jquery.qtip.js HTTP/1.1" 304 0 +[15/Jul/2018 15:55:51] "GET /media/avatar/users/default.png HTTP/1.1" 304 0 +[15/Jul/2018 15:55:51] "GET /static/image/CodePedia.ico HTTP/1.1" 304 0 +Not Found: /was5/web/search +[15/Jul/2018 16:05:41] "GET /was5/web/search HTTP/1.0" 404 3115 +[15/Jul/2018 16:52:20] code 400, message Bad request syntax ('\x05\x01\x00') +[15/Jul/2018 16:52:20] "" 400 - +[15/Jul/2018 16:52:29] code 400, message Bad request syntax ('\x05\x01\x00') +[15/Jul/2018 16:52:29] "" 400 - +[15/Jul/2018 16:52:38] code 400, message Bad request syntax ('\x05\x01\x00') +[15/Jul/2018 16:52:38] "" 400 - +Not Found: /http:/46.161.9.31/echo.php +[15/Jul/2018 16:53:39] "GET http://46.161.9.31/echo.php HTTP/1.1" 404 1685 +[15/Jul/2018 16:53:53] code 400, message Bad request syntax ('\x05\x03\x00\x01\x02') +[15/Jul/2018 16:53:53] "" 400 - +[15/Jul/2018 16:53:54] code 400, message Bad request syntax ('\x05\x03\x00\x01\x02') +[15/Jul/2018 16:53:54] "" 400 - +[15/Jul/2018 16:53:55] code 400, message Bad request syntax ('\x05\x03\x00\x01\x02') +[15/Jul/2018 16:53:55] "" 400 - +[15/Jul/2018 16:53:56] code 400, message Bad request syntax ('\x05\x03\x00\x01\x02') +[15/Jul/2018 16:53:56] "" 400 - +[15/Jul/2018 16:53:57] code 400, message Bad request syntax ('\x05\x03\x00\x01\x02') +[15/Jul/2018 16:53:57] "" 400 - +[15/Jul/2018 16:53:57] code 400, message Bad request syntax ('\x05\x03\x00\x01\x02') +[15/Jul/2018 16:53:57] "" 400 - +[15/Jul/2018 16:53:58] code 400, message Bad request syntax ('\x05\x03\x00\x01\x02') +[15/Jul/2018 16:53:58] "" 400 - +[15/Jul/2018 16:54:00] code 400, message Bad request syntax ('\x05\x03\x00\x01\x02') +[15/Jul/2018 16:54:00] "" 400 - +[15/Jul/2018 16:54:01] code 400, message Bad request syntax ('\x05\x03\x00\x01\x02') +[15/Jul/2018 16:54:01] "" 400 - +[15/Jul/2018 16:54:02] code 400, message Bad request syntax ('\x05\x03\x00\x01\x02') +[15/Jul/2018 16:54:02] "" 400 - +[15/Jul/2018 20:14:35] code 400, message Bad request version ('MCTP/1.0') +[15/Jul/2018 20:14:35] "REMOTE HI_SRDK_DEV_GetHddInfo MCTP/1.0" 400 - +Not Found: /http:/www.baidu.com/cache/global/img/gs.gif +[15/Jul/2018 22:51:07] "GET http://www.baidu.com/cache/global/img/gs.gif HTTP/1.1" 404 1738 +Not Found: /http:/www.baidu.com/cache/global/img/gs.gif +[15/Jul/2018 23:58:54] "GET http://www.baidu.com/cache/global/img/gs.gif HTTP/1.1" 404 1738 +[16/Jul/2018 07:54:48] code 400, message Bad request version ('MCTP/1.0') +[16/Jul/2018 07:54:48] "REMOTE HI_SRDK_DEV_GetHddInfo MCTP/1.0" 400 - +[16/Jul/2018 08:43:30] code 400, message Bad request version ('MCTP/1.0') +[16/Jul/2018 08:43:30] "REMOTE HI_SRDK_DEV_GetHddInfo MCTP/1.0" 400 - +[16/Jul/2018 09:08:16] "GET / HTTP/1.1" 200 24223 +[16/Jul/2018 09:08:16] "GET /static/css/base.css HTTP/1.1" 304 0 +[16/Jul/2018 09:08:16] "GET /static/css/common.css HTTP/1.1" 304 0 +[16/Jul/2018 09:08:16] "GET /static/vendor/font-awesome/css/font-awesome.css HTTP/1.1" 304 0 +[16/Jul/2018 09:08:16] "GET /static/vendor/qtip/jquery.qtip.css HTTP/1.1" 304 0 +[16/Jul/2018 09:08:16] "GET /static/vendor/bootstrap/css/bootstrap.css HTTP/1.1" 304 0 +[16/Jul/2018 09:08:16] "GET /static/css/jstree.css HTTP/1.1" 304 0 +[16/Jul/2018 09:08:16] "GET /static/vendor/site/css/style.css HTTP/1.1" 304 0 +[16/Jul/2018 09:08:16] "GET /static/css/prettify.css HTTP/1.1" 304 0 +[16/Jul/2018 09:08:16] "GET /static/js/jstree.js HTTP/1.1" 304 0 +[16/Jul/2018 09:08:16] "GET /static/js/base.js HTTP/1.1" 304 0 +[16/Jul/2018 09:08:16] "GET /static/js/run_prettify.js HTTP/1.1" 304 0 +[16/Jul/2018 09:08:16] "GET /static/vendor/bootstrap/js/bootstrap.min.js HTTP/1.1" 304 0 +[16/Jul/2018 09:08:16] "GET /static/vendor/qtip/jquery.qtip.js HTTP/1.1" 304 0 +[16/Jul/2018 09:08:16] "GET /static/image/CodePedia.ico HTTP/1.1" 304 0 +[16/Jul/2018 09:08:16] "GET /media/avatar/users/default.png HTTP/1.1" 304 0 +[16/Jul/2018 09:08:41] "GET /users/logout/ HTTP/1.1" 302 0 +[16/Jul/2018 09:08:41] "GET / HTTP/1.1" 200 22443 +[16/Jul/2018 09:08:43] "GET /users/login/ HTTP/1.1" 200 4230 +[16/Jul/2018 09:08:43] "GET /static/js/users-common.js HTTP/1.1" 200 966 +[16/Jul/2018 09:08:43] "GET /static/css/register.css HTTP/1.1" 200 1762 +[16/Jul/2018 09:08:44] "GET /static/image/login/bg_login.jpg HTTP/1.1" 200 29922 +[16/Jul/2018 09:08:49] "GET /users/register/ HTTP/1.1" 200 5102 +[16/Jul/2018 09:08:50] "GET /captcha/image/e164e1478c3694f86e4205fe9b756d27613d0ad6/ HTTP/1.1" 200 4389 +[16/Jul/2018 09:23:58] "POST /users/login/ HTTP/1.1" 302 0 +[16/Jul/2018 09:23:59] "GET / HTTP/1.1" 200 24242 +Internal Server Error: /users/userinfo +Traceback (most recent call last): + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render + return self.template.render(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/base.py", line 175, in render + return self._render(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/test/utils.py", line 98, in instrumented_test_render + return self.nodelist.render(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/base.py", line 943, in render + bit = node.render_annotated(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/base.py", line 910, in render_annotated + return self.render(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/loader_tags.py", line 132, in render + compiled_parent = self.get_parent(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/loader_tags.py", line 129, in get_parent + return self.find_template(parent, context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/loader_tags.py", line 109, in find_template + template_name, skip=history, + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/engine.py", line 130, in find_template + raise TemplateDoesNotExist(name, tried=tried) +django.template.exceptions.TemplateDoesNotExist: users/user_center_base.html + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/handlers/exception.py", line 35, in inner + response = get_response(request) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/handlers/base.py", line 128, in _get_response + response = self.process_exception_by_middleware(e, request) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/handlers/base.py", line 126, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/views/generic/base.py", line 69, in view + return self.dispatch(request, *args, **kwargs) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/views/generic/base.py", line 89, in dispatch + return handler(request, *args, **kwargs) + File "/projects/codepedia-test/codepedia2.0/apps/users/views.py", line 113, in get + return render(request, 'users/user_info.html', {'user': user}) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/shortcuts.py", line 36, in render + content = loader.render_to_string(template_name, context, request, using=using) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/loader.py", line 62, in render_to_string + return template.render(context, request) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/backends/django.py", line 63, in render + reraise(exc, self.backend) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/backends/django.py", line 84, in reraise + raise new from exc +django.template.exceptions.TemplateDoesNotExist: users/user_center_base.html +[16/Jul/2018 09:24:05] "GET /users/userinfo HTTP/1.1" 500 147372 +[16/Jul/2018 09:24:25] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744 +Internal Server Error: /users/userinfo +Traceback (most recent call last): + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render + return self.template.render(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/base.py", line 175, in render + return self._render(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/test/utils.py", line 98, in instrumented_test_render + return self.nodelist.render(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/base.py", line 943, in render + bit = node.render_annotated(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/base.py", line 910, in render_annotated + return self.render(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/loader_tags.py", line 132, in render + compiled_parent = self.get_parent(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/loader_tags.py", line 129, in get_parent + return self.find_template(parent, context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/loader_tags.py", line 109, in find_template + template_name, skip=history, + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/engine.py", line 130, in find_template + raise TemplateDoesNotExist(name, tried=tried) +django.template.exceptions.TemplateDoesNotExist: users/user_center_base.html + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/handlers/exception.py", line 35, in inner + response = get_response(request) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/handlers/base.py", line 128, in _get_response + response = self.process_exception_by_middleware(e, request) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/handlers/base.py", line 126, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/views/generic/base.py", line 69, in view + return self.dispatch(request, *args, **kwargs) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/views/generic/base.py", line 89, in dispatch + return handler(request, *args, **kwargs) + File "/projects/codepedia-test/codepedia2.0/apps/users/views.py", line 113, in get + return render(request, 'users/user_info.html', {'user': user}) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/shortcuts.py", line 36, in render + content = loader.render_to_string(template_name, context, request, using=using) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/loader.py", line 62, in render_to_string + return template.render(context, request) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/backends/django.py", line 63, in render + reraise(exc, self.backend) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/backends/django.py", line 84, in reraise + raise new from exc +django.template.exceptions.TemplateDoesNotExist: users/user_center_base.html +[16/Jul/2018 09:29:21] "GET /users/userinfo HTTP/1.1" 500 147372 +Performing system checks... + +System check identified no issues (0 silenced). +July 15, 2018 - 15:55:46 +Django version 2.0.6, using settings 'Codepedia2.settings' +Starting development server at http://0.0.0.0:9000/ +Quit the server with CONTROL-C. +Not Found: /http:/www.bing.com/ +[16/Jul/2018 09:33:21] "GET http://www.bing.com/ HTTP/1.1" 404 1665 +Not Found: /http:/www.boxun.com/ +[16/Jul/2018 09:33:27] "GET http://www.boxun.com/ HTTP/1.1" 404 1669 +Not Found: /http:/wujieliulan.com/ +[16/Jul/2018 09:33:27] "GET http://wujieliulan.com/ HTTP/1.1" 404 1677 +Not Found: /http:/www.minghui.org/ +[16/Jul/2018 09:33:27] "GET http://www.minghui.org/ HTTP/1.1" 404 1677 +Not Found: /http:/www.epochtimes.com/ +[16/Jul/2018 09:33:27] "GET http://www.epochtimes.com/ HTTP/1.1" 404 1689 +Traceback (most recent call last): + File "/root//envs/codepedia2/lib/python3.6/wsgiref/handlers.py", line 138, in run + self.finish_response() + File "/root//envs/codepedia2/lib/python3.6/wsgiref/handlers.py", line 180, in finish_response + self.write(data) + File "/root//envs/codepedia2/lib/python3.6/wsgiref/handlers.py", line 274, in write + self.send_headers() + File "/root//envs/codepedia2/lib/python3.6/wsgiref/handlers.py", line 332, in send_headers + self.send_preamble() + File "/root//envs/codepedia2/lib/python3.6/wsgiref/handlers.py", line 252, in send_preamble + self._write(('HTTP/%s %s\r\n' % (self.http_version,self.status)).encode('iso-8859-1')) + File "/root//envs/codepedia2/lib/python3.6/wsgiref/handlers.py", line 453, in _write + result = self.stdout.write(data) + File "/root//envs/codepedia2/lib/python3.6/socketserver.py", line 800, in write + self._sock.sendall(b) +ConnectionResetError: [Errno 104] Connection reset by peer +[16/Jul/2018 09:33:27] "GET http://www.epochtimes.com/ HTTP/1.1" 500 59 +---------------------------------------- +Exception happened during processing of request from ('124.88.64.209', 51081) +Traceback (most recent call last): + File "/root//envs/codepedia2/lib/python3.6/wsgiref/handlers.py", line 138, in run + self.finish_response() + File "/root//envs/codepedia2/lib/python3.6/wsgiref/handlers.py", line 180, in finish_response + self.write(data) + File "/root//envs/codepedia2/lib/python3.6/wsgiref/handlers.py", line 274, in write + self.send_headers() + File "/root//envs/codepedia2/lib/python3.6/wsgiref/handlers.py", line 332, in send_headers + self.send_preamble() + File "/root//envs/codepedia2/lib/python3.6/wsgiref/handlers.py", line 252, in send_preamble + self._write(('HTTP/%s %s\r\n' % (self.http_version,self.status)).encode('iso-8859-1')) + File "/root//envs/codepedia2/lib/python3.6/wsgiref/handlers.py", line 453, in _write + result = self.stdout.write(data) + File "/root//envs/codepedia2/lib/python3.6/socketserver.py", line 800, in write + self._sock.sendall(b) +ConnectionResetError: [Errno 104] Connection reset by peer + +During handling of the above exception, another exception occurred: + +Traceback (most recent call last): + File "/root//envs/codepedia2/lib/python3.6/wsgiref/handlers.py", line 141, in run + self.handle_error() + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/servers/basehttp.py", line 86, in handle_error + super().handle_error() + File "/root//envs/codepedia2/lib/python3.6/wsgiref/handlers.py", line 368, in handle_error + self.finish_response() + File "/root//envs/codepedia2/lib/python3.6/wsgiref/handlers.py", line 180, in finish_response + self.write(data) + File "/root//envs/codepedia2/lib/python3.6/wsgiref/handlers.py", line 274, in write + self.send_headers() + File "/root//envs/codepedia2/lib/python3.6/wsgiref/handlers.py", line 331, in send_headers + if not self.origin_server or self.client_is_modern(): + File "/root//envs/codepedia2/lib/python3.6/wsgiref/handlers.py", line 344, in client_is_modern + return self.environ['SERVER_PROTOCOL'].upper() != 'HTTP/0.9' +TypeError: 'NoneType' object is not subscriptable + +During handling of the above exception, another exception occurred: + +Traceback (most recent call last): + File "/root//envs/codepedia2/lib/python3.6/socketserver.py", line 651, in process_request_thread + self.finish_request(request, client_address) + File "/root//envs/codepedia2/lib/python3.6/socketserver.py", line 361, in finish_request + self.RequestHandlerClass(request, client_address, self) + File "/root//envs/codepedia2/lib/python3.6/socketserver.py", line 721, in __init__ + self.handle() + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/servers/basehttp.py", line 154, in handle + handler.run(self.server.get_app()) + File "/root//envs/codepedia2/lib/python3.6/wsgiref/handlers.py", line 144, in run + self.close() + File "/root//envs/codepedia2/lib/python3.6/wsgiref/simple_server.py", line 35, in close + self.status.split(' ',1)[0], self.bytes_sent +AttributeError: 'NoneType' object has no attribute 'split' +---------------------------------------- +Not Found: /www.voanews.com:443 +[16/Jul/2018 09:33:27] "CONNECT www.voanews.com:443 HTTP/1.0" 404 1669 +Not Found: /http:/www.123cha.com/ +[16/Jul/2018 09:33:39] "GET http://www.123cha.com/ HTTP/1.1" 404 1673 +Not Found: /http:/www.baidu.com/ +[16/Jul/2018 09:33:39] "GET http://www.baidu.com/ HTTP/1.1" 404 1669 +Internal Server Error: /users/userinfo +Traceback (most recent call last): + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/handlers/exception.py", line 35, in inner + response = get_response(request) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/handlers/base.py", line 128, in _get_response + response = self.process_exception_by_middleware(e, request) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/handlers/base.py", line 126, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/views/generic/base.py", line 69, in view + return self.dispatch(request, *args, **kwargs) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/views/generic/base.py", line 89, in dispatch + return handler(request, *args, **kwargs) + File "/projects/codepedia-test/codepedia2.0/apps/users/views.py", line 113, in get + return render(request, 'users/user_info.html', {'user': user}) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/shortcuts.py", line 36, in render + content = loader.render_to_string(template_name, context, request, using=using) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/loader.py", line 62, in render_to_string + return template.render(context, request) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render + return self.template.render(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/base.py", line 175, in render + return self._render(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/test/utils.py", line 98, in instrumented_test_render + return self.nodelist.render(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/base.py", line 943, in render + bit = node.render_annotated(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/base.py", line 910, in render_annotated + return self.render(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/loader_tags.py", line 155, in render + return compiled_parent._render(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/test/utils.py", line 98, in instrumented_test_render + return self.nodelist.render(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/base.py", line 943, in render + bit = node.render_annotated(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/base.py", line 910, in render_annotated + return self.render(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/loader_tags.py", line 67, in render + result = block.nodelist.render(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/base.py", line 943, in render + bit = node.render_annotated(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/base.py", line 910, in render_annotated + return self.render(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/defaulttags.py", line 447, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/urls/base.py", line 90, in reverse + return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs)) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/urls/resolvers.py", line 636, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'user_info' not found. 'user_info' is not a valid view function or pattern name. +[16/Jul/2018 09:35:00] "GET /users/userinfo HTTP/1.1" 500 178409 +[16/Jul/2018 09:35:45] "GET /users/userinfo HTTP/1.1" 200 19165 +[16/Jul/2018 09:35:45] "GET /static/vendor/site/css/reset.css HTTP/1.1" 200 2808 +[16/Jul/2018 09:35:45] "GET /static/vendor/site/js/plugins/queryCity/css/cityLayout.css HTTP/1.1" 200 10464 +[16/Jul/2018 09:35:45] "GET /static/vendor/site/css/lq.datetimepick.css HTTP/1.1" 200 5049 +[16/Jul/2018 09:35:45] "GET /static/vendor/site/js/jquery-migrate-1.2.1.min.js HTTP/1.1" 200 7200 +[16/Jul/2018 09:35:45] "GET /static/vendor/site/css/animate.css HTTP/1.1" 200 74079 +[16/Jul/2018 09:35:45] "GET /static/vendor/site/js/jquery.min.js HTTP/1.1" 200 101700 +[16/Jul/2018 09:35:45] "GET /static/vendor/site/js/selectUi.js HTTP/1.1" 200 5816 +Not Found: /media/ +[16/Jul/2018 09:35:45] "GET /media/ HTTP/1.1" 404 1727 +[16/Jul/2018 09:35:46] "GET /static/vendor/site/js/plugins/laydate/laydate.js HTTP/1.1" 200 13877 +[16/Jul/2018 09:35:46] "GET /static/vendor/site/js/plugins/layer/layer.js HTTP/1.1" 200 14941 +[16/Jul/2018 09:35:46] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744 +[16/Jul/2018 09:35:46] "GET /static/vendor/site/js/plugins/laydate/need/laydate.css HTTP/1.1" 200 6028 +[16/Jul/2018 09:35:46] "GET /static/vendor/site/images/side4.png HTTP/1.1" 200 1172 +[16/Jul/2018 09:35:46] "GET /static/vendor/site/js/plugins/laydate/skins/default/laydate.css HTTP/1.1" 200 3575 +[16/Jul/2018 09:35:46] "GET /static/vendor/site/images/arrow.png HTTP/1.1" 200 1295 +[16/Jul/2018 09:35:46] "GET /static/vendor/site/js/plugins/layer/skin/layer.css HTTP/1.1" 200 11336 +[16/Jul/2018 09:35:46] "GET /static/vendor/site/images/arrow_g.png HTTP/1.1" 200 1275 +[16/Jul/2018 09:35:46] "GET /static/vendor/site/images/side1.png HTTP/1.1" 200 1318 +[16/Jul/2018 09:35:46] "GET /static/vendor/site/js/unslider.js HTTP/1.1" 200 2776 +[16/Jul/2018 09:35:46] "GET /static/vendor/site/js/validateDialog.js HTTP/1.1" 200 1878 +[16/Jul/2018 09:35:46] "GET /static/vendor/site/js/plugins/jquery.scrollLoading.js HTTP/1.1" 200 770 +[16/Jul/2018 09:35:46] "GET /static/vendor/site/js/plugins/queryCity/js/public.js HTTP/1.1" 200 43900 +[16/Jul/2018 09:35:46] "GET /static/vendor/site/js/deco-common.js HTTP/1.1" 200 21122 +[16/Jul/2018 09:35:46] "GET /static/vendor/site/js/plugins/jquery.upload.js HTTP/1.1" 200 2876 +[16/Jul/2018 09:35:46] "GET /static/vendor/site/js/validate.js HTTP/1.1" 200 2932 +[16/Jul/2018 09:35:46] "GET /static/vendor/site/js/deco-user.js HTTP/1.1" 200 6718 +[16/Jul/2018 09:35:47] "GET /static/vendor/site/images/dig_close.png HTTP/1.1" 200 1211 +Not Found: /images/send.png +[16/Jul/2018 09:35:47] "GET /images/send.png HTTP/1.1" 404 3115 +[16/Jul/2018 09:35:47] "GET /captcha/image/5f3c00e47fb1be12d2fd15b9a860711597721b3f/ HTTP/1.1" 410 0 +[16/Jul/2018 09:35:47] "GET /static/vendor/site/js/plugins/layer/extend/layer.ext.js HTTP/1.1" 200 4758 +[16/Jul/2018 09:35:47] "GET /static/vendor/site/js/plugins/layer/skin/layer.ext.css HTTP/1.1" 200 2867 +[16/Jul/2018 09:35:47] "GET /static/images/error-img.png HTTP/1.1" 404 1690 +[16/Jul/2018 09:35:49] "GET /users/userinfo HTTP/1.1" 200 19165 +Not Found: /media/ +[16/Jul/2018 09:35:49] "GET /media/ HTTP/1.1" 404 1727 +Not Found: /images/send.png +[16/Jul/2018 09:35:49] "GET /images/send.png HTTP/1.1" 404 3115 +[16/Jul/2018 09:35:50] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744 +[16/Jul/2018 09:35:50] "GET /static/images/error-img.png HTTP/1.1" 404 1690 +[16/Jul/2018 09:35:50] "GET /users/userinfo HTTP/1.1" 200 19165 +Not Found: /media/ +[16/Jul/2018 09:35:51] "GET /media/ HTTP/1.1" 404 1727 +Not Found: /images/send.png +[16/Jul/2018 09:35:51] "GET /images/send.png HTTP/1.1" 404 3115 +[16/Jul/2018 09:35:51] "GET /static/images/error-img.png HTTP/1.1" 404 1690 +[16/Jul/2018 09:35:51] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744 +[16/Jul/2018 09:35:51] "GET /users/userinfo HTTP/1.1" 200 19165 +Not Found: /media/ +[16/Jul/2018 09:35:52] "GET /media/ HTTP/1.1" 404 1727 +Not Found: /images/send.png +[16/Jul/2018 09:35:52] "GET /images/send.png HTTP/1.1" 404 3115 +[16/Jul/2018 09:35:52] "GET /static/images/error-img.png HTTP/1.1" 404 1690 +[16/Jul/2018 09:35:52] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744 +Internal Server Error: /users/userinfo +Traceback (most recent call last): + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/handlers/exception.py", line 35, in inner + response = get_response(request) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/handlers/base.py", line 128, in _get_response + response = self.process_exception_by_middleware(e, request) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/handlers/base.py", line 126, in _get_response + response = wrapped_callback(request, *callback_args, **callback_kwargs) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/views/generic/base.py", line 69, in view + return self.dispatch(request, *args, **kwargs) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/views/generic/base.py", line 89, in dispatch + return handler(request, *args, **kwargs) + File "/projects/codepedia-test/codepedia2.0/apps/users/views.py", line 113, in get + return render(request, 'users/user_info.html', {'user': user}) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/shortcuts.py", line 36, in render + content = loader.render_to_string(template_name, context, request, using=using) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/loader.py", line 62, in render_to_string + return template.render(context, request) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/backends/django.py", line 61, in render + return self.template.render(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/base.py", line 175, in render + return self._render(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/test/utils.py", line 98, in instrumented_test_render + return self.nodelist.render(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/base.py", line 943, in render + bit = node.render_annotated(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/base.py", line 910, in render_annotated + return self.render(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/loader_tags.py", line 155, in render + return compiled_parent._render(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/test/utils.py", line 98, in instrumented_test_render + return self.nodelist.render(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/base.py", line 943, in render + bit = node.render_annotated(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/base.py", line 910, in render_annotated + return self.render(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/loader_tags.py", line 67, in render + result = block.nodelist.render(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/base.py", line 943, in render + bit = node.render_annotated(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/base.py", line 910, in render_annotated + return self.render(context) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/template/defaulttags.py", line 447, in render + url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/urls/base.py", line 90, in reverse + return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs)) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/urls/resolvers.py", line 636, in _reverse_with_prefix + raise NoReverseMatch(msg) +django.urls.exceptions.NoReverseMatch: Reverse for 'user_info' not found. 'user_info' is not a valid view function or pattern name. +[16/Jul/2018 09:36:53] "GET /users/userinfo HTTP/1.1" 500 178289 +[16/Jul/2018 09:37:01] "GET /users/userinfo HTTP/1.1" 200 18609 +Not Found: /media/ +Not Found: /images/send.png +[16/Jul/2018 09:37:01] "GET /media/ HTTP/1.1" 404 1727 +[16/Jul/2018 09:37:01] "GET /images/send.png HTTP/1.1" 404 3115 +[16/Jul/2018 09:37:01] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744 +[16/Jul/2018 09:37:01] "GET /static/images/error-img.png HTTP/1.1" 404 1690 +[16/Jul/2018 09:37:04] "GET /users/userinfo HTTP/1.1" 200 18609 +Not Found: /images/send.png +Not Found: /media/ +[16/Jul/2018 09:37:05] "GET /images/send.png HTTP/1.1" 404 3115 +[16/Jul/2018 09:37:05] "GET /media/ HTTP/1.1" 404 1727 +[16/Jul/2018 09:37:05] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744 +[16/Jul/2018 09:37:05] "GET /static/images/error-img.png HTTP/1.1" 404 1690 +[16/Jul/2018 09:37:06] "GET /users/userinfo HTTP/1.1" 200 18609 +Not Found: /media/ +[16/Jul/2018 09:37:06] "GET /media/ HTTP/1.1" 404 1727 +Not Found: /images/send.png +[16/Jul/2018 09:37:06] "GET /images/send.png HTTP/1.1" 404 3115 +[16/Jul/2018 09:37:07] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744 +[16/Jul/2018 09:37:07] "GET /static/images/error-img.png HTTP/1.1" 404 1690 +[16/Jul/2018 09:37:07] "GET /users/userinfo HTTP/1.1" 200 18609 +Not Found: /media/ +[16/Jul/2018 09:37:07] "GET /media/ HTTP/1.1" 404 1727 +Not Found: /images/send.png +[16/Jul/2018 09:37:07] "GET /images/send.png HTTP/1.1" 404 3115 +[16/Jul/2018 09:37:08] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744 +[16/Jul/2018 09:37:08] "GET /static/images/error-img.png HTTP/1.1" 404 1690 +[16/Jul/2018 09:37:08] "GET /users/userinfo HTTP/1.1" 200 18609 +Not Found: /media/ +[16/Jul/2018 09:37:09] "GET /media/ HTTP/1.1" 404 1727 +Not Found: /images/send.png +[16/Jul/2018 09:37:09] "GET /images/send.png HTTP/1.1" 404 3115 +[16/Jul/2018 09:37:09] "GET /users/userinfo HTTP/1.1" 200 18609 +[16/Jul/2018 09:37:09] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744 +Not Found: /media/ +[16/Jul/2018 09:37:10] "GET /media/ HTTP/1.1" 404 1727 +Not Found: /images/send.png +[16/Jul/2018 09:37:10] "GET /images/send.png HTTP/1.1" 404 3115 +[16/Jul/2018 09:37:10] "GET /static/vendor/bootstrap/css/bootstrap.css.map HTTP/1.1" 404 1744 +[16/Jul/2018 09:37:10] "GET /static/images/error-img.png HTTP/1.1" 404 1690 +[16/Jul/2018 09:37:15] "GET /users/userinfo HTTP/1.1" 200 18609 +Not Found: /images/send.png +[16/Jul/2018 09:37:16] "GET /images/send.png HTTP/1.1" 404 3115 +Not Found: /media/ +[16/Jul/2018 09:37:16] "GET /media/ HTTP/1.1" 404 1727 +[16/Jul/2018 09:37:16] "GET /static/images/error-img.png HTTP/1.1" 404 1690 +[16/Jul/2018 09:37:17] "GET /users/userinfo HTTP/1.1" 200 18609 +Not Found: /media/ +[16/Jul/2018 09:37:18] "GET /media/ HTTP/1.1" 404 1727 +Not Found: /images/send.png +[16/Jul/2018 09:37:18] "GET /images/send.png HTTP/1.1" 404 3115 +[16/Jul/2018 09:37:18] "GET /static/images/error-img.png HTTP/1.1" 404 1690 +[16/Jul/2018 09:37:20] "GET /users/userinfo HTTP/1.1" 200 18609 +Not Found: /images/send.png +Not Found: /media/ +[16/Jul/2018 09:37:20] "GET /media/ HTTP/1.1" 404 1727 +[16/Jul/2018 09:37:20] "GET /images/send.png HTTP/1.1" 404 3115 +[16/Jul/2018 09:37:20] "GET /static/images/error-img.png HTTP/1.1" 404 1690 +Not Found: /users/image/upload/ +[16/Jul/2018 09:38:36] "POST /users/image/upload/ HTTP/1.1" 404 3929 +Not Found: /users/info/ +[16/Jul/2018 09:38:38] "POST /users/info/ HTTP/1.1" 404 3905 +Not Found: /users/info/ +[16/Jul/2018 09:38:40] "POST /users/info/ HTTP/1.1" 404 3905 +[16/Jul/2018 09:38:43] "GET /users/userinfo HTTP/1.1" 200 18609 +Not Found: /images/send.png +Not Found: /media/ +[16/Jul/2018 09:38:43] "GET /images/send.png HTTP/1.1" 404 3115 +[16/Jul/2018 09:38:43] "GET /media/ HTTP/1.1" 404 1727 +[16/Jul/2018 09:38:43] "GET /static/images/error-img.png HTTP/1.1" 404 1690 +[16/Jul/2018 09:38:48] "GET /users/userinfo HTTP/1.1" 200 18609 +Not Found: /media/ +[16/Jul/2018 09:38:48] "GET /media/ HTTP/1.1" 404 1727 +Not Found: /images/send.png +[16/Jul/2018 09:38:48] "GET /images/send.png HTTP/1.1" 404 3115 +[16/Jul/2018 09:38:48] "GET /static/images/error-img.png HTTP/1.1" 404 1690 +[16/Jul/2018 09:38:50] "GET /users/userinfo HTTP/1.1" 200 18609 +Not Found: /images/send.png +[16/Jul/2018 09:38:50] "GET /images/send.png HTTP/1.1" 404 3115 +Not Found: /media/ +[16/Jul/2018 09:38:50] "GET /media/ HTTP/1.1" 404 1727 +[16/Jul/2018 09:38:50] "GET /static/images/error-img.png HTTP/1.1" 404 1690 +[16/Jul/2018 09:38:51] "GET /users/userinfo HTTP/1.1" 200 18609 +Not Found: /media/ +[16/Jul/2018 09:38:51] "GET /media/ HTTP/1.1" 404 1727 +Not Found: /images/send.png +[16/Jul/2018 09:38:51] "GET /images/send.png HTTP/1.1" 404 3115 +[16/Jul/2018 09:38:52] "GET /static/images/error-img.png HTTP/1.1" 404 1690 +[16/Jul/2018 09:38:57] "GET /users/userinfo HTTP/1.1" 200 18609 +Not Found: /media/ +[16/Jul/2018 09:38:57] "GET /media/ HTTP/1.1" 404 1727 +Not Found: /images/send.png +[16/Jul/2018 09:38:57] "GET /images/send.png HTTP/1.1" 404 3115 +[16/Jul/2018 09:38:57] "GET /static/images/error-img.png HTTP/1.1" 404 1690 +[16/Jul/2018 09:38:57] "GET /users/userinfo HTTP/1.1" 200 18609 +Not Found: /images/send.png +Not Found: /media/ +[16/Jul/2018 09:38:58] "GET /images/send.png HTTP/1.1" 404 3115 +[16/Jul/2018 09:38:58] "GET /media/ HTTP/1.1" 404 1727 +[16/Jul/2018 09:38:58] "GET /static/images/error-img.png HTTP/1.1" 404 1690 +[16/Jul/2018 09:38:58] "GET /users/userinfo HTTP/1.1" 200 18609 +Not Found: /images/send.png +[16/Jul/2018 09:38:59] "GET /images/send.png HTTP/1.1" 404 3115 +Not Found: /media/ +[16/Jul/2018 09:38:59] "GET /media/ HTTP/1.1" 404 1727 +[16/Jul/2018 09:38:59] "GET /static/images/error-img.png HTTP/1.1" 404 1690 +[16/Jul/2018 09:40:47] "GET / HTTP/1.1" 200 24242 +[16/Jul/2018 09:40:51] "GET /users/logout/ HTTP/1.1" 302 0 +[16/Jul/2018 09:40:51] "GET / HTTP/1.1" 200 22443 +[16/Jul/2018 09:40:53] "GET /users/login/ HTTP/1.1" 200 4230 +Performing system checks... + +System check identified no issues (0 silenced). +July 16, 2018 - 09:31:16 +Django version 2.0.6, using settings 'Codepedia2.settings' +Starting development server at http://0.0.0.0:9000/ +Quit the server with CONTROL-C. +Performing system checks... + +System check identified no issues (0 silenced). +July 16, 2018 - 09:48:15 +Django version 2.0.6, using settings 'Codepedia2.settings' +Starting development server at http://0.0.0.0:9000/ +Quit the server with CONTROL-C. +Performing system checks... + +System check identified no issues (0 silenced). +July 16, 2018 - 09:48:25 +Django version 2.0.6, using settings 'Codepedia2.settings' +Starting development server at http://0.0.0.0:9000/ +Quit the server with CONTROL-C. +Unhandled exception in thread started by .wrapper at 0x7f5dc418ac80> +Traceback (most recent call last): + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/utils/autoreload.py", line 225, in wrapper + fn(*args, **kwargs) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 120, in inner_run + self.check(display_num_errors=True) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/management/base.py", line 364, in check + include_deployment_checks=include_deployment_checks, + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/management/base.py", line 351, in _run_checks + return checks.run_checks(**kwargs) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/checks/registry.py", line 73, in run_checks + new_errors = check(app_configs=app_configs) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/checks/urls.py", line 40, in check_url_namespaces_unique + all_namespaces = _load_all_namespaces(resolver) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/checks/urls.py", line 57, in _load_all_namespaces + url_patterns = getattr(resolver, 'url_patterns', []) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/utils/functional.py", line 36, in __get__ + res = instance.__dict__[self.name] = self.func(instance) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/urls/resolvers.py", line 540, in url_patterns + patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/utils/functional.py", line 36, in __get__ + res = instance.__dict__[self.name] = self.func(instance) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/urls/resolvers.py", line 533, in urlconf_module + return import_module(self.urlconf_name) + File "/root//envs/codepedia2/lib/python3.6/importlib/__init__.py", line 126, in import_module + return _bootstrap._gcd_import(name[level:], package, level) + File "", line 994, in _gcd_import + File "", line 971, in _find_and_load + File "", line 955, in _find_and_load_unlocked + File "", line 665, in _load_unlocked + File "", line 678, in exec_module + File "", line 219, in _call_with_frames_removed + File "/projects/codepedia-test/codepedia2.0/Codepedia2/urls.py", line 21, in + from users.views import IndexView + File "/projects/codepedia-test/codepedia2.0/apps/users/views.py", line 16, in + from .forms import LoginForm,RegisterForm + File "/projects/codepedia-test/codepedia2.0/apps/users/forms.py", line 15 + class ForgetPwdForm(forms.Form) + ^ +SyntaxError: invalid syntax +Performing system checks... + +Unhandled exception in thread started by .wrapper at 0x7fb0b2995c80> +Traceback (most recent call last): + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/utils/autoreload.py", line 225, in wrapper + fn(*args, **kwargs) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 120, in inner_run + self.check(display_num_errors=True) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/management/base.py", line 364, in check + include_deployment_checks=include_deployment_checks, + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/management/base.py", line 351, in _run_checks + return checks.run_checks(**kwargs) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/checks/registry.py", line 73, in run_checks + new_errors = check(app_configs=app_configs) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/checks/urls.py", line 40, in check_url_namespaces_unique + all_namespaces = _load_all_namespaces(resolver) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/checks/urls.py", line 57, in _load_all_namespaces + url_patterns = getattr(resolver, 'url_patterns', []) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/utils/functional.py", line 36, in __get__ + res = instance.__dict__[self.name] = self.func(instance) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/urls/resolvers.py", line 540, in url_patterns + patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/utils/functional.py", line 36, in __get__ + res = instance.__dict__[self.name] = self.func(instance) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/urls/resolvers.py", line 533, in urlconf_module + return import_module(self.urlconf_name) + File "/root//envs/codepedia2/lib/python3.6/importlib/__init__.py", line 126, in import_module + return _bootstrap._gcd_import(name[level:], package, level) + File "", line 994, in _gcd_import + File "", line 971, in _find_and_load + File "", line 955, in _find_and_load_unlocked + File "", line 665, in _load_unlocked + File "", line 678, in exec_module + File "", line 219, in _call_with_frames_removed + File "/projects/codepedia-test/codepedia2.0/Codepedia2/urls.py", line 21, in + from users.views import IndexView + File "/projects/codepedia-test/codepedia2.0/apps/users/views.py", line 16, in + from .forms import LoginForm,RegisterForm + File "/projects/codepedia-test/codepedia2.0/apps/users/forms.py", line 16 + + ^ +SyntaxError: unexpected EOF while parsing +Performing system checks... + +Unhandled exception in thread started by .wrapper at 0x7f402e697c80> +Traceback (most recent call last): + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/utils/autoreload.py", line 225, in wrapper + fn(*args, **kwargs) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 120, in inner_run + self.check(display_num_errors=True) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/management/base.py", line 364, in check + include_deployment_checks=include_deployment_checks, + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/management/base.py", line 351, in _run_checks + return checks.run_checks(**kwargs) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/checks/registry.py", line 73, in run_checks + new_errors = check(app_configs=app_configs) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/checks/urls.py", line 40, in check_url_namespaces_unique + all_namespaces = _load_all_namespaces(resolver) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/checks/urls.py", line 57, in _load_all_namespaces + url_patterns = getattr(resolver, 'url_patterns', []) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/utils/functional.py", line 36, in __get__ + res = instance.__dict__[self.name] = self.func(instance) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/urls/resolvers.py", line 540, in url_patterns + patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/utils/functional.py", line 36, in __get__ + res = instance.__dict__[self.name] = self.func(instance) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/urls/resolvers.py", line 533, in urlconf_module + return import_module(self.urlconf_name) + File "/root//envs/codepedia2/lib/python3.6/importlib/__init__.py", line 126, in import_module + return _bootstrap._gcd_import(name[level:], package, level) + File "", line 994, in _gcd_import + File "", line 971, in _find_and_load + File "", line 955, in _find_and_load_unlocked + File "", line 665, in _load_unlocked + File "", line 678, in exec_module + File "", line 219, in _call_with_frames_removed + File "/projects/codepedia-test/codepedia2.0/Codepedia2/urls.py", line 21, in + from users.views import IndexView + File "/projects/codepedia-test/codepedia2.0/apps/users/views.py", line 16, in + from .forms import LoginForm,RegisterForm + File "/projects/codepedia-test/codepedia2.0/apps/users/forms.py", line 19, in + class UserInfoForm(forms.Form): + File "/projects/codepedia-test/codepedia2.0/apps/users/forms.py", line 20, in UserInfoForm + class Meta: + File "/projects/codepedia-test/codepedia2.0/apps/users/forms.py", line 21, in Meta + model = UserProfile +NameError: name 'UserProfile' is not defined +Performing system checks... + +Unhandled exception in thread started by .wrapper at 0x7f9a0848ac80> +Traceback (most recent call last): + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/utils/autoreload.py", line 225, in wrapper + fn(*args, **kwargs) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 120, in inner_run + self.check(display_num_errors=True) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/management/base.py", line 364, in check + include_deployment_checks=include_deployment_checks, + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/management/base.py", line 351, in _run_checks + return checks.run_checks(**kwargs) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/checks/registry.py", line 73, in run_checks + new_errors = check(app_configs=app_configs) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/checks/urls.py", line 40, in check_url_namespaces_unique + all_namespaces = _load_all_namespaces(resolver) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/checks/urls.py", line 57, in _load_all_namespaces + url_patterns = getattr(resolver, 'url_patterns', []) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/utils/functional.py", line 36, in __get__ + res = instance.__dict__[self.name] = self.func(instance) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/urls/resolvers.py", line 540, in url_patterns + patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/utils/functional.py", line 36, in __get__ + res = instance.__dict__[self.name] = self.func(instance) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/urls/resolvers.py", line 533, in urlconf_module + return import_module(self.urlconf_name) + File "/root//envs/codepedia2/lib/python3.6/importlib/__init__.py", line 126, in import_module + return _bootstrap._gcd_import(name[level:], package, level) + File "", line 994, in _gcd_import + File "", line 971, in _find_and_load + File "", line 955, in _find_and_load_unlocked + File "", line 665, in _load_unlocked + File "", line 678, in exec_module + File "", line 219, in _call_with_frames_removed + File "/projects/codepedia-test/codepedia2.0/Codepedia2/urls.py", line 21, in + from users.views import IndexView + File "/projects/codepedia-test/codepedia2.0/apps/users/views.py", line 16, in + from .forms import LoginForm,RegisterForm + File "/projects/codepedia-test/codepedia2.0/apps/users/forms.py", line 19, in + class UserInfoForm(forms.Form): + File "/projects/codepedia-test/codepedia2.0/apps/users/forms.py", line 20, in UserInfoForm + class Meta: + File "/projects/codepedia-test/codepedia2.0/apps/users/forms.py", line 21, in Meta + model = UserProfile +NameError: name 'UserProfile' is not defined +Performing system checks... + +Unhandled exception in thread started by .wrapper at 0x7fcb4341cc80> +Traceback (most recent call last): + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/utils/autoreload.py", line 225, in wrapper + fn(*args, **kwargs) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 120, in inner_run + self.check(display_num_errors=True) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/management/base.py", line 364, in check + include_deployment_checks=include_deployment_checks, + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/management/base.py", line 351, in _run_checks + return checks.run_checks(**kwargs) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/checks/registry.py", line 73, in run_checks + new_errors = check(app_configs=app_configs) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/checks/urls.py", line 40, in check_url_namespaces_unique + all_namespaces = _load_all_namespaces(resolver) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/checks/urls.py", line 57, in _load_all_namespaces + url_patterns = getattr(resolver, 'url_patterns', []) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/utils/functional.py", line 36, in __get__ + res = instance.__dict__[self.name] = self.func(instance) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/urls/resolvers.py", line 540, in url_patterns + patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/utils/functional.py", line 36, in __get__ + res = instance.__dict__[self.name] = self.func(instance) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/urls/resolvers.py", line 533, in urlconf_module + return import_module(self.urlconf_name) + File "/root//envs/codepedia2/lib/python3.6/importlib/__init__.py", line 126, in import_module + return _bootstrap._gcd_import(name[level:], package, level) + File "", line 994, in _gcd_import + File "", line 971, in _find_and_load + File "", line 955, in _find_and_load_unlocked + File "", line 665, in _load_unlocked + File "", line 678, in exec_module + File "", line 219, in _call_with_frames_removed + File "/projects/codepedia-test/codepedia2.0/Codepedia2/urls.py", line 21, in + from users.views import IndexView + File "/projects/codepedia-test/codepedia2.0/apps/users/views.py", line 16, in + from .forms import LoginForm,RegisterForm + File "/projects/codepedia-test/codepedia2.0/apps/users/forms.py", line 19, in + class UserInfoForm(forms.Form): + File "/projects/codepedia-test/codepedia2.0/apps/users/forms.py", line 20, in UserInfoForm + class Meta: + File "/projects/codepedia-test/codepedia2.0/apps/users/forms.py", line 21, in Meta + model = UserProfile +NameError: name 'UserProfile' is not defined +Performing system checks... + +Unhandled exception in thread started by .wrapper at 0x7f4805d57c80> +Traceback (most recent call last): + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/utils/autoreload.py", line 225, in wrapper + fn(*args, **kwargs) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 120, in inner_run + self.check(display_num_errors=True) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/management/base.py", line 364, in check + include_deployment_checks=include_deployment_checks, + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/management/base.py", line 351, in _run_checks + return checks.run_checks(**kwargs) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/checks/registry.py", line 73, in run_checks + new_errors = check(app_configs=app_configs) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/checks/urls.py", line 40, in check_url_namespaces_unique + all_namespaces = _load_all_namespaces(resolver) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/checks/urls.py", line 57, in _load_all_namespaces + url_patterns = getattr(resolver, 'url_patterns', []) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/utils/functional.py", line 36, in __get__ + res = instance.__dict__[self.name] = self.func(instance) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/urls/resolvers.py", line 540, in url_patterns + patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/utils/functional.py", line 36, in __get__ + res = instance.__dict__[self.name] = self.func(instance) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/urls/resolvers.py", line 533, in urlconf_module + return import_module(self.urlconf_name) + File "/root//envs/codepedia2/lib/python3.6/importlib/__init__.py", line 126, in import_module + return _bootstrap._gcd_import(name[level:], package, level) + File "", line 994, in _gcd_import + File "", line 971, in _find_and_load + File "", line 955, in _find_and_load_unlocked + File "", line 665, in _load_unlocked + File "", line 678, in exec_module + File "", line 219, in _call_with_frames_removed + File "/projects/codepedia-test/codepedia2.0/Codepedia2/urls.py", line 21, in + from users.views import IndexView + File "/projects/codepedia-test/codepedia2.0/apps/users/views.py", line 16, in + from .forms import LoginForm,RegisterForm + File "/projects/codepedia-test/codepedia2.0/apps/users/forms.py", line 4, in + from .models import UserProfile +ImportError: cannot import name 'UserProfile' +Performing system checks... + +Unhandled exception in thread started by .wrapper at 0x7fb5ffc74c80> +Traceback (most recent call last): + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/utils/autoreload.py", line 225, in wrapper + fn(*args, **kwargs) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 120, in inner_run + self.check(display_num_errors=True) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/management/base.py", line 364, in check + include_deployment_checks=include_deployment_checks, + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/management/base.py", line 351, in _run_checks + return checks.run_checks(**kwargs) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/checks/registry.py", line 73, in run_checks + new_errors = check(app_configs=app_configs) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/checks/urls.py", line 40, in check_url_namespaces_unique + all_namespaces = _load_all_namespaces(resolver) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/checks/urls.py", line 57, in _load_all_namespaces + url_patterns = getattr(resolver, 'url_patterns', []) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/utils/functional.py", line 36, in __get__ + res = instance.__dict__[self.name] = self.func(instance) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/urls/resolvers.py", line 540, in url_patterns + patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/utils/functional.py", line 36, in __get__ + res = instance.__dict__[self.name] = self.func(instance) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/urls/resolvers.py", line 533, in urlconf_module + return import_module(self.urlconf_name) + File "/root//envs/codepedia2/lib/python3.6/importlib/__init__.py", line 126, in import_module + return _bootstrap._gcd_import(name[level:], package, level) + File "", line 994, in _gcd_import + File "", line 971, in _find_and_load + File "", line 955, in _find_and_load_unlocked + File "", line 665, in _load_unlocked + File "", line 678, in exec_module + File "", line 219, in _call_with_frames_removed + File "/projects/codepedia-test/codepedia2.0/Codepedia2/urls.py", line 21, in + from users.views import IndexView + File "/projects/codepedia-test/codepedia2.0/apps/users/views.py", line 16, in + from .forms import LoginForm,RegisterForm + File "/projects/codepedia-test/codepedia2.0/apps/users/forms.py", line 4, in + from .models import UserProfile +ImportError: cannot import name 'UserProfile' +Performing system checks... + +Unhandled exception in thread started by .wrapper at 0x7f1131abbc80> +Traceback (most recent call last): + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/utils/autoreload.py", line 225, in wrapper + fn(*args, **kwargs) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/management/commands/runserver.py", line 120, in inner_run + self.check(display_num_errors=True) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/management/base.py", line 364, in check + include_deployment_checks=include_deployment_checks, + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/management/base.py", line 351, in _run_checks + return checks.run_checks(**kwargs) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/checks/registry.py", line 73, in run_checks + new_errors = check(app_configs=app_configs) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/checks/urls.py", line 40, in check_url_namespaces_unique + all_namespaces = _load_all_namespaces(resolver) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/core/checks/urls.py", line 57, in _load_all_namespaces + url_patterns = getattr(resolver, 'url_patterns', []) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/utils/functional.py", line 36, in __get__ + res = instance.__dict__[self.name] = self.func(instance) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/urls/resolvers.py", line 540, in url_patterns + patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/utils/functional.py", line 36, in __get__ + res = instance.__dict__[self.name] = self.func(instance) + File "/root//envs/codepedia2/lib/python3.6/site-packages/django/urls/resolvers.py", line 533, in urlconf_module + return import_module(self.urlconf_name) + File "/root//envs/codepedia2/lib/python3.6/importlib/__init__.py", line 126, in import_module + return _bootstrap._gcd_import(name[level:], package, level) + File "", line 994, in _gcd_import + File "", line 971, in _find_and_load + File "", line 955, in _find_and_load_unlocked + File "", line 665, in _load_unlocked + File "", line 678, in exec_module + File "", line 219, in _call_with_frames_removed + File "/projects/codepedia-test/codepedia2.0/Codepedia2/urls.py", line 21, in + from users.views import IndexView + File "/projects/codepedia-test/codepedia2.0/apps/users/views.py", line 16, in + from .forms import LoginForm,RegisterForm + File "/projects/codepedia-test/codepedia2.0/apps/users/forms.py", line 20, in + class UserInfoForm(forms.Form): + File "/projects/codepedia-test/codepedia2.0/apps/users/forms.py", line 21, in UserInfoForm + class Meta: + File "/projects/codepedia-test/codepedia2.0/apps/users/forms.py", line 22, in Meta + model = UserProfile +NameError: name 'UserProfile' is not defined +Performing system checks... + +[16/Jul/2018 09:59:31] "GET /users/login/ HTTP/1.1" 200 4230 diff --git a/static/js/source.js b/static/js/source.js index eaaed2b..dd98cbd 100644 --- a/static/js/source.js +++ b/static/js/source.js @@ -271,14 +271,13 @@ function submint_annotation(file_id, line_num, content) { str +=''; $("#codeopration_anno_" + +file_id + "_" + line_num).html(str); } - // else { - // var annonum_before = $("#annonums_" + line_num).text(); - // $("#annonums_" + line_num).html(parseInt(annonum_before) + 1); - // } + $(".addno-panel").hide(); + $(".source-addno-panel").remove(); + show_annotation(file_id,line_num); + }else{ + alert("您已经添加过注释了") + //alert(data.msg); } - //alert(data.msg); - $(".addno-panel").hide(); - $(".source-addno-panel").remove(); } }); } diff --git a/templates/users/email_send_success.html b/templates/users/email_send_success.html new file mode 100644 index 0000000..c0b7102 --- /dev/null +++ b/templates/users/email_send_success.html @@ -0,0 +1,10 @@ + + + + + + + +

邮件已发送,请查收

+ + \ No newline at end of file diff --git a/templates/users/forget_pwd.html b/templates/users/forget_pwd.html new file mode 100644 index 0000000..ca1941b --- /dev/null +++ b/templates/users/forget_pwd.html @@ -0,0 +1,103 @@ +{% extends 'shared/base.html' %} +{% load staticfiles %} +{% block title %} +登陆 +{% endblock %} + +{% block content %} +
+

成功提交

+
+
+

您的需求提交成功!

+

+
+
+
+

重新设置密码

+
+

请输入新密码

+
+
+ 密      码 + +
+
+ 确 认 密 码 + +
+
+ 验  证  码 + +
+
+
+ + +
+ +
+
+
+
+
+
+

慕学网,在线学习平台!

+ +
+
+
+
+
+ +
+
+ +{% endblock %} +{% block custom_js %} + + + + +{% endblock %} + diff --git a/templates/users/login.html b/templates/users/login.html index 3ee7fa8..bffbe6e 100755 --- a/templates/users/login.html +++ b/templates/users/login.html @@ -16,7 +16,8 @@