add userinfo.html forgetpwd an so on,but is so ugly

This commit is contained in:
wrmswindmill 2018-07-16 10:34:51 +08:00
parent 99d6f6aff3
commit f48b3ec682
11 changed files with 1355 additions and 19 deletions

View File

@ -46,7 +46,7 @@ INSTALLED_APPS = [
'projects',
'actions',
'operations',
# xadmin
# xadminxadmin
'xadmin',
'crispy_forms',
'reversion',

View File

@ -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),

View File

@ -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):
@ -11,3 +12,12 @@ class RegisterForm(forms.Form): # 注册
email = forms.EmailField(required=True)
password = forms.CharField(required=True, min_length=5)
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']

View File

@ -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/<str:active_code>', ActiveView.as_view(), name='useractive'),
]

View File

@ -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})

907
nohup.out
View File

@ -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 <function check_errors.<locals>.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 "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/projects/codepedia-test/codepedia2.0/Codepedia2/urls.py", line 21, in <module>
from users.views import IndexView
File "/projects/codepedia-test/codepedia2.0/apps/users/views.py", line 16, in <module>
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 <function check_errors.<locals>.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 "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/projects/codepedia-test/codepedia2.0/Codepedia2/urls.py", line 21, in <module>
from users.views import IndexView
File "/projects/codepedia-test/codepedia2.0/apps/users/views.py", line 16, in <module>
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 <function check_errors.<locals>.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 "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/projects/codepedia-test/codepedia2.0/Codepedia2/urls.py", line 21, in <module>
from users.views import IndexView
File "/projects/codepedia-test/codepedia2.0/apps/users/views.py", line 16, in <module>
from .forms import LoginForm,RegisterForm
File "/projects/codepedia-test/codepedia2.0/apps/users/forms.py", line 19, in <module>
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 <function check_errors.<locals>.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 "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/projects/codepedia-test/codepedia2.0/Codepedia2/urls.py", line 21, in <module>
from users.views import IndexView
File "/projects/codepedia-test/codepedia2.0/apps/users/views.py", line 16, in <module>
from .forms import LoginForm,RegisterForm
File "/projects/codepedia-test/codepedia2.0/apps/users/forms.py", line 19, in <module>
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 <function check_errors.<locals>.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 "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/projects/codepedia-test/codepedia2.0/Codepedia2/urls.py", line 21, in <module>
from users.views import IndexView
File "/projects/codepedia-test/codepedia2.0/apps/users/views.py", line 16, in <module>
from .forms import LoginForm,RegisterForm
File "/projects/codepedia-test/codepedia2.0/apps/users/forms.py", line 19, in <module>
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 <function check_errors.<locals>.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 "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/projects/codepedia-test/codepedia2.0/Codepedia2/urls.py", line 21, in <module>
from users.views import IndexView
File "/projects/codepedia-test/codepedia2.0/apps/users/views.py", line 16, in <module>
from .forms import LoginForm,RegisterForm
File "/projects/codepedia-test/codepedia2.0/apps/users/forms.py", line 4, in <module>
from .models import UserProfile
ImportError: cannot import name 'UserProfile'
Performing system checks...
Unhandled exception in thread started by <function check_errors.<locals>.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 "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/projects/codepedia-test/codepedia2.0/Codepedia2/urls.py", line 21, in <module>
from users.views import IndexView
File "/projects/codepedia-test/codepedia2.0/apps/users/views.py", line 16, in <module>
from .forms import LoginForm,RegisterForm
File "/projects/codepedia-test/codepedia2.0/apps/users/forms.py", line 4, in <module>
from .models import UserProfile
ImportError: cannot import name 'UserProfile'
Performing system checks...
Unhandled exception in thread started by <function check_errors.<locals>.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 "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/projects/codepedia-test/codepedia2.0/Codepedia2/urls.py", line 21, in <module>
from users.views import IndexView
File "/projects/codepedia-test/codepedia2.0/apps/users/views.py", line 16, in <module>
from .forms import LoginForm,RegisterForm
File "/projects/codepedia-test/codepedia2.0/apps/users/forms.py", line 20, in <module>
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

View File

