Reverse for 'category_slug2' with arguments '('', '')' and keyword arguments '{}' not found. 1 pattern(s) tried: [u'h5/category/(?P<slug1>\\w+)/(?P<slug2>\\w+)/$']
Request Method: | GET |
---|---|
Request URL: | http://www.bjmce.com/h5/teacher/video/172/detail/ |
Django Version: | 1.9 |
Exception Type: | NoReverseMatch |
Exception Value: | Reverse for 'category_slug2' with arguments '('', '')' and keyword arguments '{}' not found. 1 pattern(s) tried: [u'h5/category/(?P<slug1>\\w+)/(?P<slug2>\\w+)/$'] |
Exception Location: | /home/jinji/envs/tomato/lib/python2.7/site-packages/django/core/urlresolvers.py in _reverse_with_prefix, line 508 |
Python Executable: | /usr/bin/python |
Python Version: | 2.7.6 |
Python Path: | ['/usr/local/lib/python2.7/dist-packages/AliyunUtil-0.0.1-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/cloud_init-0.7.6-py2.7.egg', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/home/jinji/envs/tomato/lib/python2.7/site-packages', '/home/jinji/envs/tomato/src/attackt', '/home/jinji/workspace/tomato'] |
Server time: | 星期五, 29 三月 2024 03:09:27 +0800 |
In template /home/jinji/workspace/tomato/website/templates/h5/video/teacher-video-detail.html
, error at line 15
5 | <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> |
---|---|
6 | {% endblock %} |
7 | {% block container %} |
8 | |
9 | <section> |
10 | <img id="header-banner" alt="" class="body-banner img-responsive"> |
11 | <div class="search-bar anchor-nav"> |
12 | <div class="container"> |
13 | <ul> |
14 | <li><a href="{% url 'website:index' %}">首页</a></li> |
15 | <li><a href="{% url 'website:category_slug2' category_1.parent.slug category_1.slug %}">{{category_1.name}}</a></li> |
16 | <li><a href="">{{ client.name|truncatechars:50 }}</a></li> |
17 | </ul> |
18 | </div> |
19 | </div> |
20 | |
21 | <div class="container"> |
22 | <div class="video"> |
23 | <h3 class="title">{{ client.name }}</h3> |
24 | <video id="my_video_1" class="video-js vjs-default-skin vjs-big-play-button vjs-big-play-centered" controls preload="auto" width="640" height="264" |
25 | data-setup="{}"> |
/home/jinji/envs/tomato/lib/python2.7/site-packages/django/core/handlers/base.py
in get_response
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)
except Exception as e:
response = self.process_exception_by_middleware(e, request)...
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
view_name = callback.__name__
else: # CBV
Variable | Value |
---|---|
e | NoReverseMatch(u"Reverse for 'category_slug2' with arguments '('', '')' and keyword arguments '{}' not found. 1 pattern(s) tried: [u'h5/category/(?P<slug1>\\\\w+)/(?P<slug2>\\\\w+)/$']",) |
callback_args | () |
resolver_match | ResolverMatch(func=website.views.teacher_video_view.detail, args=(), kwargs={'video_id': u'172'}, url_name=teacher_video_detail, app_names=[], namespaces=['website']) |
response_is_rendered | False |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f9421788910>> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f9422ede150> |
request | <WSGIRequest: GET '/h5/teacher/video/172/detail/'> |
callback | <function detail at 0x7f94182610c8> |
wrapped_callback | <function detail at 0x7f94182610c8> |
resolver | <RegexURLResolver 'tomato.urls' (None:None) ^/> |
callback_kwargs | {'video_id': u'172'} |
response | None |
urlconf | 'tomato.urls' |
/home/jinji/envs/tomato/lib/python2.7/site-packages/django/core/handlers/base.py
in get_response
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)...
except Exception as e:
response = self.process_exception_by_middleware(e, request)
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
Variable | Value |
---|---|
e | NoReverseMatch(u"Reverse for 'category_slug2' with arguments '('', '')' and keyword arguments '{}' not found. 1 pattern(s) tried: [u'h5/category/(?P<slug1>\\\\w+)/(?P<slug2>\\\\w+)/$']",) |
callback_args | () |
resolver_match | ResolverMatch(func=website.views.teacher_video_view.detail, args=(), kwargs={'video_id': u'172'}, url_name=teacher_video_detail, app_names=[], namespaces=['website']) |
response_is_rendered | False |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f9421788910>> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f9422ede150> |
request | <WSGIRequest: GET '/h5/teacher/video/172/detail/'> |
callback | <function detail at 0x7f94182610c8> |
wrapped_callback | <function detail at 0x7f94182610c8> |
resolver | <RegexURLResolver 'tomato.urls' (None:None) ^/> |
callback_kwargs | {'video_id': u'172'} |
response | None |
urlconf | 'tomato.urls' |
/home/jinji/workspace/tomato/website/views/base_view.py
in decorator
category_list = Category.objects.filter(is_del=False, parent=None).order_by('order_no')
advertising_friendships = Advertising.objects.filter(is_del=False, url_type=4).order_by('order_no')
context_base = {
'category_list': category_list,
'advertising_friendships': advertising_friendships,
}
kwargs['context_base'] = context_base
return view(request, *args, **kwargs)...
return decorator
def page_list(clients, page_size):
page = clients.number
Variable | Value |
---|---|
category_list | [<Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>] |
kwargs | {'context_base': {'advertising_friendships': [<Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>], 'category_list': [<Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>]}, 'video_id': u'172'} |
args | () |
request | <WSGIRequest: GET '/h5/teacher/video/172/detail/'> |
context_base | {'advertising_friendships': [<Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>], 'category_list': [<Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>]} |
advertising_friendships | [<Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>] |
view | <function detail at 0x7f9418261050> |
/home/jinji/workspace/tomato/website/views/teacher_video_view.py
in detail
}
category_list = Category.objects.filter(is_del=False, parent__slug='teacher').order_by('order_no')
context['children_category'] = category_list
context['slug2'] = 'video'
context.update(context_base)
template = loader.get_template('h5/video/teacher-video-detail.html')
return HttpResponse(template.render(context, request))...
Variable | Value |
---|---|
category | None |
context | {'advertising_friendships': [<Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>], 'category_1': None, 'category_list': [<Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>], 'children_category': [<Category: Category object>], 'client': <VideoLesson: VideoLesson object>, 'module': 'teacher', 'slug2': 'video'} |
category_list | [<Category: Category object>] |
video_id | u'172' |
request | <WSGIRequest: GET '/h5/teacher/video/172/detail/'> |
client | <VideoLesson: VideoLesson object> |
template | <django.template.backends.django.Template object at 0x7f93d9cf9190> |
context_base | {'advertising_friendships': [<Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>], 'category_list': [<Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>]} |
videolesson | <VideoLesson: VideoLesson object> |
/home/jinji/envs/tomato/lib/python2.7/site-packages/django/template/backends/django.py
in render
"render() must be called with a dict, not a Context.",
RemovedInDjango110Warning, stacklevel=2)
else:
context = make_context(context, request)
try:
return self.template.render(context)...
except TemplateDoesNotExist as exc:
reraise(exc, self.backend)
def reraise(exc, backend):
"""
Variable | Value |
---|---|
self | <django.template.backends.django.Template object at 0x7f93d9cf9190> |
request | <WSGIRequest: GET '/h5/teacher/video/172/detail/'> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'client': <VideoLesson: VideoLesson object>, 'category_1': None, 'category_list': [<Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>], 'children_category': [<Category: Category object>], 'slug2': 'video', 'advertising_friendships': [<Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>], 'module': 'teacher'}] |
/home/jinji/envs/tomato/lib/python2.7/site-packages/django/template/base.py
in render
def render(self, context):
"Display stage -- can be called many times"
context.render_context.push()
try:
if context.template is None:
with context.bind_template(self):
context.template_name = self.name
return self._render(context)...
else:
return self._render(context)
finally:
context.render_context.pop()
def compile_nodelist(self):
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7f93d9e5dc90> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'client': <VideoLesson: VideoLesson object>, 'category_1': None, 'category_list': [<Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>], 'children_category': [<Category: Category object>], 'slug2': 'video', 'advertising_friendships': [<Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>], 'module': 'teacher'}] |
/home/jinji/envs/tomato/lib/python2.7/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
context.render_context.push()
try:
if context.template is None:
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7f93d9e5dc90> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'client': <VideoLesson: VideoLesson object>, 'category_1': None, 'category_list': [<Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>], 'children_category': [<Category: Category object>], 'slug2': 'video', 'advertising_friendships': [<Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>], 'module': 'teacher'}] |
/home/jinji/envs/tomato/lib/python2.7/site-packages/django/template/base.py
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(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <ExtendsNode: extends 'base.html'> |
self | [<ExtendsNode: extends 'base.html'>] |
bits | [] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'client': <VideoLesson: VideoLesson object>, 'category_1': None, 'category_list': [<Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>], 'children_category': [<Category: Category object>], 'slug2': 'video', 'advertising_friendships': [<Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>], 'module': 'teacher'}] |
/home/jinji/envs/tomato/lib/python2.7/site-packages/django/template/base.py
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.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
self | <ExtendsNode: extends 'base.html'> |
e | NoReverseMatch(u"Reverse for 'category_slug2' with arguments '('', '')' and keyword arguments '{}' not found. 1 pattern(s) tried: [u'h5/category/(?P<slug1>\\\\w+)/(?P<slug2>\\\\w+)/$']",) |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'client': <VideoLesson: VideoLesson object>, 'category_1': None, 'category_list': [<Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>], 'children_category': [<Category: Category object>], 'slug2': 'video', 'advertising_friendships': [<Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>], 'module': 'teacher'}] |
/home/jinji/envs/tomato/lib/python2.7/site-packages/django/template/loader_tags.py
in render
blocks = {n.name: n for n in
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.
return compiled_parent._render(context)...
class IncludeNode(Node):
context_key = '__include_context'
def __init__(self, template, *args, **kwargs):
Variable | Value |
---|---|
node | <Block Node: meta. Contents: []> |
blocks | {u'banner': <Block Node: banner. Contents: []>, u'container': <Block Node: container. Contents: []>, u'meta': <Block Node: meta. Contents: []>, u'script': <Block Node: script. Contents: []>, u'style': <Block Node: style. Contents: []>, u'title': <Block Node: title. Contents: [<TextNode: u'\u9a6c\u627f\u82f1\u8bed-\u5b98\u65b9\u7f51\u7ad9'>]>} |
block_context | <django.template.loader_tags.BlockContext object at 0x7f93d9ddef90> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'client': <VideoLesson: VideoLesson object>, 'category_1': None, 'category_list': [<Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>], 'children_category': [<Category: Category object>], 'slug2': 'video', 'advertising_friendships': [<Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>], 'module': 'teacher'}] |
compiled_parent | <django.template.base.Template object at 0x7f93d9b95850> |
self | <ExtendsNode: extends 'base.html'> |
/home/jinji/envs/tomato/lib/python2.7/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
context.render_context.push()
try:
if context.template is None:
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7f93d9b95850> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'client': <VideoLesson: VideoLesson object>, 'category_1': None, 'category_list': [<Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>], 'children_category': [<Category: Category object>], 'slug2': 'video', 'advertising_friendships': [<Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>], 'module': 'teacher'}] |
/home/jinji/envs/tomato/lib/python2.7/site-packages/django/template/base.py
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(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <Block Node: container. Contents: []> |
bit | u'\n </header>\n ' |
bits | [u'<!DOCTYPE html>\n<html lang="en">\n<head>\n\n <meta charset="UTF-8">\n <meta http-equiv="X-UA-Compatible" content="IE=edge">\n <meta name="renderer" content="webkit">\n <meta name="description" content="">\n <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">\n ', u'\n<META name="keywords" content="\u793a\u8303\u8bfe/\u89c6\u9891\u6559\u7814/\u89c6\u9891\u8bfe\u7a0b/\u8bfe\u5802\u5b9e\u5f55/\u6d3b\u52a8\u65b9\u6848\u5206\u4eab">\n<META name="description" content="\u9a6c\u627f\u82f1\u8bed/\u6559\u5b66\u53c2\u8003PPT/\u6559\u6750\u914d\u5957MP3/\u7ec3\u4e60\u518c\u914d\u5957MP3/\u7ec3\u4e60\u518c\u53c2\u8003\u7b54\u6848/\u8bd5\u5377\u914d\u5957MP3/\u8bd5\u5377\u53c2\u8003\u7b54\u6848">\n<meta http-equiv="Content-Type" content="text/html; charset=gb2312">\n', u'\n <title>', u'\u9a6c\u627f\u82f1\u8bed-\u5b98\u65b9\u7f51\u7ad9', u'</title>\n ', u'', u'\n <link rel="shortcut icon" href="/static/img/icon.ico?a=1g">\n <link rel="stylesheet" href="/static/style/normalize.css">\n <link rel="stylesheet" href="/static/vendor/swiper-3.4.0.min.css">\n <link href="//cdn.bootcss.com/video.js/5.13.2/alt/video-js-cdn.min.css" rel="stylesheet">\n <link rel="stylesheet" href="/static/style/index.css?t=2">\n <link rel="stylesheet" href="/static/style/phone.css" media="(max-width: 1110px)">\n <link rel="stylesheet" href="/static/style/videostyle.css">\n <script>\n var _hmt = _hmt || [];\n (function() {\n var hm = document.createElement("script");\n hm.src = "https://hm.baidu.com/hm.js?bfd6391839056a48a0a108646276738e";\n var s = document.getElementsByTagName("script")[0]; \n s.parentNode.insertBefore(hm, s);\n })();\n </script>\n\t<style>\n\t.qingming-hui-body {\n\t\t-webkit-filter: grayscale(100%); /* Chrome, Safari, Opera */\n\t\tfilter: grayscale(100%);\n\t}\n\t</style>\n</head>\n<body>\n\n', u'\n\n<div class="online-discuss" style="position: fixed; z-index:65505; top:200px;right:5px; cursor:default;">\n <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=2881015875&site=qq&menu=yes">\n <img border="0" src="http://wpa.qq.com/pa?p=2:2881015875:51" alt="\u5728\u7ebf\u54a8\u8be2" title="\u5728\u7ebf\u54a8\u8be2">\n </a>\n</div>\n<div class="online-discuss" style="position: fixed; z-index:65505; top:230px;right:5px; cursor:default;">\n <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=2881015873&site=qq&menu=yes">\n <img border="0" src="http://wpa.qq.com/pa?p=2:2881015873:51" alt="\u5728\u7ebf\u54a8\u8be2" title="\u5728\u7ebf\u54a8\u8be2">\n </a>\n</div>\n\n <header>\n <div class="top">\n <div class="top-main container" style="box-sizing:content-box">\n ', u'', u'\n <div class="right">\n ', u'\n <span class="item modal-pop" onclick="update_city(\'\', 1);" modal-id="#registerModal">\u6ce8\u518c</span>|\n <span class="item modal-pop" modal-id="#loginModal">\u767b\u5f55</span>\n ', u'\n </div>\n </div>\n </div>\n </div>\n\n <nav class="navbar top-nav" style="box-sizing:content-box">\n <div class="container nav-container clearfloat">\n <form action="', u'/h5/base/search/', u'" method="get">\n ', u'', u'\n </form>\n <div class="navbar-header">\n <a href="', u'/h5/index/', u'"><img src="/static/img/logo.png" alt="" class="header-logo"></a>\n </div>\n <div class="collapse navbar-collapse clearfloat">\n <ul class="nav navbar-nav clearfloat">\n <li class="item ', u'', u' dropdown1"><a href="', u'/h5/index/', u'">\u9996\u9875</a></li>\n ', u'\n \n\n \n <li class="item ">\n <a ... <trimmed 9307 bytes string> |
self | [<TextNode: u'<!DOCTYPE html>\n<html lan'>, <Block Node: meta. Contents: []>, <TextNode: u'\n <title>'>, <Block Node: title. Contents: [<TextNode: u'\u9a6c\u627f\u82f1\u8bed-\u5b98\u65b9\u7f51\u7ad9'>]>, <TextNode: u'</title>\n '>, <Block Node: style. Contents: []>, <TextNode: u'\n <link rel="shortcut '>, <TextNode: u'\n\n<div class="online-disc'>, <django.template.defaulttags.CommentNode object at 0x7f93d9b23a10>, <TextNode: u'\n <div cla'>, <IfNode>, <TextNode: u'\n </div>\n '>, <django.template.defaulttags.URLNode object at 0x7f93d9f10850>, <TextNode: u'" method="get">\n '>, <IfNode>, <TextNode: u'\n </form>\n'>, <django.template.defaulttags.URLNode object at 0x7f93d9f10bd0>, <TextNode: u'"><img src="/static/img/l'>, <IfNode>, <TextNode: u' dropdown1"><a href="'>, <django.template.defaulttags.URLNode object at 0x7f93d9f105d0>, <TextNode: u'">\u9996\u9875</a></li>\n '>, <For Node: for category in category_list, tail_len: 13>, <TextNode: u'\n </ul'>, <Block Node: banner. Contents: []>, <TextNode: u'\n </header>\n '>, <Block Node: container. Contents: []>, <TextNode: u'\n <footer>\n <di'>, <For Node: for friendship in advertising_friendships, tail_len: 5>, <TextNode: u'\n '>, <TextNode: u'\n'>, <TextNode: u'\n'>, <TextNode: u'\n'>, <TextNode: u'\n'>, <TextNode: u'\n'>, <TextNode: u'\n'>, <TextNode: u'\n'>, <TextNode: u'\n'>, <TextNode: u'\n\n '>, <TextNode: u'\n <p>\u7248'>, <IfNode>, <TextNode: u'\n $("#header-banne'>, <django.template.defaulttags.CommentNode object at 0x7f93d9bd2950>, <TextNode: u'\n <script type="text/j'>, <Variable Node: slug2>, <TextNode: u"';\n // \u8df3\u8f6c\u5230\u6307\u5b9a\u9875\n ">, <django.template.defaulttags.URLNode object at 0x7f93d9efc650>, <TextNode: u"'+'?rangom=' + Math.rando">, <django.template.defaulttags.URLNode object at 0x7f93d9f34150>, <TextNode: u'",\n {\n'>, <Variable Node: csrf_token>, <TextNode: u'",\n },'>, <django.template.defaulttags.URLNode object at 0x7f93d9f343d0>, <TextNode: u'",\n da'>, <django.template.defaulttags.URLNode object at 0x7f93d9f34ad0>, <TextNode: u'";\n var userna'>, <Variable Node: csrf_token>, <TextNode: u'",\n },\n '>, <django.template.defaulttags.URLNode object at 0x7f93d9ed5910>, <TextNode: u'";\n var userna'>, <Variable Node: csrf_token>, <TextNode: u'",\n },\n '>, <django.template.defaulttags.URLNode object at 0x7f93d9ed54d0>, <TextNode: u'";\n var mobile'>, <Variable Node: csrf_token>, <TextNode: u'",\n },\n '>, <django.template.defaulttags.URLNode object at 0x7f93d9ed5850>, <TextNode: u'";\n window.loc'>, <Block Node: script. Contents: []>, <TextNode: u'\n</body>\n</html>\n'>] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'client': <VideoLesson: VideoLesson object>, 'category_1': None, 'category_list': [<Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>], 'children_category': [<Category: Category object>], 'slug2': 'video', 'advertising_friendships': [<Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>], 'module': 'teacher'}] |
/home/jinji/envs/tomato/lib/python2.7/site-packages/django/template/base.py
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.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
self | <Block Node: container. Contents: []> |
e | NoReverseMatch(u"Reverse for 'category_slug2' with arguments '('', '')' and keyword arguments '{}' not found. 1 pattern(s) tried: [u'h5/category/(?P<slug1>\\\\w+)/(?P<slug2>\\\\w+)/$']",) |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'client': <VideoLesson: VideoLesson object>, 'category_1': None, 'category_list': [<Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>], 'children_category': [<Category: Category object>], 'slug2': 'video', 'advertising_friendships': [<Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>], 'module': 'teacher'}] |
/home/jinji/envs/tomato/lib/python2.7/site-packages/django/template/loader_tags.py
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 |
---|---|
push | <Block Node: container. Contents: [<TextNode: u'\n\n<section>\n <img id="he'>, <django.template.defaulttags.URLNode object at 0x7f93d9f5e9d0>, <TextNode: u'">\u9996\u9875</a></li>\n '>, <django.template.defaulttags.URLNode object at 0x7f93d9f5ecd0>, <TextNode: u'">'>, <Variable Node: category_1.name>, <TextNode: u'</a></li>\n '>, <Variable Node: client.name|truncatechars:50>, <TextNode: u'</a></li>\n </u'>, <Variable Node: client.name>, <TextNode: u'</h3>\n <video '>, <Variable Node: client.video_url>, <TextNode: u'" >\n </video>\n'>, <Variable Node: client.teacher>, <TextNode: u'</span>\n <'>, <Variable Node: client.people>, <TextNode: u'</span>\n <'>, <Variable Node: client.tags>, <TextNode: u'</span>\n <'>, <Variable Node: client.school>, <TextNode: u'</span>\n </div'>, <Variable Node: client.description|safe>, <TextNode: u'\n </div>\n '>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f93d9ddef90> |
block | <Block Node: container. Contents: [<TextNode: u'\n\n<section>\n <img id="he'>, <django.template.defaulttags.URLNode object at 0x7f93d9f5e9d0>, <TextNode: u'">\u9996\u9875</a></li>\n '>, <django.template.defaulttags.URLNode object at 0x7f93d9f5ecd0>, <TextNode: u'">'>, <Variable Node: category_1.name>, <TextNode: u'</a></li>\n '>, <Variable Node: client.name|truncatechars:50>, <TextNode: u'</a></li>\n </u'>, <Variable Node: client.name>, <TextNode: u'</h3>\n <video '>, <Variable Node: client.video_url>, <TextNode: u'" >\n </video>\n'>, <Variable Node: client.teacher>, <TextNode: u'</span>\n <'>, <Variable Node: client.people>, <TextNode: u'</span>\n <'>, <Variable Node: client.tags>, <TextNode: u'</span>\n <'>, <Variable Node: client.school>, <TextNode: u'</span>\n </div'>, <Variable Node: client.description|safe>, <TextNode: u'\n </div>\n '>]> |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'client': <VideoLesson: VideoLesson object>, 'category_1': None, 'category_list': [<Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>], 'children_category': [<Category: Category object>], 'slug2': 'video', 'advertising_friendships': [<Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>], 'module': 'teacher'}] |
self | <Block Node: container. Contents: []> |
/home/jinji/envs/tomato/lib/python2.7/site-packages/django/template/base.py
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(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <django.template.defaulttags.URLNode object at 0x7f93d9f5ecd0> |
bit | u'">\u9996\u9875</a></li>\n <li><a href="' |
bits | [u'\n\n<section>\n <img id="header-banner" alt="" class="body-banner img-responsive">\n <div class="search-bar anchor-nav">\n <div class="container">\n <ul>\n <li><a href="', u'/h5/index/', u'">\u9996\u9875</a></li>\n <li><a href="'] |
self | [<TextNode: u'\n\n<section>\n <img id="he'>, <django.template.defaulttags.URLNode object at 0x7f93d9f5e9d0>, <TextNode: u'">\u9996\u9875</a></li>\n '>, <django.template.defaulttags.URLNode object at 0x7f93d9f5ecd0>, <TextNode: u'">'>, <Variable Node: category_1.name>, <TextNode: u'</a></li>\n '>, <Variable Node: client.name|truncatechars:50>, <TextNode: u'</a></li>\n </u'>, <Variable Node: client.name>, <TextNode: u'</h3>\n <video '>, <Variable Node: client.video_url>, <TextNode: u'" >\n </video>\n'>, <Variable Node: client.teacher>, <TextNode: u'</span>\n <'>, <Variable Node: client.people>, <TextNode: u'</span>\n <'>, <Variable Node: client.tags>, <TextNode: u'</span>\n <'>, <Variable Node: client.school>, <TextNode: u'</span>\n </div'>, <Variable Node: client.description|safe>, <TextNode: u'\n </div>\n '>] |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'client': <VideoLesson: VideoLesson object>, 'category_1': None, 'category_list': [<Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>], 'children_category': [<Category: Category object>], 'slug2': 'video', 'advertising_friendships': [<Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>], 'module': 'teacher'}] |
/home/jinji/envs/tomato/lib/python2.7/site-packages/django/template/base.py
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.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
self | <django.template.defaulttags.URLNode object at 0x7f93d9f5ecd0> |
e | NoReverseMatch(u"Reverse for 'category_slug2' with arguments '('', '')' and keyword arguments '{}' not found. 1 pattern(s) tried: [u'h5/category/(?P<slug1>\\\\w+)/(?P<slug2>\\\\w+)/$']",) |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'client': <VideoLesson: VideoLesson object>, 'category_1': None, 'category_list': [<Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>], 'children_category': [<Category: Category object>], 'slug2': 'video', 'advertising_friendships': [<Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>], 'module': 'teacher'}] |
/home/jinji/envs/tomato/lib/python2.7/site-packages/django/template/defaulttags.py
in render
args=args, kwargs=kwargs,
current_app=current_app)
except NoReverseMatch:
if self.asvar is None:
# Re-raise the original exception, not the one with
# the path relative to the project. This makes a
# better error message.
six.reraise(*exc_info)...
else:
if self.asvar is None:
raise
if self.asvar:
context[self.asvar] = url
Variable | Value |
---|---|
project_name | u'settings' |
reverse | <function reverse at 0x7f9422790398> |
url | u'' |
self | <django.template.defaulttags.URLNode object at 0x7f93d9f5ecd0> |
args | ['', ''] |
current_app | u'website' |
view_name | u'website:category_slug2' |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'client': <VideoLesson: VideoLesson object>, 'category_1': None, 'category_list': [<Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>], 'children_category': [<Category: Category object>], 'slug2': 'video', 'advertising_friendships': [<Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>], 'module': 'teacher'}] |
kwargs | {} |
exc_info | (<class 'django.core.urlresolvers.NoReverseMatch'>, NoReverseMatch(u"Reverse for 'category_slug2' with arguments '('', '')' and keyword arguments '{}' not found. 1 pattern(s) tried: [u'h5/category/(?P<slug1>\\\\w+)/(?P<slug2>\\\\w+)/$']",), <traceback object at 0x7f93d9ee3a28>) |
NoReverseMatch | <class 'django.core.urlresolvers.NoReverseMatch'> |
arg | <django.template.base.FilterExpression object at 0x7f93d9f5ea90> |
/home/jinji/envs/tomato/lib/python2.7/site-packages/django/template/defaulttags.py
in render
# Try to look up the URL twice: once given the view name, and again
# relative to what we guess is the "main" app. If they both fail,
# re-raise the NoReverseMatch unless we're using the
# {% url ... as var %} construct in which case return nothing.
url = ''
try:
url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app)...
except NoReverseMatch:
exc_info = sys.exc_info()
if settings.SETTINGS_MODULE:
project_name = settings.SETTINGS_MODULE.split('.')[0]
try:
url = reverse(project_name + '.' + view_name,
Variable | Value |
---|---|
project_name | u'settings' |
reverse | <function reverse at 0x7f9422790398> |
url | u'' |
self | <django.template.defaulttags.URLNode object at 0x7f93d9f5ecd0> |
args | ['', ''] |
current_app | u'website' |
view_name | u'website:category_slug2' |
context | [{'False': False, 'None': None, 'True': True}, {}, {}, {'client': <VideoLesson: VideoLesson object>, 'category_1': None, 'category_list': [<Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>, <Category: Category object>], 'children_category': [<Category: Category object>], 'slug2': 'video', 'advertising_friendships': [<Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>, <Advertising: Advertising object>], 'module': 'teacher'}] |
kwargs | {} |
exc_info | (<class 'django.core.urlresolvers.NoReverseMatch'>, NoReverseMatch(u"Reverse for 'category_slug2' with arguments '('', '')' and keyword arguments '{}' not found. 1 pattern(s) tried: [u'h5/category/(?P<slug1>\\\\w+)/(?P<slug2>\\\\w+)/$']",), <traceback object at 0x7f93d9ee3a28>) |
NoReverseMatch | <class 'django.core.urlresolvers.NoReverseMatch'> |
arg | <django.template.base.FilterExpression object at 0x7f93d9f5ea90> |
/home/jinji/envs/tomato/lib/python2.7/site-packages/django/core/urlresolvers.py
in reverse
(key, ':'.join(resolved_path)))
else:
raise NoReverseMatch("%s is not a registered namespace" %
key)
if ns_pattern:
resolver = get_ns_resolver(ns_pattern, resolver)
return force_text(iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs)))...
reverse_lazy = lazy(reverse, six.text_type)
def clear_url_caches():
get_callable.cache_clear()
Variable | Value |
---|---|
ns_pattern | u'h5/' |
current_path | [] |
viewname | u'website:category_slug2' |
extra | 'h5/' |
args | ['', ''] |
current_app | u'website' |
current_ns | u'website' |
prefix | u'/' |
parts | [u'category_slug2', u'website'] |
resolver | <RegexURLResolver <RegexURLResolver list> (None:None) ^/> |
kwargs | {} |
resolved_path | [u'website'] |
path | [] |
ns | u'website' |
urlconf | 'tomato.urls' |
view | u'category_slug2' |
/home/jinji/envs/tomato/lib/python2.7/site-packages/django/core/urlresolvers.py
in _reverse_with_prefix
lookup_view_s = "%s.%s" % (m, n)
else:
lookup_view_s = lookup_view
patterns = [pattern for (possibility, pattern, defaults) in possibilities]
raise NoReverseMatch("Reverse for '%s' with arguments '%s' and keyword "
"arguments '%s' not found. %d pattern(s) tried: %s" %
(lookup_view_s, args, kwargs, len(patterns), patterns))...
class LocaleRegexURLResolver(RegexURLResolver):
"""
A URL resolver that always matches the active language code as URL prefix.
Variable | Value |
---|---|
candidate_pat | u'/h5/category/%(slug1)s/%(slug2)s/' |
v | '' |
lookup_view | u'category_slug2' |
pattern | u'h5/category/(?P<slug1>\\w+)/(?P<slug2>\\w+)/$' |
self | <RegexURLResolver <RegexURLResolver list> (None:None) ^/> |
args | ('', '') |
_prefix | u'/' |
m | None |
text_args | [u'', u''] |
lookup_view_s | u'category_slug2' |
possibilities | [([(u'h5/category/%(slug1)s/%(slug2)s/', [u'slug1', u'slug2'])], u'h5/category/(?P<slug1>\\w+)/(?P<slug2>\\w+)/$', {})] |
patterns | [u'h5/category/(?P<slug1>\\w+)/(?P<slug2>\\w+)/$'] |
text_kwargs | {} |
params | [u'slug1', u'slug2'] |
possibility | [(u'h5/category/%(slug1)s/%(slug2)s/', [u'slug1', u'slug2'])] |
defaults | {} |
kwargs | {} |
candidate_subs | {u'slug1': u'', u'slug2': u''} |
n | None |
original_lookup | u'category_slug2' |
result | u'h5/category/%(slug1)s/%(slug2)s/' |
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
mod_wsgi.listener_port | '8080' |
CONTEXT_DOCUMENT_ROOT | '/var/www' |
SERVER_SOFTWARE | 'Apache/2.4.7 (Ubuntu)' |
SCRIPT_NAME | u'' |
mod_wsgi.enable_sendfile | '0' |
mod_wsgi.handler_script | '' |
SERVER_SIGNATURE | '<address>Apache/2.4.7 (Ubuntu) Server at www.bjmce.com Port 80</address>\n' |
REQUEST_METHOD | 'GET' |
PATH_INFO | u'/h5/teacher/video/172/detail/' |
SERVER_PROTOCOL | 'HTTP/1.0' |
QUERY_STRING | '' |
HTTP_X_REAL_IP | '3.83.81.42' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_CONNECTION | 'close' |
SERVER_NAME | 'www.bjmce.com' |
REMOTE_ADDR | '127.0.0.1' |
mod_wsgi.queue_start | '1711652967106730' |
mod_wsgi.request_handler | 'wsgi-script' |
wsgi.url_scheme | 'http' |
PATH_TRANSLATED | '/home/jinji/workspace/tomato/prod.wsgi/h5/teacher/video/172/detail/' |
SERVER_PORT | '80' |
wsgi.multiprocess | True |
mod_wsgi.input_chunked | '0' |
SERVER_ADDR | '127.0.0.1' |
DOCUMENT_ROOT | '/var/www' |
mod_wsgi.process_group | '' |
SCRIPT_FILENAME | '/home/jinji/workspace/tomato/prod.wsgi' |
SERVER_ADMIN | '[no address given]' |
wsgi.input | <mod_wsgi.Input object at 0x7f93d9e14bb0> |
HTTP_HOST | 'www.bjmce.com' |
CONTEXT_PREFIX | '' |
wsgi.multithread | True |
mod_wsgi.callable_object | 'application' |
REQUEST_URI | '/h5/teacher/video/172/detail/' |
HTTP_ACCEPT | '*/*' |
wsgi.version | (1, 0) |
GATEWAY_INTERFACE | 'CGI/1.1' |
HTTP_X_FORWARDED_FOR | '3.83.81.42' |
wsgi.errors | <mod_wsgi.Log object at 0x7f93d9f78d30> |
REMOTE_PORT | '34522' |
mod_wsgi.listener_host | '' |
REQUEST_SCHEME | 'http' |
mod_wsgi.version | (3, 4) |
wsgi.run_once | False |
mod_wsgi.application_group | 'ipymce.bjmce.com|' |
mod_wsgi.script_reloading | '1' |
wsgi.file_wrapper | '' |
settings
Setting | Value |
---|---|
ACTIVITY_IS_ADD | True |
REDIS_PORT | 6379 |
SMS_ACCOUNT_TOKEN | u'********************' |
USE_X_FORWARDED_PORT | False |
USE_THOUSAND_SEPARATOR | False |
M_PASSWORD | u'********************' |
CSRF_COOKIE_SECURE | False |
LANGUAGE_CODE | 'zh-hans' |
ROOT_URLCONF | 'tomato.urls' |
MANAGERS | [] |
BASE_DIR | '/home/jinji/workspace/tomato' |
CATEGORY_IS_ADD | True |
DEFAULT_CHARSET | 'utf-8' |
BACK_PAGE_COUNT | 15 |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
STATIC_ROOT | '/home/jinji/workspace/tomato/staticfiles' |
ALLOWED_HOSTS | [] |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
SERVER_EMAIL | 'root@localhost' |
SECURE_HSTS_SECONDS | 0 |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_NAME | 'sessionid' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
SECURE_REDIRECT_EXEMPT | [] |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.mysql', 'HOST': '172.26.173.25', 'NAME': 'peiyou', 'OPTIONS': {'autocommit': True, 'charset': 'utf8mb4'}, 'PASSWORD': u'********************', 'PORT': '3306', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'tomato'}} |
EMAIL_SSL_KEYFILE | u'********************' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_PERMISSIONS | None |
UPLOAD_DIR | '/home/jinji/workspace/tomato/static/upload' |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
DEFAULT_CONTENT_TYPE | 'text/html' |
CHECK_CODE_ID | 'a6199498f0bce830fd60cae0fd08e380' |
APPEND_SLASH | True |
FIRST_DAY_OF_WEEK | 0 |
DATABASE_ROUTERS | [] |
DEFAULT_TABLESPACE | '' |
YEAR_MONTH_FORMAT | 'F Y' |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
DOMAIN | 'http://tomato.dev.attackt.com' |
ACTIVITY_COVER_KEY | u'********************' |
SESSION_COOKIE_PATH | '/' |
EMAIL_HOST_PASSWORD | u'********************' |
SECURE_CONTENT_TYPE_NOSNIFF | False |
MIDDLEWARE_CLASSES | ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] |
USE_I18N | True |
THOUSAND_SEPARATOR | ',' |
SECRET_KEY | u'********************' |
LANGUAGE_COOKIE_NAME | 'django_language' |
FILE_UPLOAD_TEMP_DIR | None |
LOGGING_CONFIG | 'logging.config.dictConfig' |
TEMPLATE_LOADERS | ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader'] |
WSGI_APPLICATION | 'tomato.wsgi.application' |
TEMPLATE_DEBUG | False |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
CSRF_COOKIE_NAME | 'csrftoken' |
ROOT | '/home/jinji/workspace/tomato' |
ACCESS_KEY | u'********************' |
FORCE_SCRIPT_NAME | None |
USE_X_FORWARDED_HOST | False |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
EMAIL_TIMEOUT | None |
SECURE_SSL_HOST | None |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SESSION_COOKIE_SECURE | False |
REDIS_HOST | 'localhost' |
SECURE_BROWSER_XSS_FILTER | False |
CSRF_COOKIE_DOMAIN | None |
FILE_CHARSET | 'utf-8' |
DEBUG | True |
CSRF_TRUSTED_ORIGINS | [] |
LANGUAGE_COOKIE_DOMAIN | None |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
INSTALLED_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_framework', 'restful', 'website', 'web'] |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
USE_L10N | True |
VERSION_NUM | 'v1/' |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
STATICFILES_DIRS | ['/home/jinji/workspace/tomato/static'] |
FILED_CHECK_MSG | '<b class="error_msg">\xe5\xad\x97\xe6\xae\xb5\xe4\xb8\x8d\xe8\x83\xbd\xe4\xb8\xba\xe7\xa9\xba</b>' |
PREPEND_WWW | False |
SECURE_PROXY_SSL_HEADER | None |
BUCKET_NAME | 'macheng' |
LANGUAGE_COOKIE_AGE | None |
SESSION_COOKIE_HTTPONLY | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
INTERNAL_IPS | [] |
MONTH_DAY_FORMAT | 'F j' |
LOGIN_URL | '/accounts/login/' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_SAVE_EVERY_REQUEST | False |
TIME_FORMAT | 'P' |
DB_PREFIX | 'fun_' |
TARGET_RIGHT_URL | 'http://onaxhr6pj.bkt.clouddn.com/macheng/right.png' |
SMS_SUB_ACCOUNT_SID | '8a216da85a3c0c39015a44f666f003dd' |
AUTH_USER_MODEL | 'auth.User' |
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'] |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | u'********************' |
TARGET_LEFT_URL | 'http://onaxhr6pj.bkt.clouddn.com/macheng/left.png' |
M_USER_NAME | 'huifengli' |
PASSWORD_RESET_TIMEOUT_DAYS | u'********************' |
SESSION_FILE_PATH | None |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CATEGORY_NOT_LIST | [] |
QINIU_DOMAIN | 'qiniu.bjmce.com' |
NUMBER_GROUPING | 0 |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SMS_ACCOUNT_SID | '8a216da85a3c0c39015a44f6653e03d6' |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_COOKIE_PATH | '/' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
TEMPLATE_STRING_IF_INVALID | '' |
DECIMAL_SEPARATOR | '.' |
IGNORABLE_404_URLS | [] |
LOCALE_PATHS | [] |
BACKGROUND_DOMAIN | 'http://ipy.bjmce.com' |
LOGOUT_URL | '/accounts/logout/' |
EMAIL_USE_TLS | False |
FIXTURE_DIRS | [] |
EMAIL_HOST | 'localhost' |
DATE_FORMAT | 'N j, Y' |
MEDIA_ROOT | '/home/jinji/workspace/tomato/static/upload' |
JWT_AUTH | {'JWT_ALGORITHM': 'HS256', 'JWT_ALLOW_REFRESH': False, 'JWT_AUDIENCE': None, 'JWT_AUTH_HEADER_PREFIX': 'JWT', 'JWT_DECODE_HANDLER': 'rest_framework_jwt.utils.jwt_decode_handler', 'JWT_ENCODE_HANDLER': 'rest_framework_jwt.utils.jwt_encode_handler', 'JWT_EXPIRATION_DELTA': datetime.timedelta(90), 'JWT_ISSUER': None, 'JWT_LEEWAY': 0, 'JWT_PAYLOAD_GET_USER_ID_HANDLER': 'rest_framework_jwt.utils.jwt_get_user_id_from_payload_handler', 'JWT_PAYLOAD_HANDLER': 'rest_framework_jwt.utils.jwt_payload_handler', 'JWT_REFRESH_EXPIRATION_DELTA': datetime.timedelta(90), 'JWT_RESPONSE_PAYLOAD_HANDLER': 'rest_framework_jwt.utils.jwt_response_payload_handler', 'JWT_SECRET_KEY': u'********************', 'JWT_VERIFY': True, 'JWT_VERIFY_EXPIRATION': True} |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
ADMINS | [] |
FORMAT_MODULE_PATH | None |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
SMS_TEMPLATE_CODE_ID | 193191 |
REST_FRAMEWORK | {'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework_jwt.authentication.JSONWebTokenAuthentication',), 'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticated',)} |
MEDIA_URL | '/media/' |
DATETIME_FORMAT | 'N j, Y, P' |
TEMPLATE_DIRS | [] |
CATEGORY_IS_EDIT | True |
SILENCED_SYSTEM_CHECKS | [] |
DISALLOWED_USER_AGENTS | [] |
ALLOWED_INCLUDE_ROOTS | [] |
AVATAR_URL | 'http://XXX.jpg' |
LOGGING | {} |
SHORT_DATE_FORMAT | 'm/d/Y' |
REDIS_TIMEOUT | 604800 |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
CACHE_MIDDLEWARE_KEY_PREFIX | u'********************' |
SECURE_SSL_REDIRECT | False |
TIME_ZONE | 'Asia/Shanghai' |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_USE_SSL | False |
TEMPLATE_CONTEXT_PROCESSORS | ['django.contrib.auth.context_processors.auth', 'django.template.context_processors.debug', 'django.template.context_processors.i18n', 'django.template.context_processors.media', 'django.template.context_processors.static', 'django.template.context_processors.tz', 'django.contrib.messages.context_processors.messages'] |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages']}}] |
MIGRATION_MODULES | {} |
SESSION_COOKIE_AGE | 1209600 |
SETTINGS_MODULE | 'settings' |
USE_ETAGS | False |
M_API_KEY | u'********************' |
LANGUAGES | [('af', 'Afrikaans'), ('ar', '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'), ('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'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('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'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] |
REDIS_DB | 0 |
DEFAULT_INDEX_TABLESPACE | '' |
CSRF_COOKIE_AGE | 31449600 |
STATIC_URL | '/static/' |
EMAIL_PORT | 25 |
USE_TZ | False |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
TEST_NON_SERIALIZED_APPS | [] |
PASSWORD_HASHERS | u'********************' |
ABSOLUTE_URL_OVERRIDES | {} |
CHECK_CODE_KEY | u'********************' |
LANGUAGE_COOKIE_PATH | '/' |
SMS_SUB_ACCOUNT_TOKEN | u'********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
EMAIL_SSL_CERTFILE | None |
SMS_APP_ID | '8a216da85c1ababd015c331d8f5006de' |
CSRF_COOKIE_HTTPONLY | False |
DATETIME_INPUT_FORMATS | ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y'] |
EMAIL_HOST_USER | '' |
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.