'english' is not a registered namespace
Request Method: | GET |
---|---|
Request URL: | http://www.waibo.wang/u/buy/3DA5 |
Django Version: | 3.2.13 |
Exception Type: | NoReverseMatch |
Exception Value: | 'english' is not a registered namespace |
Exception Location: | c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\django\urls\base.py, line 82, in reverse |
Python Executable: | c:\users\administrator\appdata\local\programs\python\python36\python.exe |
Python Version: | 3.6.4 |
Python Path: | ['.', 'c:\\users\\administrator\\appdata\\local\\programs\\python\\python36\\python36.zip', 'c:\\users\\administrator\\appdata\\local\\programs\\python\\python36\\DLLs', 'c:\\users\\administrator\\appdata\\local\\programs\\python\\python36\\lib', 'c:\\users\\administrator\\appdata\\local\\programs\\python\\python36', 'c:\\users\\administrator\\appdata\\local\\programs\\python\\python36\\lib\\site-packages', 'D:\\sites\\waibo'] |
Server time: | Fri, 29 Mar 2024 23:48:27 +0800 |
In template D:\sites\waibo\templates\base.html
, error at line 7
1 | {% load filters %} |
---|---|
2 | <!DOCTYPE html> |
3 | <html lang="zh-CN"> |
4 | <head> |
5 | <meta charset="utf-8"> |
6 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
7 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
8 | <title>{% block title %}{% endblock %}-外博网</title> |
9 | <meta name="keywords" content="{% block keyword %}{% endblock %}"> |
10 | <meta name="description" content="{% block description %}{% endblock %}"> |
11 | <meta name="referrer" content="strict-origin-when-cross-origin"> |
12 | <meta name="msvalidate.01" content="4B8C783706E93431D679A59FA1E571C0" /> |
13 | <link rel="icon" href="{% static 'img/logo/favicon.ico'%}" mce_href="{% static 'img/favicon.ico'%}" type="image/x-icon"> |
14 | <link rel="shortcut icon" href="{% static 'img/logo/favicon.ico'%}" mce_href="{% static 'img/favicon.ico'%}" type="image/x-icon"> |
15 | <link rel="icon" href="{% static 'img/logo/favicon.ico'%}" type="image/x-icon" > |
16 | <link href="{% static 'bootstrap-3.3.7/css/bootstrap.css'%}" rel="stylesheet"> |
17 | <link href="{% static 'lightyear/css/materialdesignicons.min.css'%}" rel="stylesheet"> |
c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\django\urls\base.py
, line 71, in reverse
except KeyError:
pass
if ns != current_ns:
current_path = None
try:
extra, resolver = resolver.namespace_dict[ns]…
resolved_path.append(ns)
ns_pattern = ns_pattern + extra
ns_converters.update(resolver.pattern.converters)
except KeyError as key:
if resolved_path:
raise NoReverseMatch(
Variable | Value |
---|---|
args | [] |
current_app | 'user' |
current_ns | 'user' |
current_path | None |
kwargs | {} |
ns | 'english' |
ns_converters | {} |
ns_pattern | '' |
path | ['english'] |
prefix | '/' |
resolved_path | [] |
resolver | <URLResolver 'waibo.urls' (None:None) '^/'> |
urlconf | 'waibo.urls' |
view | 'index' |
viewname | 'english:index' |
c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\django\core\handlers\exception.py
, line 47, in inner
response = await sync_to_async(response_for_exception, thread_sensitive=False)(request, exc)
return response
return inner
else:
@wraps(get_response)
def inner(request):
try:
response = get_response(request)…
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | NoReverseMatch("'english' is not a registered namespace",) |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x0000000001CEDD30>> |
request | <WSGIRequest: GET '/u/buy/3DA5'> |
c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\django\core\handlers\base.py
, line 181, in _get_response
if response is None:
wrapped_callback = self.make_view_atomic(callback)
# If it is an asynchronous view, run it in a subthread.
if asyncio.iscoroutinefunction(wrapped_callback):
wrapped_callback = async_to_sync(wrapped_callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)…
except Exception as e:
response = self.process_exception_by_middleware(e, request)
if response is None:
raise
# Complain if the view returned None (a common error).
Variable | Value |
---|---|
callback | <function orderAdd at 0x0000000004608730> |
callback_args | () |
callback_kwargs | {'catagory': '3DA5'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x0000000002C96BE0>> |
request | <WSGIRequest: GET '/u/buy/3DA5'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x0000000001CEDD30> |
wrapped_callback | <function orderAdd at 0x0000000004608730> |
.\user\views.py
, line 341, in orderAdd
paginator = Paginator(list[0], 20)
pag_num = paginator.num_pages
curuent_page_num = 1
current_page = paginator.page(1)
return render(request, 'user/orderAddK.html', locals())
else:
list = ReciteText.objects.filter(catagory__exact=catagory)
return render(request, 'user/orderAdd.html', locals())…
@login_required(login_url='user:login')
def orderAddLogin(request, catagory, navIndex=3):
item = Recite.objects.filter(catagory__exact=catagory).first()
if not item: return redirect('user:userCourses')
Variable | Value |
---|---|
catagory | '3DA5' |
details | {'catagory': '3DA5', 'description': '牛津译林版模块五 背单词课程', 'discount': '买一送一', 'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'name': '模块五', 'version': 'DA', 'version_display': '牛津译林版'} |
info | (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,') |
item | <Recite: 3DA5> |
list | <QuerySet [<ReciteText: ReciteText object (1026)>, <ReciteText: ReciteText object (1027)>, <ReciteText: ReciteText object (1028)>]> |
navIndex | 3 |
next | '/u/buy/3DA5' |
request | <WSGIRequest: GET '/u/buy/3DA5'> |
res | {'details': {'catagory': '3DA5', 'description': '牛津译林版模块五 背单词课程', 'discount': '买一送一', 'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'name': '模块五', 'version': 'DA', 'version_display': '牛津译林版'}} |
studying | '' |
username | '' |
c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\django\shortcuts.py
, line 19, in render
def render(request, template_name, context=None, content_type=None, status=None, using=None):
"""
Return a HttpResponse whose content is filled with the result of calling
django.template.loader.render_to_string() with the passed arguments.
"""
content = loader.render_to_string(template_name, context, request, using=using)…
return HttpResponse(content, content_type, status)
def redirect(to, *args, permanent=False, **kwargs):
"""
Return an HttpResponseRedirect to the appropriate URL for the arguments
Variable | Value |
---|---|
content_type | None |
context | {'catagory': '3DA5', 'details': {'catagory': '3DA5', 'description': '牛津译林版模块五 背单词课程', 'discount': '买一送一', 'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'name': '模块五', 'version': 'DA', 'version_display': '牛津译林版'}, 'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'item': <Recite: 3DA5>, 'list': <QuerySet [<ReciteText: ReciteText object (1026)>, <ReciteText: ReciteText object (1027)>, <ReciteText: ReciteText object (1028)>]>, 'navIndex': 3, 'next': '/u/buy/3DA5', 'request': <WSGIRequest: GET '/u/buy/3DA5'>, 'res': {'details': {'catagory': '3DA5', 'description': '牛津译林版模块五 背单词课程', 'discount': '买一送一', 'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'name': '模块五', 'version': 'DA', 'version_display': '牛津译林版'}}, 'studying': '', 'username': ''} |
request | <WSGIRequest: GET '/u/buy/3DA5'> |
status | None |
template_name | 'user/orderAdd.html' |
using | None |
c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\django\template\loader.py
, line 62, in render_to_string
template_name may be a string or a list of strings.
"""
if isinstance(template_name, (list, tuple)):
template = select_template(template_name, using=using)
else:
template = get_template(template_name, using=using)
return template.render(context, request)…
def _engine_list(using=None):
return engines.all() if using is None else [engines[using]]
Variable | Value |
---|---|
context | {'catagory': '3DA5', 'details': {'catagory': '3DA5', 'description': '牛津译林版模块五 背单词课程', 'discount': '买一送一', 'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'name': '模块五', 'version': 'DA', 'version_display': '牛津译林版'}, 'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'item': <Recite: 3DA5>, 'list': <QuerySet [<ReciteText: ReciteText object (1026)>, <ReciteText: ReciteText object (1027)>, <ReciteText: ReciteText object (1028)>]>, 'navIndex': 3, 'next': '/u/buy/3DA5', 'request': <WSGIRequest: GET '/u/buy/3DA5'>, 'res': {'details': {'catagory': '3DA5', 'description': '牛津译林版模块五 背单词课程', 'discount': '买一送一', 'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'name': '模块五', 'version': 'DA', 'version_display': '牛津译林版'}}, 'studying': '', 'username': ''} |
request | <WSGIRequest: GET '/u/buy/3DA5'> |
template | <django.template.backends.django.Template object at 0x0000000004781DA0> |
template_name | 'user/orderAdd.html' |
using | None |
c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\django\template\backends\django.py
, line 61, in render
@property
def origin(self):
return self.template.origin
def render(self, context=None, request=None):
context = make_context(context, request, autoescape=self.backend.engine.autoescape)
try:
return self.template.render(context)…
except TemplateDoesNotExist as exc:
reraise(exc, self.backend)
def copy_exception(exc, backend=None):
"""
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'list': <QuerySet [<ReciteText: ReciteText object (1026)>, <ReciteText: ReciteText object (1027)>, <ReciteText: ReciteText object (1028)>]>, 'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'item': <Recite: 3DA5>, 'username': '', 'next': '/u/buy/3DA5', 'studying': '', 'details': {'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'catagory': '3DA5', 'name': '模块五', 'version': 'DA', 'version_display': '牛津译林版', 'description': '牛津译林版模块五 背单词课程', 'discount': '买一送一'}, 'res': {'details': {'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'catagory': '3DA5', 'name': '模块五', 'version': 'DA', 'version_display': '牛津译林版', 'description': '牛津译林版模块五 背单词课程', 'discount': '买一送一'}}, 'navIndex': 3, 'catagory': '3DA5', 'request': <WSGIRequest: GET '/u/buy/3DA5'>}] |
request | <WSGIRequest: GET '/u/buy/3DA5'> |
self | <django.template.backends.django.Template object at 0x0000000004781DA0> |
c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\django\template\base.py
, line 170, in render
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
context.template_name = self.name
return self._render(context)…
else:
return self._render(context)
def compile_nodelist(self):
"""
Parse and compile the template source into a nodelist. If debug
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'list': <QuerySet [<ReciteText: ReciteText object (1026)>, <ReciteText: ReciteText object (1027)>, <ReciteText: ReciteText object (1028)>]>, 'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'item': <Recite: 3DA5>, 'username': '', 'next': '/u/buy/3DA5', 'studying': '', 'details': {'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'catagory': '3DA5', 'name': '模块五', 'version': 'DA', 'version_display': '牛津译林版', 'description': '牛津译林版模块五 背单词课程', 'discount': '买一送一'}, 'res': {'details': {'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'catagory': '3DA5', 'name': '模块五', 'version': 'DA', 'version_display': '牛津译林版', 'description': '牛津译林版模块五 背单词课程', 'discount': '买一送一'}}, 'navIndex': 3, 'catagory': '3DA5', 'request': <WSGIRequest: GET '/u/buy/3DA5'>}] |
self | <django.template.base.Template object at 0x00000000047A5CC0> |
c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\django\template\base.py
, line 162, in _render
self.nodelist = self.compile_nodelist()
def __iter__(self):
for node in self.nodelist:
yield from node
def _render(self, context):
return self.nodelist.render(context)…
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'list': <QuerySet [<ReciteText: ReciteText object (1026)>, <ReciteText: ReciteText object (1027)>, <ReciteText: ReciteText object (1028)>]>, 'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'item': <Recite: 3DA5>, 'username': '', 'next': '/u/buy/3DA5', 'studying': '', 'details': {'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'catagory': '3DA5', 'name': '模块五', 'version': 'DA', 'version_display': '牛津译林版', 'description': '牛津译林版模块五 背单词课程', 'discount': '买一送一'}, 'res': {'details': {'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'catagory': '3DA5', 'name': '模块五', 'version': 'DA', 'version_display': '牛津译林版', 'description': '牛津译林版模块五 背单词课程', 'discount': '买一送一'}}, 'navIndex': 3, 'catagory': '3DA5', 'request': <WSGIRequest: GET '/u/buy/3DA5'>}] |
self | <django.template.base.Template object at 0x00000000047A5CC0> |
c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\django\template\base.py
, line 938, in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bits | [] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'list': <QuerySet [<ReciteText: ReciteText object (1026)>, <ReciteText: ReciteText object (1027)>, <ReciteText: ReciteText object (1028)>]>, 'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'item': <Recite: 3DA5>, 'username': '', 'next': '/u/buy/3DA5', 'studying': '', 'details': {'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'catagory': '3DA5', 'name': '模块五', 'version': 'DA', 'version_display': '牛津译林版', 'description': '牛津译林版模块五 背单词课程', 'discount': '买一送一'}, 'res': {'details': {'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'catagory': '3DA5', 'name': '模块五', 'version': 'DA', 'version_display': '牛津译林版', 'description': '牛津译林版模块五 背单词课程', 'discount': '买一送一'}}, 'navIndex': 3, 'catagory': '3DA5', 'request': <WSGIRequest: GET '/u/buy/3DA5'>}] |
node | <ExtendsNode: extends 'base.html'> |
self | [<ExtendsNode: extends 'base.html'>] |
c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\django\template\base.py
, line 905, in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'list': <QuerySet [<ReciteText: ReciteText object (1026)>, <ReciteText: ReciteText object (1027)>, <ReciteText: ReciteText object (1028)>]>, 'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'item': <Recite: 3DA5>, 'username': '', 'next': '/u/buy/3DA5', 'studying': '', 'details': {'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'catagory': '3DA5', 'name': '模块五', 'version': 'DA', 'version_display': '牛津译林版', 'description': '牛津译林版模块五 背单词课程', 'discount': '买一送一'}, 'res': {'details': {'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'catagory': '3DA5', 'name': '模块五', 'version': 'DA', 'version_display': '牛津译林版', 'description': '牛津译林版模块五 背单词课程', 'discount': '买一送一'}}, 'navIndex': 3, 'catagory': '3DA5', 'request': <WSGIRequest: GET '/u/buy/3DA5'>}] |
self | <ExtendsNode: extends 'base.html'> |
c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\django\template\loader_tags.py
, line 150, in render
compiled_parent.nodelist.get_nodes_by_type(BlockNode)}
block_context.add_blocks(blocks)
break
# Call Template._render explicitly so the parser context stays
# the same.
with context.render_context.push_state(compiled_parent, isolated_context=False):
return compiled_parent._render(context)…
class IncludeNode(Node):
context_key = '__include_context'
def __init__(self, template, *args, extra_context=None, isolated_context=False, **kwargs):
Variable | Value |
---|---|
block_context | <django.template.loader_tags.BlockContext object at 0x00000000047C21D0> |
blocks | {'action': <Block Node: action. Contents: []>, 'body': <Block Node: body. Contents: []>, 'description': <Block Node: description. Contents: []>, 'keyword': <Block Node: keyword. Contents: []>, 'row': <Block Node: row. Contents: []>, 'script': <Block Node: script. Contents: []>, 'scriptready': <Block Node: scriptready. Contents: []>, 'scripttags': <Block Node: scripttags. Contents: []>, 'title': <Block Node: title. Contents: []>} |
compiled_parent | <django.template.base.Template object at 0x00000000047BC4E0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'list': <QuerySet [<ReciteText: ReciteText object (1026)>, <ReciteText: ReciteText object (1027)>, <ReciteText: ReciteText object (1028)>]>, 'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'item': <Recite: 3DA5>, 'username': '', 'next': '/u/buy/3DA5', 'studying': '', 'details': {'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'catagory': '3DA5', 'name': '模块五', 'version': 'DA', 'version_display': '牛津译林版', 'description': '牛津译林版模块五 背单词课程', 'discount': '买一送一'}, 'res': {'details': {'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'catagory': '3DA5', 'name': '模块五', 'version': 'DA', 'version_display': '牛津译林版', 'description': '牛津译林版模块五 背单词课程', 'discount': '买一送一'}}, 'navIndex': 3, 'catagory': '3DA5', 'request': <WSGIRequest: GET '/u/buy/3DA5'>}] |
node | <django.template.defaulttags.LoadNode object at 0x00000000047C67F0> |
self | <ExtendsNode: extends 'base.html'> |
c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\django\template\base.py
, line 162, in _render
self.nodelist = self.compile_nodelist()
def __iter__(self):
for node in self.nodelist:
yield from node
def _render(self, context):
return self.nodelist.render(context)…
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'list': <QuerySet [<ReciteText: ReciteText object (1026)>, <ReciteText: ReciteText object (1027)>, <ReciteText: ReciteText object (1028)>]>, 'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'item': <Recite: 3DA5>, 'username': '', 'next': '/u/buy/3DA5', 'studying': '', 'details': {'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'catagory': '3DA5', 'name': '模块五', 'version': 'DA', 'version_display': '牛津译林版', 'description': '牛津译林版模块五 背单词课程', 'discount': '买一送一'}, 'res': {'details': {'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'catagory': '3DA5', 'name': '模块五', 'version': 'DA', 'version_display': '牛津译林版', 'description': '牛津译林版模块五 背单词课程', 'discount': '买一送一'}}, 'navIndex': 3, 'catagory': '3DA5', 'request': <WSGIRequest: GET '/u/buy/3DA5'>}] |
self | <django.template.base.Template object at 0x00000000047BC4E0> |
c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\django\template\base.py
, line 938, in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | ('">\n' ' <h1><strong>外博词典</strong>,懂英语单词快速记忆法的在线英语词典</h1>\n' ' </div>\n' ' <form method="post" id="searchform" action="') |
bits | ['', '\n' '<!DOCTYPE html>\n' '<html lang="zh-CN">\n' ' <head>\n' ' <meta charset="utf-8">\n' ' <meta http-equiv="X-UA-Compatible" content="IE=edge">\n' ' <meta name="viewport" content="width=device-width, initial-scale=1">\n' ' <title>', '牛津译林版模块五英语单词速记_在线背单词', '-外博网</title>\n <meta name="keywords" content="', '', '">\n <meta name="description" content="', '', '">\n' ' <meta name="referrer" content="strict-origin-when-cross-origin"> \n' ' <meta name="msvalidate.01" content="4B8C783706E93431D679A59FA1E571C0" ' '/>\n' ' <link rel="icon" href="', '/static/img/logo/favicon.ico', '" mce_href="', '/static/img/favicon.ico', '" type="image/x-icon">\n <link rel="shortcut icon" href="', '/static/img/logo/favicon.ico', '" mce_href="', '/static/img/favicon.ico', '" type="image/x-icon">\n <link rel="icon" href="', '/static/img/logo/favicon.ico', '" type="image/x-icon" >\n <link href="', '/static/bootstrap-3.3.7/css/bootstrap.css', '" rel="stylesheet">\n <link href="', '/static/lightyear/css/materialdesignicons.min.css', '" rel="stylesheet">\n <link href="', '/static/lightyear/css/style.min.css', '" rel="stylesheet">\n <link href="', '/static/css/style-waibo.css', '" rel="stylesheet">\n <link href="', '/static/jsTree/style.css', '" rel="stylesheet">\n <link href="', '/static/jsMind/style/jsmind.css', '" rel="stylesheet">\n <link href="', '/static/awesome-4.7.0/css/font-awesome.min.css', '" rel="stylesheet">\n </head>\n <body ', '', '>\n' ' <nav class="navbar navbar-default topnav">\n' ' <div class="container">\n' ' <div class="navbar-header">\n' ' <span class="navbar-brand"><img src="', '/static/img/logo/logo.png', '"></span>\n <ul class="nav navbar-nav">\n </ul>\n ', '', '\n <ul class="nav navbar-nav navbar-right">\n ', '\n' ' <li><a href="/u/login/">登录</a></li>\n' ' <li class="reg"><a href="/u/register/">注册</a></li>\n' ' ', '\n' ' </ul>\n' ' </div>\n' ' </div>\n' ' </nav>\n' ' <div class="container">\n' ' <div class="row">\n' ' <div class="logo-center">\n' ' <img src="', '/static/img/logo/waibocidian.png', '">\n' ' <h1><strong>外博词典</strong>,懂英语单词快速记忆法的在线英语词典</h1>\n' ' </div>\n' ' <form method="post" id="searchform" action="'] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'list': <QuerySet [<ReciteText: ReciteText object (1026)>, <ReciteText: ReciteText object (1027)>, <ReciteText: ReciteText object (1028)>]>, 'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'item': <Recite: 3DA5>, 'username': '', 'next': '/u/buy/3DA5', 'studying': '', 'details': {'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'catagory': '3DA5', 'name': '模块五', 'version': 'DA', 'version_display': '牛津译林版', 'description': '牛津译林版模块五 背单词课程', 'discount': '买一送一'}, 'res': {'details': {'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'catagory': '3DA5', 'name': '模块五', 'version': 'DA', 'version_display': '牛津译林版', 'description': '牛津译林版模块五 背单词课程', 'discount': '买一送一'}}, 'navIndex': 3, 'catagory': '3DA5', 'request': <WSGIRequest: GET '/u/buy/3DA5'>}] |
node | <Block Node: action. Contents: []> |
self | [<django.template.defaulttags.LoadNode object at 0x00000000047C67F0>, <TextNode: '\n<!DOCTYPE html>\n<html la'>, <Block Node: title. Contents: []>, <TextNode: '-外博网</title>\n <meta na'>, <Block Node: keyword. Contents: []>, <TextNode: '">\n <meta name="descri'>, <Block Node: description. Contents: []>, <TextNode: '">\n <meta name="referr'>, <django.templatetags.static.StaticNode object at 0x00000000047C6A20>, <TextNode: '" mce_href="'>, <django.templatetags.static.StaticNode object at 0x00000000047C6A90>, <TextNode: '" type="image/x-icon">\n '>, <django.templatetags.static.StaticNode object at 0x00000000047C6B38>, <TextNode: '" mce_href="'>, <django.templatetags.static.StaticNode object at 0x00000000047C6BE0>, <TextNode: '" type="image/x-icon">\n '>, <django.templatetags.static.StaticNode object at 0x00000000047C6C88>, <TextNode: '" type="image/x-icon" >\n '>, <django.templatetags.static.StaticNode object at 0x00000000047C6D30>, <TextNode: '" rel="stylesheet">\n <'>, <django.templatetags.static.StaticNode object at 0x00000000047C6DD8>, <TextNode: '" rel="stylesheet">\n <'>, <django.templatetags.static.StaticNode object at 0x00000000047C6E80>, <TextNode: '" rel="stylesheet">\n <'>, <django.templatetags.static.StaticNode object at 0x00000000047C6F28>, <TextNode: '" rel="stylesheet">\n <'>, <django.templatetags.static.StaticNode object at 0x00000000047CA048>, <TextNode: '" rel="stylesheet">\n <'>, <django.templatetags.static.StaticNode object at 0x00000000047CA0B8>, <TextNode: '" rel="stylesheet">\n <'>, <django.templatetags.static.StaticNode object at 0x00000000047CA160>, <TextNode: '" rel="stylesheet">\n </h'>, <IfNode>, <TextNode: '>\n <nav class="navbar na'>, <django.templatetags.static.StaticNode object at 0x00000000047CA470>, <TextNode: '"></span>\n <ul cla'>, <IfNode>, <TextNode: '\n <ul class="nav n'>, <IfNode>, <TextNode: '\n </ul>\n </div>'>, <django.templatetags.static.StaticNode object at 0x00000000047CF6A0>, <TextNode: '">\n <h1><strong>外博词典</'>, <Block Node: action. Contents: []>, <TextNode: '">\n '>, <django.template.defaulttags.CsrfTokenNode object at 0x00000000047CF6D8>, <TextNode: '\n <div class="form'>, <Variable Node: keyword>, <TextNode: '" class="form-control" pl'>, <Variable Node: placeholder|default:'请输入要查找的单词'>, <TextNode: '" onfocus="this.select()"'>, <Block Node: row. Contents: []>, <TextNode: '\n </div>\n </div>\n\n <di'>, <Block Node: body. Contents: []>, <TextNode: '\n </div>\n </div>\n\n <fo'>, <django.templatetags.static.StaticNode object at 0x00000000047CFB70>, <TextNode: '" /><p class="slogan">手机访'>, <django.templatetags.static.StaticNode object at 0x00000000047CFBE0>, <TextNode: '" /><p class="slogan">小程序'>, <django.templatetags.static.StaticNode object at 0x00000000047CFC88>, <TextNode: '" /><p class="slogan">联系客'>, <IfNode>, <TextNode: '\n </footer>\n <div class'>, <django.templatetags.static.StaticNode object at 0x00000000047D72E8>, <TextNode: '" /><p class="slogan">扫码访'>, <django.templatetags.static.StaticNode object at 0x00000000047D7358>, <TextNode: '" /><p class="slogan">手机访'>, <django.templatetags.static.StaticNode object at 0x00000000047D7400>, <TextNode: '"><p class="slogan">客服微信<'>, <django.templatetags.static.StaticNode object at 0x00000000047D74A8>, <TextNode: '"></script>\n <script src'>, <django.templatetags.static.StaticNode object at 0x00000000047D7550>, <TextNode: '"></script>\n <script src'>, <django.templatetags.static.StaticNode object at 0x00000000047D75F8>, <TextNode: '"></script>\n\n '>, <Block Node: scripttags. Contents: []>, <TextNode: '\n <script>'>, <Block Node: script. Contents: []>, <TextNode: '</script>\n\n <script>\n $'>, <Block Node: scriptready. Contents: []>, <TextNode: '\n });\n </script>\n </bo'>] |
c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\django\template\base.py
, line 905, in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'list': <QuerySet [<ReciteText: ReciteText object (1026)>, <ReciteText: ReciteText object (1027)>, <ReciteText: ReciteText object (1028)>]>, 'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'item': <Recite: 3DA5>, 'username': '', 'next': '/u/buy/3DA5', 'studying': '', 'details': {'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'catagory': '3DA5', 'name': '模块五', 'version': 'DA', 'version_display': '牛津译林版', 'description': '牛津译林版模块五 背单词课程', 'discount': '买一送一'}, 'res': {'details': {'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'catagory': '3DA5', 'name': '模块五', 'version': 'DA', 'version_display': '牛津译林版', 'description': '牛津译林版模块五 背单词课程', 'discount': '买一送一'}}, 'navIndex': 3, 'catagory': '3DA5', 'request': <WSGIRequest: GET '/u/buy/3DA5'>}] |
self | <Block Node: action. Contents: []> |
c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\django\template\loader_tags.py
, line 62, in render
push = block = block_context.pop(self.name)
if block is None:
block = self
# Create new block so we can store context without thread-safety issues.
block = type(self)(block.name, block.nodelist)
block.context = context
context['block'] = block
result = block.nodelist.render(context)…
if push is not None:
block_context.push(self.name, push)
return result
def super(self):
if not hasattr(self, 'context'):
Variable | Value |
---|---|
block | <Block Node: action. Contents: [<django.template.defaulttags.URLNode object at 0x00000000047B5748>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x00000000047C21D0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'list': <QuerySet [<ReciteText: ReciteText object (1026)>, <ReciteText: ReciteText object (1027)>, <ReciteText: ReciteText object (1028)>]>, 'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'item': <Recite: 3DA5>, 'username': '', 'next': '/u/buy/3DA5', 'studying': '', 'details': {'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'catagory': '3DA5', 'name': '模块五', 'version': 'DA', 'version_display': '牛津译林版', 'description': '牛津译林版模块五 背单词课程', 'discount': '买一送一'}, 'res': {'details': {'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'catagory': '3DA5', 'name': '模块五', 'version': 'DA', 'version_display': '牛津译林版', 'description': '牛津译林版模块五 背单词课程', 'discount': '买一送一'}}, 'navIndex': 3, 'catagory': '3DA5', 'request': <WSGIRequest: GET '/u/buy/3DA5'>}] |
push | <Block Node: action. Contents: [<django.template.defaulttags.URLNode object at 0x00000000047B5748>]> |
self | <Block Node: action. Contents: []> |
c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\django\template\base.py
, line 938, in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bits | [] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'list': <QuerySet [<ReciteText: ReciteText object (1026)>, <ReciteText: ReciteText object (1027)>, <ReciteText: ReciteText object (1028)>]>, 'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'item': <Recite: 3DA5>, 'username': '', 'next': '/u/buy/3DA5', 'studying': '', 'details': {'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'catagory': '3DA5', 'name': '模块五', 'version': 'DA', 'version_display': '牛津译林版', 'description': '牛津译林版模块五 背单词课程', 'discount': '买一送一'}, 'res': {'details': {'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'catagory': '3DA5', 'name': '模块五', 'version': 'DA', 'version_display': '牛津译林版', 'description': '牛津译林版模块五 背单词课程', 'discount': '买一送一'}}, 'navIndex': 3, 'catagory': '3DA5', 'request': <WSGIRequest: GET '/u/buy/3DA5'>}] |
node | <django.template.defaulttags.URLNode object at 0x00000000047B5748> |
self | [<django.template.defaulttags.URLNode object at 0x00000000047B5748>] |
c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\django\template\base.py
, line 905, in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'list': <QuerySet [<ReciteText: ReciteText object (1026)>, <ReciteText: ReciteText object (1027)>, <ReciteText: ReciteText object (1028)>]>, 'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'item': <Recite: 3DA5>, 'username': '', 'next': '/u/buy/3DA5', 'studying': '', 'details': {'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'catagory': '3DA5', 'name': '模块五', 'version': 'DA', 'version_display': '牛津译林版', 'description': '牛津译林版模块五 背单词课程', 'discount': '买一送一'}, 'res': {'details': {'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'catagory': '3DA5', 'name': '模块五', 'version': 'DA', 'version_display': '牛津译林版', 'description': '牛津译林版模块五 背单词课程', 'discount': '买一送一'}}, 'navIndex': 3, 'catagory': '3DA5', 'request': <WSGIRequest: GET '/u/buy/3DA5'>}] |
self | <django.template.defaulttags.URLNode object at 0x00000000047B5748> |
c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\django\template\defaulttags.py
, line 449, in render
current_app = context.request.resolver_match.namespace
except AttributeError:
current_app = None
# Try to look up the URL. If it fails, raise NoReverseMatch unless the
# {% url ... as var %} construct is used, in which case return nothing.
url = ''
try:
url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app)…
except NoReverseMatch:
if self.asvar is None:
raise
if self.asvar:
context[self.asvar] = url
Variable | Value |
---|---|
NoReverseMatch | <class 'django.urls.exceptions.NoReverseMatch'> |
args | [] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'list': <QuerySet [<ReciteText: ReciteText object (1026)>, <ReciteText: ReciteText object (1027)>, <ReciteText: ReciteText object (1028)>]>, 'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'item': <Recite: 3DA5>, 'username': '', 'next': '/u/buy/3DA5', 'studying': '', 'details': {'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'catagory': '3DA5', 'name': '模块五', 'version': 'DA', 'version_display': '牛津译林版', 'description': '牛津译林版模块五 背单词课程', 'discount': '买一送一'}, 'res': {'details': {'info': (0, 0, '半年', 186, 0, '周三会员日', False, '每周三会员日,'), 'catagory': '3DA5', 'name': '模块五', 'version': 'DA', 'version_display': '牛津译林版', 'description': '牛津译林版模块五 背单词课程', 'discount': '买一送一'}}, 'navIndex': 3, 'catagory': '3DA5', 'request': <WSGIRequest: GET '/u/buy/3DA5'>}] |
current_app | 'user' |
kwargs | {} |
reverse | <function reverse at 0x00000000023F6620> |
self | <django.template.defaulttags.URLNode object at 0x00000000047B5748> |
url | '' |
view_name | 'english:index' |
c:\users\administrator\appdata\local\programs\python\python36\lib\site-packages\django\urls\base.py
, line 82, in reverse
except KeyError as key:
if resolved_path:
raise NoReverseMatch(
"%s is not a registered namespace inside '%s'" %
(key, ':'.join(resolved_path))
)
else:
raise NoReverseMatch("%s is not a registered namespace" % key)…
if ns_pattern:
resolver = get_ns_resolver(ns_pattern, resolver, tuple(ns_converters.items()))
return resolver._reverse_with_prefix(view, prefix, *args, **kwargs)
Variable | Value |
---|---|
args | [] |
current_app | 'user' |
current_ns | 'user' |
current_path | None |
kwargs | {} |
ns | 'english' |
ns_converters | {} |
ns_pattern | '' |
path | ['english'] |
prefix | '/' |
resolved_path | [] |
resolver | <URLResolver 'waibo.urls' (None:None) '^/'> |
urlconf | 'waibo.urls' |
view | 'index' |
viewname | 'english:index' |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
APPL_MD_PATH | '/LM/W3SVC/3/ROOT' |
APPL_PHYSICAL_PATH | 'D:\\sites\\waibo\\' |
APP_POOL_CONFIG | 'C:\\inetpub\\temp\\apppools\\waibo\\waibo.config' |
APP_POOL_ID | 'waibo' |
AUTH_PASSWORD | '********************' |
AUTH_TYPE | '' |
AUTH_USER | '' |
CERT_COOKIE | '' |
CERT_FLAGS | '' |
CERT_ISSUER | '' |
CERT_SERIALNUMBER | '' |
CERT_SUBJECT | '' |
CONTENT_LENGTH | '0' |
CONTENT_TYPE | '' |
DOCUMENT_ROOT | 'D:\\sites\\waibo' |
GATEWAY_INTERFACE | 'CGI/1.1' |
HTTPS | 'off' |
HTTPS_KEYSIZE | '********************' |
HTTPS_SECRETKEYSIZE | '********************' |
HTTPS_SERVER_ISSUER | '' |
HTTPS_SERVER_SUBJECT | '' |
HTTP_ACCEPT | '*/*' |
HTTP_HOST | 'www.waibo.wang' |
HTTP_USER_AGENT | 'claudebot' |
INSTANCE_ID | '3' |
INSTANCE_META_PATH | '/LM/W3SVC/3' |
INSTANCE_NAME | 'WAIBO' |
LOCAL_ADDR | '172.17.206.110' |
LOGON_USER | '' |
PATH_INFO | '/u/buy/3DA5' |
PATH_TRANSLATED | 'D:\\sites\\waibo\\u\\buy\\3DA5' |
QUERY_STRING | '' |
REMOTE_ADDR | '52.90.121.17' |
REMOTE_HOST | '52.90.121.17' |
REMOTE_PORT | '42528' |
REMOTE_USER | '' |
REQUEST_METHOD | 'GET' |
REQUEST_URI | '/u/buy/3DA5' |
SCRIPT_FILENAME | 'D:\\sites\\waibo\\u\\buy\\3DA5' |
SCRIPT_NAME | '' |
SERVER_NAME | 'www.waibo.wang' |
SERVER_PORT | '80' |
SERVER_PORT_SECURE | '0' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SOFTWARE | 'Microsoft-IIS/7.5' |
URL | '/u/buy/3DA5' |
wsgi.errors | <_io.StringIO object at 0x00000000046F3288> |
wsgi.input | <_io.BytesIO object at 0x00000000046E59E8> |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.path_info | b'/u/buy/3DA5' |
wsgi.query_string | b'' |
wsgi.run_once | False |
wsgi.script_name | b'' |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
waibo.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['www.waibo.wang', 'waibo.wang', '127.0.0.1', 'localhost'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'user.User' |
BASE_DIR | WindowsPath('D:/sites/waibo') |
BASE_SIR | 'D:/sites/assets/' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CAPTCHA_BACKGROUND_COLOR | '#fff' |
CAPTCHA_CHALLENGE_FUNCT | 'captcha.helpers.math_challenge' |
CAPTCHA_IMAGE_SIZE | (120, 38) |
CAPTCHA_LENGTH | 4 |
CAPTCHA_NOISE_FUNCTIONS | ('captcha.helpers.noise_null', 'captcha.helpers.noise_dots') |
CAPTCHA_OUTPUT_FORMAT | '%(text_field)s %(hidden_field)s %(image)s' |
CAPTCHA_TIMEOUT | 1 |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SAMESITE | 'Lax' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': '', 'NAME': 'waibo@20240306$&data', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '5432', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'postgres'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATETIME_FORMAT | 'N j, Y, P' |
DATETIME_INPUT_FORMATS | ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M'] |
DATE_FORMAT | 'N j, Y' |
DATE_INPUT_FORMATS | ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_AUTO_FIELD | 'django.db.models.BigAutoField' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_EXCEPTION_REPORTER | 'django.views.debug.ExceptionReporter' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
DEFAULT_HASHING_ALGORITHM | 'sha256' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'localhost' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | '' |
EMAIL_PORT | 25 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | False |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | 420 |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'sslserver', 'captcha', 'filters', 'column', 'recite', 'etymon', 'dict', 'user', 'back', 'xcx', 'man'] |
INTERNAL_IPS | [] |
LANGUAGES | [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ar-dz', 'Algerian Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('hy', 'Armenian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('ig', 'Igbo'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('ky', 'Kyrgyz'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmål'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('tg', 'Tajik'), ('th', 'Thai'), ('tk', 'Turkmen'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('uz', 'Uzbek'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] |
LANGUAGES_BIDI | ['he', 'ar', 'ar-dz', 'fa', 'ur'] |
LANGUAGE_CODE | 'en-us' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_HTTPONLY | False |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LANGUAGE_COOKIE_SAMESITE | None |
LANGUAGE_COOKIE_SECURE | False |
LOCALE_PATHS | [] |
LOGGING | {'disable_existing_loggers': True, 'formatters': {'verbose': {'datefmt': '%Y-%m-%d %H:%M:%S', 'format': '%(asctime)s-%(message)s'}}, 'handlers': {'back': {'class': 'logging.handlers.RotatingFileHandler', 'filename': './log/back.log', 'formatter': 'verbose', 'level': 'INFO'}, 'xcx': {'class': 'logging.handlers.RotatingFileHandler', 'filename': './log/xcx.log', 'formatter': 'verbose', 'level': 'INFO'}}, 'loggers': {'back': {'handlers': ['back'], 'level': 'ERROR', 'propagate': True}, 'xcx': {'handlers': ['xcx'], 'level': 'INFO', 'propagate': True}}, 'version': 1} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '' |
MEDIA_URL | '/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
ROOT_URLCONF | 'waibo.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | True |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_REFERRER_POLICY | 'same-origin' |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'root@localhost' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | 'sessionid' |
SESSION_COOKIE_PATH | '/' |
SESSION_COOKIE_SAMESITE | 'Lax' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'waibo.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
STATICFILES_DIRS | ['D:/sites/assets/static', 'D:/sites/assets/assets', 'D:/sites/assets/media'] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | None |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['D:\\sites\\waibo\\templates'], 'OPTIONS': {'builtins': ['django.templatetags.static'], 'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'Asia/Shanghai' |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | False |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'waibo.wsgi.application' |
X_FRAME_OPTIONS | 'DENY' |
YEAR_MONTH_FORMAT | 'F Y' |
You’re seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard page generated by the handler for this status code.