@ -271,14 +271,13 @@ function submint_annotation(file_id, line_num, content) {
str +='</span>';
$("#codeopration_anno_" + +file_id + "_" + line_num).html(str);
}
// else {
// var annonum_before = $("#annonums_" + line_num).text();
// $("#annonums_" + line_num).html(parseInt(annonum_before) + 1);
// }
}
//alert(data.msg);
$(".addno-panel").hide();
$(".source-addno-panel").remove();
show_annotation(file_id,line_num);
}else{
alert("您已经添加过注释了")
//alert(data.msg);
}
}
});
}

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<p>邮件已发送,请查收</p>
</body>
</html>

View File

@ -0,0 +1,103 @@
{% extends 'shared/base.html' %}
{% load staticfiles %}
{% block title %}
登陆
{% endblock %}
{% block content %}
<div class="successbox dialogbox" id="jsSuccessTips">
<h1>成功提交</h1>
<div class="close jsCloseDialog"><img src="{% static 'image/dig_close.png' %}"/></div>
<div class="cont">
<h2>您的需求提交成功!</h2>
<p></p>
</div>
</div>
<div class="resetpassbox dialogbox" id="jsSetNewPwd">
<h1>重新设置密码</h1>
<div class="close jsCloseDialog"><img src="{% static 'image/dig_close.png' %}"/></div>
<p class="green">请输入新密码</p>
<form id="jsSetNewPwdForm">
<div class="box">
<span class="word2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
<input type="password" name="password" id="jsResetPwd" placeholder="请输入新密码"/>
</div>
<div class="box">
<span class="word2">&nbsp;&nbsp;&nbsp;</span>
<input type="password" name="password2" id="jsResetPwd2" placeholder="请再次输入新密码"/>
</div>
<div class="box">
<span class="word2">&nbsp;&nbsp;&nbsp;&nbsp;</span>
<input type="text" name="code" id="jsResetCode" placeholder="请输入手机验证码"/>
</div>
<div class="error btns" id="jsSetNewPwdTips"></div>
<div class="button">
<input type="hidden" name="mobile" id="jsInpResetMobil" />
<input id="jsSetNewPwdBtn" type="button" value="提交" />
</div>
<input type='hidden' name='csrfmiddlewaretoken' value='mymQDzHWl2REXIfPMg2mJaLqDfaS1sD5' />
</form>
</div>
<div class="bg" id="dialogBg"></div>
<header>
<div class="c-box fff-box">
<div class="wp header-box">
<p class="fl hd-tips">慕学网,在线学习平台!</p>
<ul class="fr hd-bar">
<li>服务电话:<span>33333333</span></li>
<li><a href="login.html">[登录]</a></li>
<li class="active"><a href="/forgetpwd/">[忘记密码]</a></li>
</ul>
</div>
</div>
</header>
<section>
<div class="c-box bg-box">
<div class="login-box clearfix">
<div class="hd-login clearfix">
<a class="index-logo" href="/"></a>
<h1>忘记密码</h1>
<a class="index-font" href="{% url 'index' %}">回到首页</a>
</div>
<div class="fl slide">
<div class="imgslide">
<ul class="imgs">
<li><a href=""><img width="483" height="472" src="{% static 'images/57a801860001c34b12000460.jpg' %}" /></a></li>
<li><a href=""><img width="483" height="472" src="{% static 'images/57a801860001c34b12000460.jpg' %}" /></a></li>
<li><a href=""><img width="483" height="472" src="{% static 'images/57a801860001c34b12000460.jpg' %}" /></a></li>
</ul>
</div>
<div class="unslider-arrow prev"></div>
<div class="unslider-arrow next"></div>
</div>
<div class="fl form-box">
<h2>忘记密码</h2>
<form id="jsFindPwdForm" method="post" action="{% url 'users:forgetpwd' %}" autocomplete="off">
<input type='hidden' name='csrfmiddlewaretoken' value='mymQDzHWl2REXIfPMg2mJaLqDfaS1sD5' />
<div class="form-group marb20 {% if forget_form.errors.email %} errorput{% endif %}">
<label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
<input type="text" id="account" name="email" value="{{ forget_form.email.value }}" placeholder="邮箱" />
</div>
<div class="form-group captcha1 marb38 {% if forget_form.errors.captcha %} errorput{% endif %} ">
<label>&nbsp;&nbsp;</label>
{{ forget_form.captcha }}
</div>
<div class="error btns" id="jsForgetTips">{% for key, error in forget_form.errors.items %}{{ error }} {% endfor %}{{ msg }}</div>
<input type="hidden" name="sms_type" value="1">
<input class="btn btn-green" id="jsFindPwdBtn" type="submit" value="提交" />
<p class="form-p" style="bottom:40px;">您还可以<a href="login.html"> [直接登录]</a></p>
{% csrf_token %}
</form>
</div>
</div>
</div>
</section>
<input id="isLogin" type="hidden" value="False"/>
{% endblock %}
{% block custom_js %}
<script src="{% static 'js/jquery.min.js' %}" type="text/javascript"></script>
<script src="{% static 'js/unslider.js' %}" type="text/javascript"></script>
<script src="{% static 'js/validateDialog.js' %}" type="text/javascript"></script>
<script src="{% static 'js/login.js' %}" type="text/javascript"></script>
{% endblock %}

View File

@ -16,7 +16,8 @@
<div class="new_login_box fr mr45 mt50 ">
<h2 class="new_login_h2">
登陆
<a href="{% url 'users:register' %}" class="fr mt5">还没账号 请注册</a>
<a href="{% url 'users:register' %}" class="fr mt5">还没账号</a>
<a href="{% url 'users:forgetpwd' %}" class="fr mt5">忘记密码</a>
<div id="cl"></div>
</h2>
<div class="new_login_form">

View File

@ -0,0 +1,282 @@
<!DOCTYPE html>
{% load static %}
{% load crispy_forms_tags %}
<html>
<head>
<title>{% block title %}CodePedia{% endblock %}</title>
<link rel="stylesheet" type="text/css" href="{% static 'vendor/bootstrap/css/bootstrap.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'css/base.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'vendor/site/css/reset.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'vendor/site/css/animate.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'vendor/site/css/style.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'vendor/site/js/plugins/queryCity/css/cityLayout.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'vendor/site/css/lq.datetimepick.css' %}"/>
<script src="{% static 'vendor/site/js/jquery.min.js' %}" type="text/javascript"></script>
<script src="{% static 'vendor/site/js/jquery-migrate-1.2.1.min.js' %}" type="text/javascript"></script>
</head>
{% include 'shared/navbar.html' %}
<body>
<!--crumbs start-->
{% block custom_bread %}
<section>
<div class="wp">
<ul class="crumbs">
<li><a href="{% url 'index' %}">首页</a>></li>
<li><a href="{% url 'users:userinfo' %}">个人中心</a>></li>
<li>个人信息</li>
</ul>
</div>
</section>
{% endblock %}
<section>
<div class="wp list personal_list">
<div class="left">
<ul>
<li class="active2"><a href="">个人资料</a></li>
<li ><a href="">我的课程</a></li>
<li ><a href="">我的收藏</a></li>
<li >
<a href="" style="position: relative;">
我的消息
</a>
</li>
</ul>
</div>
{% block right_content %}
{% endblock %}
</div>
</section>
<!--sidebar start-->
<section>
<ul class="sidebar">
<li class="qq">
<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=2023525077&site=qq&menu=yes"></a>
</li>
<li class="totop"></li>
</ul>
</section>
<!--sidebar end-->
<!--header start-->
<div class="dialog" id="jsDialog">
<div class="successbox dialogbox" id="jsSuccessTips">
<h1>成功提交</h1>
<div class="close jsCloseDialog"><img src="{% static 'vendor/site/images/dig_close.png' %}"/></div>
<div class="cont">
<h2>您的需求提交成功!</h2>
<p></p>
</div>
</div>
<!--提示弹出框-->
<div class="bidtips dialogbox promptbox" id="jsComfirmDialig">
<h1>确认提交</h1>
<div class="close jsCloseDialog"><img src="{% static 'vendor/site/images/dig_close.png' %}"/></div>
<div class="cont">
<h2>您确认提交吗?</h2>
<dd class="autoTxtCount">
<div class="button">
<input type="button" class="fl half-btn" value="确定" id="jsComfirmBtn"/>
<span class="fr half-btn jsCloseDialog">取消</span>
</div>
</dd>
</div>
</div>
<div class="resetpwdbox dialogbox" id="jsResetDialog">
<h1>修改密码</h1>
<div class="close jsCloseDialog"><img src="{% static 'vendor/site/images/dig_close.png' %}"/></div>
<div class="cont">
<form id="jsResetPwdForm" autocomplete="off">
<div class="box">
<span class="word2" >&nbsp;&nbsp;&nbsp;&nbsp;</span>
<input type="password" id="pwd" name="password1" placeholder="6-20位非中文字符"/>
</div>
<div class="box">
<span class="word2" >确定密码</span>
<input type="password" id="repwd" name="password2" placeholder="6-20位非中文字符"/>
</div>
<div class="error btns" id="jsResetPwdTips"></div>
<div class="button">
<input id="jsResetPwdBtn" type="button" value="提交" />
</div>
{% csrf_token %}
</form>
</div>
</div>
<div class="dialogbox changeemai1 changephone" id="jsChangeEmailDialog">
<h1>修改邮箱</h1>
<div class="close jsCloseDialog"><img src="{% static 'vendor/site/images/dig_close.png' %}"/></div>
<p>请输入新的邮箱地址</p>
<form id="jsChangeEmailForm" autocomplete="off">
<div class="box">
<input class="fl change_email" name="email" id="jsChangeEmail" type="text" placeholder="输入重新绑定的邮箱地址">
</div>
<div class="box">
<input class="fl email_code" type="text" id="jsChangeEmailCode" name="code" placeholder="输入邮箱验证码">
<input class="getcode getting" type="button" id="jsChangeEmailCodeBtn" value="获取验证码">
</div>
<div class="error btns change_email_tips" id="jsChangeEmailTips" >请输入...</div>
<div class="button">
<input class="changeemai_btn" id="jsChangeEmailBtn" type="button" value="完成"/>
</div>
{% csrf_token %}
</form>
</div>
<div class="noactivebox dialogbox" id="jsUnactiveForm" >
<h1>邮件验证提示</h1>
<div class="close jsCloseDialog"><img src="{% static 'vendor/site/images/dig_close.png' %}"/></div>
<div class="center">
<img src="../images/send.png"/>
<p>我们已经向您的邮箱<span class="green" id="jsEmailToActive">12@13.com</span>发送了邮件,<br/>为保证您的账号安全,请及时验证邮箱</p>
<p class="a"><a class="btn" id="jsGoToEmail" target="_blank" href="http://mail.qq.com">去邮箱验证</a></p>
<p class="zy_success upmove"></p>
<p style="display: none;" class="sendE2">没收到,您可以查看您的垃圾邮件和被过滤邮件,也可以再次发送验证邮件(<span class="c5c">60s</span></p>
<p class="sendE">没收到,您可以查看您的垃圾邮件和被过滤邮件,<br/>也可以<span class="c5c green" id="jsSenEmailAgin" style="cursor: pointer;">再次发送验证邮件</span></p>
</div>
</div>
<div class="resetpassbox dialogbox" id="jsSetNewPwd">
<h1>重新设置密码</h1>
<div class="close jsCloseDialog"><img src="{% static 'vendor/site/images/dig_close.png' %}"/></div>
<p class="green">请输入新密码</p>
<form id="jsSetNewPwdForm">
<div class="box">
<span class="word2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
<input type="password" name="password" id="jsResetPwd" placeholder="请输入新密码"/>
</div>
<div class="box">
<span class="word2">&nbsp;&nbsp;&nbsp;</span>
<input type="password" name="password2" id="jsResetPwd2" placeholder="请再次输入新密码"/>
</div>
<div class="box">
<span class="word2">&nbsp;&nbsp;&nbsp;&nbsp;</span>
<input type="text" name="code" id="jsResetCode" placeholder="请输入手机验证码"/>
</div>
<div class="error btns" id="jsSetNewPwdTips"></div>
<div class="button">
<input type="hidden" name="mobile" id="jsInpResetMobil" />
<input id="jsSetNewPwdBtn" type="button" value="提交" />
</div>
<input type='hidden' name='csrfmiddlewaretoken' value='DaP7IUKm9FA9nELA9YUlYYWpyIDdCiIP' />
</form>
</div>
<div class="forgetbox dialogbox">
<h1>忘记密码</h1>
<div class="close jsCloseDialog"><img src="{% static 'vendor/site/images/dig_close.png' %}"/></div>
<div class="cont">
<form id="jsFindPwdForm" autocomplete="off">
<input type='hidden' name='csrfmiddlewaretoken' value='DaP7IUKm9FA9nELA9YUlYYWpyIDdCiIP' />
<div class="box">
<span class="word2" >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
<input type="text" id="account" name="account" placeholder="手机/邮箱"/>
</div>
<div class="box">
<span class="word3">验证码</span>
<input autocomplete="off" class="form-control-captcha find-password-captcha" id="find-password-captcha_1" name="captcha_f_1" placeholder="请输入验证码" type="text" /> <input class="form-control-captcha find-password-captcha" id="find-password-captcha_0" name="captcha_f_0" placeholder="请输入验证码" type="hidden" value="5f3c00e47fb1be12d2fd15b9a860711597721b3f" /> &nbsp;<img src="/captcha/image/5f3c00e47fb1be12d2fd15b9a860711597721b3f/" alt="captcha" class="captcha" />
</div>
<div class="error btns" id="jsForgetTips"></div><!--忘记密码错误-->
<div class="button">
<input type="hidden" name="sms_type" value="1">
<input id="jsFindPwdBtn" type="button" value="提交" />
</div>
</form>
</div>
</div>
</div>
<div class="bg" id="dialogBg"></div>
<script src="{% static 'vendor/site/js/selectUi.js' %}" type='text/javascript'></script>
<script type="text/javascript" src="{% static 'vendor/site/js/plugins/laydate/laydate.js' %}"></script>
<script src="{% static 'vendor/site/js/plugins/layer/layer.js' %}"></script>
<script src="{% static 'vendor/site/js/plugins/queryCity/js/public.js' %}" type="text/javascript"></script>
<script src="{% static 'vendor/site/js/unslider.js' %}" type="text/javascript"></script>
<script src="{% static 'vendor/site/js/plugins/jquery.scrollLoading.js' %}" type="text/javascript"></script>
<script src="{% static 'vendor/site/js/validateDialog.js' %}" type="text/javascript"></script>
<script src="{% static 'vendor/site/js/deco-common.js' %}" type="text/javascript"></script>
<script src='{% static 'vendor/site/js/plugins/jquery.upload.js' %}' type='text/javascript'></script>
<script src="{% static 'vendor/site/js/validate.js' %}" type="text/javascript"></script>
<script src="{% static 'vendor/site/js/deco-user.js' %}"></script>
{% block custom_js %}
{% endblock %}
<script>
var shareUrl = '',
shareText = '',
shareDesc = '',
shareComment = '';
$(function () {
$(".bdsharebuttonbox a").mouseover(function () {
var type = $(this).attr('data-cmd'),
$parent = $(this).parent('.bdsharebuttonbox'),
fxurl = $parent.attr('data-url'),
fxtext = $parent.attr('data-text'),
fxdesc = $parent.attr('data-desc'),
fxcomment = $parent.attr('data-comment');
switch (type){
case 'tsina':
case 'tqq':
case 'renren':
shareUrl = fxurl;
shareText = fxdesc;
shareDesc = '';
shareComment = '';
break;
default :
shareUrl = fxurl;
shareText = fxtext;
shareDesc = fxdesc;
shareComment = fxcomment;
break;
}
});
});
function SetShareUrl(cmd, config) {
if (shareUrl) {
config.bdUrl = "" + shareUrl;
}
if(shareText){
config.bdText = shareText;
}
if(shareDesc){
config.bdDesc = shareDesc;
}
if(shareComment){
config.bdComment = shareComment;
}
return config;
}
window._bd_share_config = {
"common": {
"onBeforeClick":SetShareUrl,
"bdPic":"",
"bdMini":"2",
"searchPic":"1",
"bdMiniList":false
},
"share": {
"bdSize":"16"
}
};
</script>
</body>
{% include 'shared/footer.html' %}
</html>