伟德体育客户端|首页下载

(2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
Request Method:
GET
Request URL:
http://yimeitex.com/catelog/index
Django Version:
1.11.4
Exception Type:
OperationalError
Exception Value:
(2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
Exception Location:
/root/django_projects/venv/lib/python2.7/site-packages/MySQLdb/connections.py in __init__, line 204
Python Executable:
/root/django_projects/venv/bin/uwsgi
Python Version:
2.7.5
Python Path:
['.',
 '',
 '/root/django_projects/venv/lib64/python27.zip',
 '/root/django_projects/venv/lib64/python2.7',
 '/root/django_projects/venv/lib64/python2.7/plat-linux2',
 '/root/django_projects/venv/lib64/python2.7/lib-tk',
 '/root/django_projects/venv/lib64/python2.7/lib-old',
 '/root/django_projects/venv/lib64/python2.7/lib-dynload',
 '/usr/lib64/python2.7',
 '/usr/lib/python2.7',
 '/root/django_projects/venv/lib/python2.7/site-packages']
Server time:
星期一, 26 十月 2020 06:16:10 +0000

Error during template rendering

In template /root/django_projects/yimei_site/front/templates/front/base.html, error at line 27

2002

17
18
<!-- Mobile Meta -->
19
<meta name="viewport" content="width=device-width, initial-scale=1.0">
20
21
<!-- Favicon -->
22
<link rel="shortcut icon" href="&rvpu;|%tubujd" 'front/images/favicon.ico'%}">
23
24
<!-- Web Fonts -->
25
<!-- <link href='http://fonts.cat.net/css?family=Roboto:400,300,300italic,400italic,500,500italic,700,700italic' rel="nofollow" rel="nofollow" rel='stylesheet' type='text/css'>
26
<link href='http://fonts.cat.net/css?family=Raleway:700,400,300' rel="nofollow" rel="nofollow" rel='stylesheet' type='text/css'>
27
<link href='http://fonts.cat.net/css?family=P rel="nofollow"acifico' rel='stylesheet' type='text/css'>
28
<link href='http://fonts.cat.net/css?family=P rel="nofollow"T+Serif' rel="nofollow" rel='stylesheet' type='text/css'> -->
29
30
<!-- Bootstrap core CSS -->
31
<link href="http://static.ga-inter.com/bootstrap/css/bootstrap.min.css" rel="stylesheet">
32
33
<!-- Font Awesome CSS -->
34
<link href="https://cdn.bootcss.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">
35
<!-- Fontello CSS -->
36
<link href="&rvpu;|%" static 'front/fonts/fontello/css/fontello.css' %}" rel="stylesheet">
37

Traceback Switch to copy-and-paste view

  • /root/django_projects/venv/lib/python2.7/site-packages/django/core/handlers/exception.py in inner
    1.     This decorator is automatically applied to all middleware to ensure that
    2.     no middleware leaks an exception and that the next middleware in the stack
    3.     can rely on getting a response instead of an exception.
    4.     """
    5.     @wraps(get_response, assigned=available_attrs(get_response))
    6.     def inner(request):
    7.         try:
    1.             response = get_response(request)
      ...
    1.         except Exception as exc:
    2.             response = response_for_exception(request, exc)
    3.         return response
    4.     return inner
    Variable Value
    exc
    OperationalError(2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
    get_response
    <bound method WSGIHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7fd659aa9cd0>>
    request
    <WSGIRequest: GET '/catelog/index'>
  • /root/django_projects/venv/lib/python2.7/site-packages/django/core/handlers/base.py in _get_response
    1.                 break
    2.         if response is None:
    3.             wrapped_callback = self.make_view_atomic(callback)
    4.             try:
    5.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)
    6.             except Exception as e:
    1.                 response = self.process_exception_by_middleware(e, request)
      ...
    1.         # Complain if the view returned None (a common error).
    2.         if response is None:
    3.             if isinstance(callback, types.FunctionType):    # FBV
    4.                 view_name = callback.__name__
    5.             else:                                           # CBV
    Variable Value
    callback
    <function catelog at 0x7fd65791c6e0>
    callback_args
    ()
    callback_kwargs
    {'code': u'index'}
    e
    OperationalError(2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
    middleware_method
    <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7fd6578f5850>>
    request
    <WSGIRequest: GET '/catelog/index'>
    resolver
    <RegexURLResolver 'yimei_site.urls' (None:None) ^/>
    resolver_match
    ResolverMatch(func=front.views.catelog, args=(), kwargs={'code': u'index'}, url_name=catelog, app_names=[], namespaces=[])
    response
    None
    self
    <django.core.handlers.wsgi.WSGIHandler object at 0x7fd659aa9cd0>
    wrapped_callback
    <function catelog at 0x7fd65791c6e0>
  • /root/django_projects/venv/lib/python2.7/site-packages/django/core/handlers/base.py in _get_response
    1.             response = middleware_method(request, callback, callback_args, callback_kwargs)
    2.             if response:
    3.                 break
    4.         if response is None:
    5.             wrapped_callback = self.make_view_atomic(callback)
    6.             try:
    1.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)
      ...
    1.             except Exception as e:
    2.                 response = self.process_exception_by_middleware(e, request)
    3.         # Complain if the view returned None (a common error).
    4.         if response is None:
    5.             if isinstance(callback, types.FunctionType):    # FBV
    Variable Value
    callback
    <function catelog at 0x7fd65791c6e0>
    callback_args
    ()
    callback_kwargs
    {'code': u'index'}
    e
    OperationalError(2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
    middleware_method
    <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7fd6578f5850>>
    request
    <WSGIRequest: GET '/catelog/index'>
    resolver
    <RegexURLResolver 'yimei_site.urls' (None:None) ^/>
    resolver_match
    ResolverMatch(func=front.views.catelog, args=(), kwargs={'code': u'index'}, url_name=catelog, app_names=[], namespaces=[])
    response
    None
    self
    <django.core.handlers.wsgi.WSGIHandler object at 0x7fd659aa9cd0>
    wrapped_callback
    <function catelog at 0x7fd65791c6e0>
  • ./front/views.py in catelog
    1.         products = paginator.page(paginator.num_pages)
    2.     return render(request, 'front/search.html', {'kw': kw, 'products': products, 'extra': "kw={}".format(kw)})
    3. def catelog(request, code='index'):
    4.     if code == 'index':
    5.         cats = Catelog.objects.filter(parent=None).order_by('sort_order')
    1.         return render(request, 'front/catelog_home.html', {'cats': cats})
      ...
    1.     pcat = get_object_or_404(Catelog, code=code)
    2.     cats = get_list_or_404(Catelog.objects.order_by('sort_order'), parent=pcat)
    3.     return render(request, 'front/catelog.html', {'pcat': pcat, 'cats': cats})
    4. def products(request, code=''):
    5.     cat = get_object_or_404(Catelog, code=code)
    Variable Value
    cats
    Error in formatting: OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
    code
    u'index'
    request
    <WSGIRequest: GET '/catelog/index'>
  • /root/django_projects/venv/lib/python2.7/site-packages/django/shortcuts.py in render
    1. def render(request, template_name, context=None, content_type=None, status=None, using=None):
    2.     """
    3.     Returns a HttpResponse whose content is filled with the result of calling
    4.     django.template.loader.render_to_string() with the passed arguments.
    5.     """
    1.     content = loader.render_to_string(template_name, context, request, using=using)
      ...
    1.     return HttpResponse(content, content_type, status)
    2. def redirect(to, *args, **kwargs):
    3.     """
    4.     Returns an HttpResponseRedirect to the appropriate URL for the arguments
    Variable Value
    content_type
    None
    context
    Error in formatting: OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
    request
    <WSGIRequest: GET '/catelog/index'>
    status
    None
    template_name
    u'front/catelog_home.html'
    using
    None
  • /root/django_projects/venv/lib/python2.7/site-packages/django/template/loader.py in render_to_string
    1.     template_name may be a string or a list of strings.
    2.     """
    3.     if isinstance(template_name, (list, tuple)):
    4.         template = select_template(template_name, using=using)
    5.     else:
    6.         template = get_template(template_name, using=using)
    1.     return template.render(context, request)
      ...
    1. def _engine_list(using=None):
    2.     return engines.all() if using is None else [engines[using]]
    Variable Value
    context
    Error in formatting: OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
    request
    <WSGIRequest: GET '/catelog/index'>
    template
    <django.template.backends.django.Template object at 0x7fd656dccc10>
    template_name
    u'front/catelog_home.html'
    using
    None
  • /root/django_projects/venv/lib/python2.7/site-packages/django/template/backends/django.py in render
    1.     @property
    2.     def origin(self):
    3.         return self.template.origin
    4.     def render(self, context=None, request=None):
    5.         context = make_context(context, request, autoescape=self.backend.engine.autoescape)
    6.         try:
    1.             return self.template.render(context)
      ...
    1.         except TemplateDoesNotExist as exc:
    2.             reraise(exc, self.backend)
    3. def copy_exception(exc, backend=None):
    4.     """
    Variable Value
    context
    Error in formatting: OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
    request
    <WSGIRequest: GET '/catelog/index'>
    self
    <django.template.backends.django.Template object at 0x7fd656dccc10>
  • /root/django_projects/venv/lib/python2.7/site-packages/django/template/base.py in render
    1.     def render(self, context):
    2.         "Display stage -- can be called many times"
    3.         with context.render_context.push_state(self):
    4.             if context.template is None:
    5.                 with context.bind_template(self):
    6.                     context.template_name = self.name
    1.                     return self._render(context)
      ...
    1.             else:
    2.                 return self._render(context)
    3.     def compile_nodelist(self):
    4.         """
    5.         Parse and compile the template source into a nodelist. If debug
    Variable Value
    context
    Error in formatting: OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
    self
    <django.template.base.Template object at 0x7fd656c82410>
  • /root/django_projects/venv/lib/python2.7/site-packages/django/template/base.py in _render
    1.     def __iter__(self):
    2.         for node in self.nodelist:
    3.             for subnode in node:
    4.                 yield subnode
    5.     def _render(self, context):
    1.         return self.nodelist.render(context)
      ...
    1.     def render(self, context):
    2.         "Display stage -- can be called many times"
    3.         with context.render_context.push_state(self):
    4.             if context.template is None:
    5.                 with context.bind_template(self):
    Variable Value
    context
    Error in formatting: OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
    self
    <django.template.base.Template object at 0x7fd656c82410>
  • /root/django_projects/venv/lib/python2.7/site-packages/django/template/base.py in render
    1.     # extend_nodelist().
    2.     contains_nontext = False
    3.     def render(self, context):
    4.         bits = []
    5.         for node in self:
    6.             if isinstance(node, Node):
    1.                 bit = node.render_annotated(context)
      ...
    1.             else:
    2.                 bit = node
    3.             bits.append(force_text(bit))
    4.         return mark_safe(''.join(bits))
    5.     def get_nodes_by_type(self, nodetype):
    Variable Value
    bits
    []
    context
    Error in formatting: OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
    node
    <ExtendsNode: extends "front/base.html">
    self
    [<ExtendsNode: extends "front/base.html">]
  • /root/django_projects/venv/lib/python2.7/site-packages/django/template/base.py in render_annotated
    1.         """
    2.         Render the node. If debug is True and an exception occurs during
    3.         rendering, the exception is annotated with contextual line information
    4.         where it occurred in the template. For internal usage this method is
    5.         preferred over using the render method directly.
    6.         """
    7.         try:
    1.             return self.render(context)
      ...
    1.         except Exception as e:
    2.             if context.template.engine.debug and not hasattr(e, 'template_debug'):
    3.                 e.template_debug = context.render_context.template.get_exception_info(e, self.token)
    4.             raise
    5.     def __iter__(self):
    Variable Value
    context
    Error in formatting: OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
    e
    OperationalError(2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
    self
    <ExtendsNode: extends "front/base.html">
  • /root/django_projects/venv/lib/python2.7/site-packages/django/template/loader_tags.py in render
    1.                               compiled_parent.nodelist.get_nodes_by_type(BlockNode)}
    2.                     block_context.add_blocks(blocks)
    3.                 break
    4.         # Call Template._render explicitly so the parser context stays
    5.         # the same.
    6.         with context.render_context.push_state(compiled_parent, isolated_context=False):
    1.             return compiled_parent._render(context)
      ...
    1. class IncludeNode(Node):
    2.     context_key = '__include_context'
    3.     def __init__(self, template, *args, **kwargs):
    Variable Value
    block_context
    <django.template.loader_tags.BlockContext object at 0x7fd656f26850>
    blocks
    {u'body': <Block Node: body. Contents: [<TextNode: u'        \t\t\n\t\t<!-- scrollT'>, <Block Node: header. Contents: [<TextNode: u'\n\t\t\t<!-- header-container'>, <django.template.defaulttags.URLNode object at 0x7fd657840e50>, <TextNode: u'">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div cla'>, <django.template.defaulttags.URLNode object at 0x7fd656f2aad0>, <TextNode: u'"><img id="logo_img" src='>, <django.templatetags.static.StaticNode object at 0x7fd6579a3dd0>, <TextNode: u'?v=1.0" alt="The Project"'>, <Variable Node: LANGUAGE_CODE>, <TextNode: u'">\n\t\t\t\t\t\t\t\t\t\t<!--blank-->'>, <django.template.defaulttags.URLNode object at 0x7fd656e53550>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f672d0>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t'>, <django.template.defaulttags.URLNode object at 0x7fd656f67e50>, <TextNode: u'#about">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f27190>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t'>, <django.template.defaulttags.URLNode object at 0x7fd656f27c50>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f27710>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ul cl'>, <django.template.defaulttags.URLNode object at 0x7fd656f274d0>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f27dd0>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>'>, <django.template.defaulttags.URLNode object at 0x7fd656f27950>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dce610>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>'>, <django.template.defaulttags.URLNode object at 0x7fd656dcee50>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dce310>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>'>, <django.template.defaulttags.URLNode object at 0x7fd656dcefd0>, <TextNode: u'#contact">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dce790>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t'>, <django.template.defaulttags.URLNode object at 0x7fd656dce750>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dcea50>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t'>, <django.template.defaulttags.URLNode object at 0x7fd656dce510>, <TextNode: u'">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div '>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dced10>, <TextNode: u'</li>\n\t\t\t\t\t\t\t\t\t\t<li><i cl'>, <django.template.defaulttags.URLNode object at 0x7fd656dced50>, <TextNode: u'" method="post">'>, <django.template.defaulttags.CsrfTokenNode object at 0x7fd656dcee10>, <TextNode: u'\n\t\t\t\t\t\t\t\t\t\t<input name="n'>, <Variable Node: redirect_to>, <TextNode: u'" />\n\t\t\t\t\t\t\t\t\t\t<div class'>]>, <TextNode: u'\n\t\t\t\n\t\t\t'>, <Block Node: breadcrumb. Contents: [<TextNode: u'\n\t\t\t<!-- breadcrumb start'>, <django.template.defaulttags.URLNode object at 0x7fd656d28050>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656d28890>, <TextNode: u'</a></li>\n\t\t\t\t\t\t'>, <Block Node: custom_breadcrumb. Contents: [<TextNode: u'\n\t\t\t\t\t\t<li class="active"'>, <Block Node: breadcrumb_txt. Contents: []>, <TextNode: u'</li>\n\t\t\t\t\t\t'>]>, <TextNode: u'\n\t\t\t\t\t</ol>\n\t\t\t\t</div>\n\t\t'>]>, <TextNode: u'\n\n\n\t\t\t<!-- main-container'>, <Block Node: content_class. Contents: []>, <TextNode: u'" style="'>, <Block Node: content_style. Contents: []>, <TextNode: u'">\n\t\t\t\t<div class="contai'>, <Block Node: content. Contents: [<TextNode: u'\n\t\t\t\t\t'>]>, <TextNode: u'\n\t\t\t\t</div>\n\t\t\t</section>'>, <django.template.defaulttags.URLNode object at 0x7fd656d28410>, <TextNode: u'">YIMEI</a>. All Rights R'>]>,
     u'body_class': <Block Node: body_class. Contents: [<TextNode: u'no-trans '>]>,
     u'breadcrumb': <Block Node: breadcrumb. Contents: [<TextNode: u'\n\t\t\t<!-- breadcrumb start'>, <django.template.defaulttags.URLNode object at 0x7fd656d28050>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd65... <trimmed 7764 bytes string>
    compiled_parent
    <django.template.base.Template object at 0x7fd656f26410>
    context
    Error in formatting: OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
    node
    <django.template.defaulttags.LoadNode object at 0x7fd656eca690>
    self
    <ExtendsNode: extends "front/base.html">
  • /root/django_projects/venv/lib/python2.7/site-packages/django/template/base.py in _render
    1.     def __iter__(self):
    2.         for node in self.nodelist:
    3.             for subnode in node:
    4.                 yield subnode
    5.     def _render(self, context):
    1.         return self.nodelist.render(context)
      ...
    1.     def render(self, context):
    2.         "Display stage -- can be called many times"
    3.         with context.render_context.push_state(self):
    4.             if context.template is None:
    5.                 with context.bind_template(self):
    Variable Value
    context
    Error in formatting: OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
    self
    <django.template.base.Template object at 0x7fd656f26410>
  • /root/django_projects/venv/lib/python2.7/site-packages/django/template/base.py in render
    1.     # extend_nodelist().
    2.     contains_nontext = False
    3.     def render(self, context):
    4.         bits = []
    5.         for node in self:
    6.             if isinstance(node, Node):
    1.                 bit = node.render_annotated(context)
      ...
    1.             else:
    2.                 bit = node
    3.             bits.append(force_text(bit))
    4.         return mark_safe(''.join(bits))
    5.     def get_nodes_by_type(self, nodetype):
    Variable Value
    bit
    u'">\n        '
    bits
    [u'',
     u'\n',
     u'',
     u'\n',
     u'',
     u'\n<!DOCTYPE html>\n<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->\n<!--[if gt IE 9]> <html lang="en" class="ie"> <![endif]-->\n<!--[if !IE]><!-->\n\n<html',
     u' dir="ltr" lang="zh-hans" ',
     u'>\n\t<!--<![endif]-->\n\n\t<head>\n\t\t<meta charset="utf-8">\n\t\t<title>',
     u'',
     u' | YIMEI \u4e0a\u6d77\u9890\u7f8e\u7eba\u7ec7\u670d\u88c5\u8f85\u6599\u6709\u9650\u516c\u53f8</title>\n\t\t<meta name="description" content="The Project a Bootstrap-based, Responsive HTML5 Template">\n\t\t<meta name="author" content="htmlcoder.me">\n\n\t\t<!-- Mobile Meta -->\n\t\t<meta name="viewport" content="width=device-width, initial-scale=1.0">\n\n\t\t<!-- Favicon -->\n\t\t<link rel="shortcut icon" href="&rvpu;',"
     u'/static/front/images/favicon.ico',
     u'">\n\n\t\t<!-- Web Fonts -->\t\t\n\t\t<!-- <link href=\'http://fonts.cat.net/css?family=Roboto:400,300,300italic,400italic,500,500italic,700,700italic\' rel="nofollow" rel=\'stylesheet\' type=\'text/css\'>\n\t\t<link href=\'http://fonts.cat.net/css?family=Raleway:700,400,300\' rel="nofollow" rel=\'stylesheet\' type=\'text/css\'>\n\t\t<link href=\'http://fonts.cat.net/css?family=Pacifico\' rel="nofollow" rel=\'stylesheet\' type=\'text/css\'>\n\t\t<link href=\'http://fonts.cat.net/css?family=PT+Serif\' rel="nofollow" rel=\'stylesheet\' type=\'text/css\'> -->\n\n\t\t<!-- Bootstrap core CSS -->\n\t\t<link href="http://static.ga-inter.com/bootstrap/css/bootstrap.min.css" rel="stylesheet">\n\n\t\t<!-- Font Awesome CSS -->\n\t\t<link href="https://cdn.bootcss.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">\n\t\t<!-- Fontello CSS -->\n\t\t<link href="&rvpu;',"
     u'/static/front/fonts/fontello/css/fontello.css',
     u'" rel="stylesheet">\n\n\t\t<!-- Plugins -->\n\t\t<link href="https://cdn.staticfile.org/magnific-popup.js/1.1.0/magnific-popup.min.css" rel="stylesheet">\n\t\t<link href="https://cdn.staticfile.org/animate.css/3.5.2/animate.min.css" rel="stylesheet">\n\t\t<link href="https://cdn.staticfile.org/fullPage.js/2.9.4/jquery.fullpage.min.css" rel="stylesheet">\n\t\t<link href="https://cdn.staticfile.org/OwlCarousel2/2.2.0/assets/owl.carousel.min.css" rel="stylesheet"> \n\t\t<link href="https://cdn.staticfile.org/OwlCarousel2/2.2.0/assets/owl.theme.default.min.css" rel="stylesheet"> \n\n\t\t<link href="https://cdn.staticfile.org/hover.css/2.0.2/css/hover-min.css" rel="stylesheet">\t\t\n\t\t\n\t\t<!-- The Project\'s core CSS file -->\n\t\t<!-- Use css/rtl_style.css for RTL version -->\n\t\t<link href="http://static.ga-inter.com/static/css/style-min.css" rel="stylesheet" >\n\t\t<!-- The Project\'s Typography CSS file, includes used fonts -->\n\t\t<!-- Used font for body: Roboto -->\n\t\t<!-- Used font for headings: Raleway -->\n\t\t<!-- Use css/rtl_typography-default.css for RTL version -->\n\t\t<link href="&rvpu;',"
     u'/static/front/css/typography-default.css',
     u'" rel="stylesheet" >\n\t\t<!-- Color Scheme (In order to change the color scheme, replace the blue.css with the color scheme that you prefer)-->\n\t\t<link href="&rvpu;',"
     u'/static/front/css/skins/pink.css',
     u'" rel="stylesheet">\n\t\t\n\n\t\t<!-- Custom css --> \n\t\t<link href="&rvpu;',"
     u'/static/front/css/custom.css',
     u'" rel="stylesheet">\n\t</head>\n\n\t<!-- body classes:  -->\n\t<!-- "boxed": boxed layout mode e.g. <body class="boxed"> -->\n\t<!-- "pattern-1 ... pattern-9": background patterns for boxed layout mode e.g. <body class="boxed pattern-1"> -->\n\t<!-- "transparent-header": makes the header transparent and pulls the banner to top -->\n\t<!-- "gradient-background-header": applies gradient background to header -->\n\t<!-- "page-loader-1 ... page-loader-6": add a page loader to the page (more info @components-page-loaders.html) -->\n\t<body class="',
     u'no-trans',
     u'">\n        ']
    context
    Error in formatting: OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
    node
    <Block Node: body. Contents: [<TextNode: u'        \t\t\n\t\t<!-- scrollT'>, <Block Node: header. Contents: [<TextNode: u'\n\t\t\t<!-- header-container'>, <django.template.defaulttags.URLNode object at 0x7fd657840e50>, <TextNode: u'">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div cla'>, <django.template.defaulttags.URLNode object at 0x7fd656f2aad0>, <TextNode: u'"><img id="logo_img" src='>, <django.templatetags.static.StaticNode object at 0x7fd6579a3dd0>, <TextNode: u'?v=1.0" alt="The Project"'>, <Variable Node: LANGUAGE_CODE>, <TextNode: u'">\n\t\t\t\t\t\t\t\t\t\t<!--blank-->'>, <django.template.defaulttags.URLNode object at 0x7fd656e53550>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f672d0>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t'>, <django.template.defaulttags.URLNode object at 0x7fd656f67e50>, <TextNode: u'#about">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f27190>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t'>, <django.template.defaulttags.URLNode object at 0x7fd656f27c50>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f27710>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ul cl'>, <django.template.defaulttags.URLNode object at 0x7fd656f274d0>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f27dd0>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>'>, <django.template.defaulttags.URLNode object at 0x7fd656f27950>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dce610>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>'>, <django.template.defaulttags.URLNode object at 0x7fd656dcee50>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dce310>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>'>, <django.template.defaulttags.URLNode object at 0x7fd656dcefd0>, <TextNode: u'#contact">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dce790>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t'>, <django.template.defaulttags.URLNode object at 0x7fd656dce750>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dcea50>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t'>, <django.template.defaulttags.URLNode object at 0x7fd656dce510>, <TextNode: u'">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div '>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dced10>, <TextNode: u'</li>\n\t\t\t\t\t\t\t\t\t\t<li><i cl'>, <django.template.defaulttags.URLNode object at 0x7fd656dced50>, <TextNode: u'" method="post">'>, <django.template.defaulttags.CsrfTokenNode object at 0x7fd656dcee10>, <TextNode: u'\n\t\t\t\t\t\t\t\t\t\t<input name="n'>, <Variable Node: redirect_to>, <TextNode: u'" />\n\t\t\t\t\t\t\t\t\t\t<div class'>]>, <TextNode: u'\n\t\t\t\n\t\t\t'>, <Block Node: breadcrumb. Contents: [<TextNode: u'\n\t\t\t<!-- breadcrumb start'>, <django.template.defaulttags.URLNode object at 0x7fd656d28050>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656d28890>, <TextNode: u'</a></li>\n\t\t\t\t\t\t'>, <Block Node: custom_breadcrumb. Contents: [<TextNode: u'\n\t\t\t\t\t\t<li class="active"'>, <Block Node: breadcrumb_txt. Contents: []>, <TextNode: u'</li>\n\t\t\t\t\t\t'>]>, <TextNode: u'\n\t\t\t\t\t</ol>\n\t\t\t\t</div>\n\t\t'>]>, <TextNode: u'\n\n\n\t\t\t<!-- main-container'>, <Block Node: content_class. Contents: []>, <TextNode: u'" style="'>, <Block Node: content_style. Contents: []>, <TextNode: u'">\n\t\t\t\t<div class="contai'>, <Block Node: content. Contents: [<TextNode: u'\n\t\t\t\t\t'>]>, <TextNode: u'\n\t\t\t\t</div>\n\t\t\t</section>'>, <django.template.defaulttags.URLNode object at 0x7fd656d28410>, <TextNode: u'">YIMEI</a>. All Rights R'>]>
    self
    [<django.template.defaulttags.LoadNode object at 0x7fd656eca690>,
     <TextNode: u'\n'>,
     <django.template.defaulttags.LoadNode object at 0x7fd656eca990>,
     <TextNode: u'\n'>,
     <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7fd656eca050>,
     <TextNode: u'\n<!DOCTYPE html>\n<!--[if '>,
     <Block Node: html_attribs. Contents: [<TextNode: u' dir="ltr" lang="'>, <Variable Node: LANGUAGE_CODE>, <TextNode: u'" '>]>,
     <TextNode: u'>\n\t<!--<![endif]-->\n\n\t<he'>,
     <Block Node: title. Contents: []>,
     <TextNode: u' | YIMEI \u4e0a\u6d77\u9890\u7f8e\u7eba\u7ec7\u670d\u88c5\u8f85\u6599\u6709\u9650\u516c\u53f8</'>,
     <django.templatetags.static.StaticNode object at 0x7fd656eca5d0>,
     <TextNode: u'">\n\n\t\t<!-- Web Fonts -->\t'>,
     <django.templatetags.static.StaticNode object at 0x7fd656eca250>,
     <TextNode: u'" rel="stylesheet">\n\n\t\t<!'>,
     <django.templatetags.static.StaticNode object at 0x7fd656f27f10>,
     <TextNode: u'" rel="stylesheet" >\n\t\t<!'>,
     <django.templatetags.static.StaticNode object at 0x7fd656f27ad0>,
     <TextNode: u'" rel="stylesheet">\n\t\t\n\n\t'>,
     <django.templatetags.static.StaticNode object at 0x7fd656f27450>,
     <TextNode: u'" rel="stylesheet">\n\t</he'>,
     <Block Node: body_class. Contents: [<TextNode: u'no-trans '>]>,
     <TextNode: u'">\n        '>,
     <Block Node: body. Contents: [<TextNode: u'        \t\t\n\t\t<!-- scrollT'>, <Block Node: header. Contents: [<TextNode: u'\n\t\t\t<!-- header-container'>, <django.template.defaulttags.URLNode object at 0x7fd657840e50>, <TextNode: u'">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div cla'>, <django.template.defaulttags.URLNode object at 0x7fd656f2aad0>, <TextNode: u'"><img id="logo_img" src='>, <django.templatetags.static.StaticNode object at 0x7fd6579a3dd0>, <TextNode: u'?v=1.0" alt="The Project"'>, <Variable Node: LANGUAGE_CODE>, <TextNode: u'">\n\t\t\t\t\t\t\t\t\t\t<!--blank-->'>, <django.template.defaulttags.URLNode object at 0x7fd656e53550>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f672d0>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t'>, <django.template.defaulttags.URLNode object at 0x7fd656f67e50>, <TextNode: u'#about">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f27190>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t'>, <django.template.defaulttags.URLNode object at 0x7fd656f27c50>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f27710>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ul cl'>, <django.template.defaulttags.URLNode object at 0x7fd656f274d0>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f27dd0>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>'>, <django.template.defaulttags.URLNode object at 0x7fd656f27950>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dce610>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>'>, <django.template.defaulttags.URLNode object at 0x7fd656dcee50>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dce310>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>'>, <django.template.defaulttags.URLNode object at 0x7fd656dcefd0>, <TextNode: u'#contact">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dce790>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t'>, <django.template.defaulttags.URLNode object at 0x7fd656dce750>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dcea50>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t'>, <django.template.defaulttags.URLNode object at 0x7fd656dce510>, <TextNode: u'">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div '>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dced10>, <TextNode: u'</li>\n\t\t\t\t\t\t\t\t\t\t<li><i cl'>, <django.template.defaulttags.URLNode object at 0x7fd656dced50>, <TextNode: u'" method="post">'>, <django.template.defaulttags.CsrfTokenNode object at 0x7fd656dcee10>, <TextNode: u'\n\t\t\t\t\t\t\t\t\t\t<input name="n'>, <Variable Node: redirect_to>, <TextNode: u'" />\n\t\t\t\t\t\t\t\t\t\t<div class'>]>, <TextNode: u... <trimmed 5442 bytes string>
  • /root/django_projects/venv/lib/python2.7/site-packages/django/template/base.py in render_annotated
    1.         """
    2.         Render the node. If debug is True and an exception occurs during
    3.         rendering, the exception is annotated with contextual line information
    4.         where it occurred in the template. For internal usage this method is
    5.         preferred over using the render method directly.
    6.         """
    7.         try:
    1.             return self.render(context)
      ...
    1.         except Exception as e:
    2.             if context.template.engine.debug and not hasattr(e, 'template_debug'):
    3.                 e.template_debug = context.render_context.template.get_exception_info(e, self.token)
    4.             raise
    5.     def __iter__(self):
    Variable Value
    context
    Error in formatting: OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
    e
    OperationalError(2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
    self
    <Block Node: body. Contents: [<TextNode: u'        \t\t\n\t\t<!-- scrollT'>, <Block Node: header. Contents: [<TextNode: u'\n\t\t\t<!-- header-container'>, <django.template.defaulttags.URLNode object at 0x7fd657840e50>, <TextNode: u'">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div cla'>, <django.template.defaulttags.URLNode object at 0x7fd656f2aad0>, <TextNode: u'"><img id="logo_img" src='>, <django.templatetags.static.StaticNode object at 0x7fd6579a3dd0>, <TextNode: u'?v=1.0" alt="The Project"'>, <Variable Node: LANGUAGE_CODE>, <TextNode: u'">\n\t\t\t\t\t\t\t\t\t\t<!--blank-->'>, <django.template.defaulttags.URLNode object at 0x7fd656e53550>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f672d0>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t'>, <django.template.defaulttags.URLNode object at 0x7fd656f67e50>, <TextNode: u'#about">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f27190>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t'>, <django.template.defaulttags.URLNode object at 0x7fd656f27c50>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f27710>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ul cl'>, <django.template.defaulttags.URLNode object at 0x7fd656f274d0>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f27dd0>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>'>, <django.template.defaulttags.URLNode object at 0x7fd656f27950>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dce610>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>'>, <django.template.defaulttags.URLNode object at 0x7fd656dcee50>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dce310>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>'>, <django.template.defaulttags.URLNode object at 0x7fd656dcefd0>, <TextNode: u'#contact">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dce790>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t'>, <django.template.defaulttags.URLNode object at 0x7fd656dce750>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dcea50>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t'>, <django.template.defaulttags.URLNode object at 0x7fd656dce510>, <TextNode: u'">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div '>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dced10>, <TextNode: u'</li>\n\t\t\t\t\t\t\t\t\t\t<li><i cl'>, <django.template.defaulttags.URLNode object at 0x7fd656dced50>, <TextNode: u'" method="post">'>, <django.template.defaulttags.CsrfTokenNode object at 0x7fd656dcee10>, <TextNode: u'\n\t\t\t\t\t\t\t\t\t\t<input name="n'>, <Variable Node: redirect_to>, <TextNode: u'" />\n\t\t\t\t\t\t\t\t\t\t<div class'>]>, <TextNode: u'\n\t\t\t\n\t\t\t'>, <Block Node: breadcrumb. Contents: [<TextNode: u'\n\t\t\t<!-- breadcrumb start'>, <django.template.defaulttags.URLNode object at 0x7fd656d28050>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656d28890>, <TextNode: u'</a></li>\n\t\t\t\t\t\t'>, <Block Node: custom_breadcrumb. Contents: [<TextNode: u'\n\t\t\t\t\t\t<li class="active"'>, <Block Node: breadcrumb_txt. Contents: []>, <TextNode: u'</li>\n\t\t\t\t\t\t'>]>, <TextNode: u'\n\t\t\t\t\t</ol>\n\t\t\t\t</div>\n\t\t'>]>, <TextNode: u'\n\n\n\t\t\t<!-- main-container'>, <Block Node: content_class. Contents: []>, <TextNode: u'" style="'>, <Block Node: content_style. Contents: []>, <TextNode: u'">\n\t\t\t\t<div class="contai'>, <Block Node: content. Contents: [<TextNode: u'\n\t\t\t\t\t'>]>, <TextNode: u'\n\t\t\t\t</div>\n\t\t\t</section>'>, <django.template.defaulttags.URLNode object at 0x7fd656d28410>, <TextNode: u'">YIMEI</a>. All Rights R'>]>
  • /root/django_projects/venv/lib/python2.7/site-packages/django/template/loader_tags.py in render
    1.                 push = block = block_context.pop(self.name)
    2.                 if block is None:
    3.                     block = self
    4.                 # Create new block so we can store context without thread-safety issues.
    5.                 block = type(self)(block.name, block.nodelist)
    6.                 block.context = context
    7.                 context['block'] = block
    1.                 result = block.nodelist.render(context)
      ...
    1.                 if push is not None:
    2.                     block_context.push(self.name, push)
    3.         return result
    4.     def super(self):
    5.         if not hasattr(self, 'context'):
    Variable Value
    block
    <Block Node: body. Contents: [<TextNode: u'        \t\t\n\t\t<!-- scrollT'>, <Block Node: header. Contents: [<TextNode: u'\n\t\t\t<!-- header-container'>, <django.template.defaulttags.URLNode object at 0x7fd657840e50>, <TextNode: u'">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div cla'>, <django.template.defaulttags.URLNode object at 0x7fd656f2aad0>, <TextNode: u'"><img id="logo_img" src='>, <django.templatetags.static.StaticNode object at 0x7fd6579a3dd0>, <TextNode: u'?v=1.0" alt="The Project"'>, <Variable Node: LANGUAGE_CODE>, <TextNode: u'">\n\t\t\t\t\t\t\t\t\t\t<!--blank-->'>, <django.template.defaulttags.URLNode object at 0x7fd656e53550>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f672d0>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t'>, <django.template.defaulttags.URLNode object at 0x7fd656f67e50>, <TextNode: u'#about">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f27190>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t'>, <django.template.defaulttags.URLNode object at 0x7fd656f27c50>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f27710>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ul cl'>, <django.template.defaulttags.URLNode object at 0x7fd656f274d0>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f27dd0>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>'>, <django.template.defaulttags.URLNode object at 0x7fd656f27950>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dce610>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>'>, <django.template.defaulttags.URLNode object at 0x7fd656dcee50>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dce310>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>'>, <django.template.defaulttags.URLNode object at 0x7fd656dcefd0>, <TextNode: u'#contact">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dce790>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t'>, <django.template.defaulttags.URLNode object at 0x7fd656dce750>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dcea50>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t'>, <django.template.defaulttags.URLNode object at 0x7fd656dce510>, <TextNode: u'">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div '>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dced10>, <TextNode: u'</li>\n\t\t\t\t\t\t\t\t\t\t<li><i cl'>, <django.template.defaulttags.URLNode object at 0x7fd656dced50>, <TextNode: u'" method="post">'>, <django.template.defaulttags.CsrfTokenNode object at 0x7fd656dcee10>, <TextNode: u'\n\t\t\t\t\t\t\t\t\t\t<input name="n'>, <Variable Node: redirect_to>, <TextNode: u'" />\n\t\t\t\t\t\t\t\t\t\t<div class'>]>, <TextNode: u'\n\t\t\t\n\t\t\t'>, <Block Node: breadcrumb. Contents: [<TextNode: u'\n\t\t\t<!-- breadcrumb start'>, <django.template.defaulttags.URLNode object at 0x7fd656d28050>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656d28890>, <TextNode: u'</a></li>\n\t\t\t\t\t\t'>, <Block Node: custom_breadcrumb. Contents: [<TextNode: u'\n\t\t\t\t\t\t<li class="active"'>, <Block Node: breadcrumb_txt. Contents: []>, <TextNode: u'</li>\n\t\t\t\t\t\t'>]>, <TextNode: u'\n\t\t\t\t\t</ol>\n\t\t\t\t</div>\n\t\t'>]>, <TextNode: u'\n\n\n\t\t\t<!-- main-container'>, <Block Node: content_class. Contents: []>, <TextNode: u'" style="'>, <Block Node: content_style. Contents: []>, <TextNode: u'">\n\t\t\t\t<div class="contai'>, <Block Node: content. Contents: [<TextNode: u'\n\t\t\t\t\t'>]>, <TextNode: u'\n\t\t\t\t</div>\n\t\t\t</section>'>, <django.template.defaulttags.URLNode object at 0x7fd656d28410>, <TextNode: u'">YIMEI</a>. All Rights R'>]>
    block_context
    <django.template.loader_tags.BlockContext object at 0x7fd656f26850>
    context
    Error in formatting: OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
    push
    <Block Node: body. Contents: [<TextNode: u'        \t\t\n\t\t<!-- scrollT'>, <Block Node: header. Contents: [<TextNode: u'\n\t\t\t<!-- header-container'>, <django.template.defaulttags.URLNode object at 0x7fd657840e50>, <TextNode: u'">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div cla'>, <django.template.defaulttags.URLNode object at 0x7fd656f2aad0>, <TextNode: u'"><img id="logo_img" src='>, <django.templatetags.static.StaticNode object at 0x7fd6579a3dd0>, <TextNode: u'?v=1.0" alt="The Project"'>, <Variable Node: LANGUAGE_CODE>, <TextNode: u'">\n\t\t\t\t\t\t\t\t\t\t<!--blank-->'>, <django.template.defaulttags.URLNode object at 0x7fd656e53550>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f672d0>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t'>, <django.template.defaulttags.URLNode object at 0x7fd656f67e50>, <TextNode: u'#about">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f27190>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t'>, <django.template.defaulttags.URLNode object at 0x7fd656f27c50>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f27710>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ul cl'>, <django.template.defaulttags.URLNode object at 0x7fd656f274d0>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f27dd0>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>'>, <django.template.defaulttags.URLNode object at 0x7fd656f27950>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dce610>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>'>, <django.template.defaulttags.URLNode object at 0x7fd656dcee50>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dce310>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>'>, <django.template.defaulttags.URLNode object at 0x7fd656dcefd0>, <TextNode: u'#contact">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dce790>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t'>, <django.template.defaulttags.URLNode object at 0x7fd656dce750>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dcea50>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t'>, <django.template.defaulttags.URLNode object at 0x7fd656dce510>, <TextNode: u'">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div '>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dced10>, <TextNode: u'</li>\n\t\t\t\t\t\t\t\t\t\t<li><i cl'>, <django.template.defaulttags.URLNode object at 0x7fd656dced50>, <TextNode: u'" method="post">'>, <django.template.defaulttags.CsrfTokenNode object at 0x7fd656dcee10>, <TextNode: u'\n\t\t\t\t\t\t\t\t\t\t<input name="n'>, <Variable Node: redirect_to>, <TextNode: u'" />\n\t\t\t\t\t\t\t\t\t\t<div class'>]>, <TextNode: u'\n\t\t\t\n\t\t\t'>, <Block Node: breadcrumb. Contents: [<TextNode: u'\n\t\t\t<!-- breadcrumb start'>, <django.template.defaulttags.URLNode object at 0x7fd656d28050>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656d28890>, <TextNode: u'</a></li>\n\t\t\t\t\t\t'>, <Block Node: custom_breadcrumb. Contents: [<TextNode: u'\n\t\t\t\t\t\t<li class="active"'>, <Block Node: breadcrumb_txt. Contents: []>, <TextNode: u'</li>\n\t\t\t\t\t\t'>]>, <TextNode: u'\n\t\t\t\t\t</ol>\n\t\t\t\t</div>\n\t\t'>]>, <TextNode: u'\n\n\n\t\t\t<!-- main-container'>, <Block Node: content_class. Contents: []>, <TextNode: u'" style="'>, <Block Node: content_style. Contents: []>, <TextNode: u'">\n\t\t\t\t<div class="contai'>, <Block Node: content. Contents: [<TextNode: u'\n\t\t\t\t\t'>]>, <TextNode: u'\n\t\t\t\t</div>\n\t\t\t</section>'>, <django.template.defaulttags.URLNode object at 0x7fd656d28410>, <TextNode: u'">YIMEI</a>. All Rights R'>]>
    self
    <Block Node: body. Contents: [<TextNode: u'        \t\t\n\t\t<!-- scrollT'>, <Block Node: header. Contents: [<TextNode: u'\n\t\t\t<!-- header-container'>, <django.template.defaulttags.URLNode object at 0x7fd657840e50>, <TextNode: u'">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div cla'>, <django.template.defaulttags.URLNode object at 0x7fd656f2aad0>, <TextNode: u'"><img id="logo_img" src='>, <django.templatetags.static.StaticNode object at 0x7fd6579a3dd0>, <TextNode: u'?v=1.0" alt="The Project"'>, <Variable Node: LANGUAGE_CODE>, <TextNode: u'">\n\t\t\t\t\t\t\t\t\t\t<!--blank-->'>, <django.template.defaulttags.URLNode object at 0x7fd656e53550>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f672d0>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t'>, <django.template.defaulttags.URLNode object at 0x7fd656f67e50>, <TextNode: u'#about">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f27190>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t'>, <django.template.defaulttags.URLNode object at 0x7fd656f27c50>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f27710>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ul cl'>, <django.template.defaulttags.URLNode object at 0x7fd656f274d0>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f27dd0>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>'>, <django.template.defaulttags.URLNode object at 0x7fd656f27950>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dce610>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>'>, <django.template.defaulttags.URLNode object at 0x7fd656dcee50>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dce310>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>'>, <django.template.defaulttags.URLNode object at 0x7fd656dcefd0>, <TextNode: u'#contact">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dce790>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t'>, <django.template.defaulttags.URLNode object at 0x7fd656dce750>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dcea50>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t'>, <django.template.defaulttags.URLNode object at 0x7fd656dce510>, <TextNode: u'">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div '>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dced10>, <TextNode: u'</li>\n\t\t\t\t\t\t\t\t\t\t<li><i cl'>, <django.template.defaulttags.URLNode object at 0x7fd656dced50>, <TextNode: u'" method="post">'>, <django.template.defaulttags.CsrfTokenNode object at 0x7fd656dcee10>, <TextNode: u'\n\t\t\t\t\t\t\t\t\t\t<input name="n'>, <Variable Node: redirect_to>, <TextNode: u'" />\n\t\t\t\t\t\t\t\t\t\t<div class'>]>, <TextNode: u'\n\t\t\t\n\t\t\t'>, <Block Node: breadcrumb. Contents: [<TextNode: u'\n\t\t\t<!-- breadcrumb start'>, <django.template.defaulttags.URLNode object at 0x7fd656d28050>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656d28890>, <TextNode: u'</a></li>\n\t\t\t\t\t\t'>, <Block Node: custom_breadcrumb. Contents: [<TextNode: u'\n\t\t\t\t\t\t<li class="active"'>, <Block Node: breadcrumb_txt. Contents: []>, <TextNode: u'</li>\n\t\t\t\t\t\t'>]>, <TextNode: u'\n\t\t\t\t\t</ol>\n\t\t\t\t</div>\n\t\t'>]>, <TextNode: u'\n\n\n\t\t\t<!-- main-container'>, <Block Node: content_class. Contents: []>, <TextNode: u'" style="'>, <Block Node: content_style. Contents: []>, <TextNode: u'">\n\t\t\t\t<div class="contai'>, <Block Node: content. Contents: [<TextNode: u'\n\t\t\t\t\t'>]>, <TextNode: u'\n\t\t\t\t</div>\n\t\t\t</section>'>, <django.template.defaulttags.URLNode object at 0x7fd656d28410>, <TextNode: u'">YIMEI</a>. All Rights R'>]>
  • /root/django_projects/venv/lib/python2.7/site-packages/django/template/base.py in render
    1.     # extend_nodelist().
    2.     contains_nontext = False
    3.     def render(self, context):
    4.         bits = []
    5.         for node in self:
    6.             if isinstance(node, Node):
    1.                 bit = node.render_annotated(context)
      ...
    1.             else:
    2.                 bit = node
    3.             bits.append(force_text(bit))
    4.         return mark_safe(''.join(bits))
    5.     def get_nodes_by_type(self, nodetype):
    Variable Value
    bit
    u'">\n\t\t\t\t<div class="container">\n\t\t\t\t\t'
    bits
    [u'        \t\t\n\t\t<!-- scrollToTop -->\n\t\t<!-- ================ -->\n\t\t<div class="scrollToTop circle"><i class="icon-up-open-big"></i></div>\n\t\t\n\t\t<!-- page wrapper start -->\n\t\t<!-- ================ -->\n\t\t<div class="page-wrapper">\n\t\t\n\t\t\t',
     u'\n\t\t\t<!-- header-container start -->\n\t\t\t<div class="header-container">\n\t\t\t\t<!-- header start -->\n\t\t\t\t<!-- classes:  -->\n\t\t\t\t<!-- "fixed": enables fixed navigation mode (sticky menu) e.g. class="header fixed clearfix" -->\n\t\t\t\t<!-- "dark": dark version of header e.g. class="header dark clearfix" -->\n\t\t\t\t<!-- "full-width": mandatory class for the full-width menu layout -->\n\t\t\t\t<!-- "centered": mandatory class for the centered logo layout -->\n\t\t\t\t<!-- ================ --> \n\t\t\t\t<header class="header  fixed    clearfix">\t\t\t\t\n\t\t\t\t\t<div class="container">\n\t\t\t\t\t\t<div class="row">\n\t\t\t\t\t\t\t<div class="col-md-3 ">\n\t\t\t\t\t\t\t\t<!-- header-first start -->\n\t\t\t\t\t\t\t\t<!-- ================ -->\n\t\t\t\t\t\t\t\t<div class="header-first clearfix">\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t<!-- header dropdown buttons -->\n\t\t\t\t\t\t\t\t\t<div class="header-dropdown-buttons visible-xs">\n\t\t\t\t\t\t\t\t\t\t<div class="btn-group dropdown">\n\t\t\t\t\t\t\t\t\t\t\t<button type="button" class="btn dropdown-toggle" data-toggle="dropdown"><i class="icon-search"></i></button>\n\t\t\t\t\t\t\t\t\t\t\t<ul class="dropdown-menu dropdown-menu-right dropdown-animation">\n\t\t\t\t\t\t\t\t\t\t\t\t<li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<form role="search" class="search-box margin-clear" action="/search/">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="form-group has-feedback">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="kw" class="form-control" placeholder="Search">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<i class="icon-search form-control-feedback"></i>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<!-- header dropdown buttons end-->\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t<!-- logo -->\n\t\t\t\t\t\t\t\t\t<div id="logo-img" class="logo">\n\t\t\t\t\t\t\t\t\t\t<a href="&rvpu;/&rvpu;&hu;μjnh" id="logo_img" src="/static/front/images/logo.png?v=1.0" alt="The Project"></a>\n\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\t<!-- name-and-slogan -->\n\t\t\t\t\t\t\t\t\t<div class="site-slogan zh-hans">\n\t\t\t\t\t\t\t\t\t\t<!--blank-->\n\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<!-- header-first end -->\n\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="col-md-9">\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t<!-- header-second start -->\n\t\t\t\t\t\t\t\t<!-- ================ -->\n\t\t\t\t\t\t\t\t<div class="header-second clearfix">\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<!-- main-navigation start -->\n\t\t\t\t\t\t\t\t<!-- classes: -->\n\t\t\t\t\t\t\t\t<!-- "onclick": Makes the dropdowns open on click, this the default bootstrap behavior e.g. class="main-navigation onclick" -->\n\t\t\t\t\t\t\t\t<!-- "animated": Enables animations on dropdowns opening e.g. class="main-navigation animated" -->\n\t\t\t\t\t\t\t\t<!-- "with-dropdown-buttons": Mandatory class that adds extra space, to the main navigation, for the search and cart dropdowns -->\n\t\t\t\t\t\t\t\t<!-- ================ -->\n\t\t\t\t\t\t\t\t<div class="main-navigation  animated with-dropdown-buttons">\n\n\t\t\t\t\t\t\t\t\t<!-- navbar start -->\n\t\t\t\t\t\t\t\t\t<!-- ================ -->\n\t\t\t\t\t\t\t\t\t<nav class="navbar navbar-default" role="navigation">\n\t\t\t\t\t\t\t\t\t\t<div class="container-fluid">\n\n\t\t\t\t\t\t\t\t\t\t\t<!-- Toggle get grouped for better mobile display -->\n\t\t\t\t\t\t\t\t\t\t\t<div class="navbar-header">\n\t\t\t\t\t\t\t\t\t\t\t\t<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-1">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="sr-only">Toggle navigation</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="icon-bar"></span>\n\t\t\t\t\t\t\t\t\t\t\t\... <trimmed 12056 bytes string>
    context
    Error in formatting: OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
    node
    <Block Node: content. Contents: [<TextNode: u'\n\t\t\t\t\t'>]>
    self
    [<TextNode: u'        \t\t\n\t\t<!-- scrollT'>,
     <Block Node: header. Contents: [<TextNode: u'\n\t\t\t<!-- header-container'>, <django.template.defaulttags.URLNode object at 0x7fd657840e50>, <TextNode: u'">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div cla'>, <django.template.defaulttags.URLNode object at 0x7fd656f2aad0>, <TextNode: u'"><img id="logo_img" src='>, <django.templatetags.static.StaticNode object at 0x7fd6579a3dd0>, <TextNode: u'?v=1.0" alt="The Project"'>, <Variable Node: LANGUAGE_CODE>, <TextNode: u'">\n\t\t\t\t\t\t\t\t\t\t<!--blank-->'>, <django.template.defaulttags.URLNode object at 0x7fd656e53550>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f672d0>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t'>, <django.template.defaulttags.URLNode object at 0x7fd656f67e50>, <TextNode: u'#about">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f27190>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t'>, <django.template.defaulttags.URLNode object at 0x7fd656f27c50>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f27710>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<ul cl'>, <django.template.defaulttags.URLNode object at 0x7fd656f274d0>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f27dd0>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>'>, <django.template.defaulttags.URLNode object at 0x7fd656f27950>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dce610>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>'>, <django.template.defaulttags.URLNode object at 0x7fd656dcee50>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dce310>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</li>'>, <django.template.defaulttags.URLNode object at 0x7fd656dcefd0>, <TextNode: u'#contact">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dce790>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t'>, <django.template.defaulttags.URLNode object at 0x7fd656dce750>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dcea50>, <TextNode: u'</a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</li>\n\t'>, <django.template.defaulttags.URLNode object at 0x7fd656dce510>, <TextNode: u'">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div '>, <django.templatetags.i18n.TranslateNode object at 0x7fd656dced10>, <TextNode: u'</li>\n\t\t\t\t\t\t\t\t\t\t<li><i cl'>, <django.template.defaulttags.URLNode object at 0x7fd656dced50>, <TextNode: u'" method="post">'>, <django.template.defaulttags.CsrfTokenNode object at 0x7fd656dcee10>, <TextNode: u'\n\t\t\t\t\t\t\t\t\t\t<input name="n'>, <Variable Node: redirect_to>, <TextNode: u'" />\n\t\t\t\t\t\t\t\t\t\t<div class'>]>,
     <TextNode: u'\n\t\t\t\n\t\t\t'>,
     <Block Node: breadcrumb. Contents: [<TextNode: u'\n\t\t\t<!-- breadcrumb start'>, <django.template.defaulttags.URLNode object at 0x7fd656d28050>, <TextNode: u'">'>, <django.templatetags.i18n.TranslateNode object at 0x7fd656d28890>, <TextNode: u'</a></li>\n\t\t\t\t\t\t'>, <Block Node: custom_breadcrumb. Contents: [<TextNode: u'\n\t\t\t\t\t\t<li class="active"'>, <Block Node: breadcrumb_txt. Contents: []>, <TextNode: u'</li>\n\t\t\t\t\t\t'>]>, <TextNode: u'\n\t\t\t\t\t</ol>\n\t\t\t\t</div>\n\t\t'>]>,
     <TextNode: u'\n\n\n\t\t\t<!-- main-container'>,
     <Block Node: content_class. Contents: []>,
     <TextNode: u'" style="'>,
     <Block Node: content_style. Contents: []>,
     <TextNode: u'">\n\t\t\t\t<div class="contai'>,
     <Block Node: content. Contents: [<TextNode: u'\n\t\t\t\t\t'>]>,
     <TextNode: u'\n\t\t\t\t</div>\n\t\t\t</section>'>,
     <django.template.defaulttags.URLNode object at 0x7fd656d28410>,
     <TextNode: u'">YIMEI</a>. All Rights R'>]
  • /root/django_projects/venv/lib/python2.7/site-packages/django/template/base.py in render_annotated
    1.         """
    2.         Render the node. If debug is True and an exception occurs during
    3.         rendering, the exception is annotated with contextual line information
    4.         where it occurred in the template. For internal usage this method is
    5.         preferred over using the render method directly.
    6.         """
    7.         try:
    1.             return self.render(context)
      ...
    1.         except Exception as e:
    2.             if context.template.engine.debug and not hasattr(e, 'template_debug'):
    3.                 e.template_debug = context.render_context.template.get_exception_info(e, self.token)
    4.             raise
    5.     def __iter__(self):
    Variable Value
    context
    Error in formatting: OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
    e
    OperationalError(2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
    self
    <Block Node: content. Contents: [<TextNode: u'\n\t\t\t\t\t'>]>
  • /root/django_projects/venv/lib/python2.7/site-packages/django/template/loader_tags.py in render
    1.                 push = block = block_context.pop(self.name)
    2.                 if block is None:
    3.                     block = self
    4.                 # Create new block so we can store context without thread-safety issues.
    5.                 block = type(self)(block.name, block.nodelist)
    6.                 block.context = context
    7.                 context['block'] = block
    1.                 result = block.nodelist.render(context)
      ...
    1.                 if push is not None:
    2.                     block_context.push(self.name, push)
    3.         return result
    4.     def super(self):
    5.         if not hasattr(self, 'context'):
    Variable Value
    block
    <Block Node: content. Contents: [<TextNode: u'\t\n<div class="row">\n<!-- '>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f67f10>, <TextNode: u'</h1>\n    <div class="sep'>, <For Node: for cat in cats, tail_len: 11>, <TextNode: u'        \n    </div>\n</div'>]>
    block_context
    <django.template.loader_tags.BlockContext object at 0x7fd656f26850>
    context
    Error in formatting: OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
    push
    <Block Node: content. Contents: [<TextNode: u'\t\n<div class="row">\n<!-- '>, <django.templatetags.i18n.TranslateNode object at 0x7fd656f67f10>, <TextNode: u'</h1>\n    <div class="sep'>, <For Node: for cat in cats, tail_len: 11>, <TextNode: u'        \n    </div>\n</div'>]>
    self
    <Block Node: content. Contents: [<TextNode: u'\n\t\t\t\t\t'>]>
  • /root/django_projects/venv/lib/python2.7/site-packages/django/template/base.py in render
    1.     # extend_nodelist().
    2.     contains_nontext = False
    3.     def render(self, context):
    4.         bits = []
    5.         for node in self:
    6.             if isinstance(node, Node):
    1.                 bit = node.render_annotated(context)
      ...
    1.             else:
    2.                 bit = node
    3.             bits.append(force_text(bit))
    4.         return mark_safe(''.join(bits))
    5.     def get_nodes_by_type(self, nodetype):
    Variable Value
    bit
    u'</h1>\n    <div class="separator-2"></div>\n    <!-- page-title end -->\n    <p class="lead"></p>\n\n  \n\n    <div class="isotope-container-fitrows row grid-space-10">\n        '
    bits
    [u'\t\n<div class="row">\n<!-- main start -->\n<!-- ================ -->\n<div class="main col-md-12">\n\n    <!-- page-title start -->\n    <!-- ================ -->\n    <h1 class="page-title">',
     u'\u4ea7\u54c1\u76ee\u5f55',
     u'</h1>\n    <div class="separator-2"></div>\n    <!-- page-title end -->\n    <p class="lead"></p>\n\n  \n\n    <div class="isotope-container-fitrows row grid-space-10">\n        ']
    context
    Error in formatting: OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
    node
    <For Node: for cat in cats, tail_len: 11>
    self
    [<TextNode: u'\t\n<div class="row">\n<!-- '>,
     <django.templatetags.i18n.TranslateNode object at 0x7fd656f67f10>,
     <TextNode: u'</h1>\n    <div class="sep'>,
     <For Node: for cat in cats, tail_len: 11>,
     <TextNode: u'        \n    </div>\n</div'>]
  • /root/django_projects/venv/lib/python2.7/site-packages/django/template/base.py in render_annotated
    1.         """
    2.         Render the node. If debug is True and an exception occurs during
    3.         rendering, the exception is annotated with contextual line information
    4.         where it occurred in the template. For internal usage this method is
    5.         preferred over using the render method directly.
    6.         """
    7.         try:
    1.             return self.render(context)
      ...
    1.         except Exception as e:
    2.             if context.template.engine.debug and not hasattr(e, 'template_debug'):
    3.                 e.template_debug = context.render_context.template.get_exception_info(e, self.token)
    4.             raise
    5.     def __iter__(self):
    Variable Value
    context
    Error in formatting: OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
    e
    OperationalError(2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
    self
    <For Node: for cat in cats, tail_len: 11>
  • /root/django_projects/venv/lib/python2.7/site-packages/django/template/defaulttags.py in render
    1.                 values = self.sequence.resolve(context, True)
    2.             except VariableDoesNotExist:
    3.                 values = []
    4.             if values is None:
    5.                 values = []
    6.             if not hasattr(values, '__len__'):
    7.                 values = list(values)
    1.             len_values = len(values)
      ...
    1.             if len_values < 1:
    2.                 return self.nodelist_empty.render(context)
    3.             nodelist = []
    4.             if self.is_reversed:
    5.                 values = reversed(values)
    6.             num_loopvars = len(self.loopvars)
    Variable Value
    context
    Error in formatting: OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
    parentloop
    {}
    self
    <For Node: for cat in cats, tail_len: 11>
    values
    Error in formatting: OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
  • /root/django_projects/venv/lib/python2.7/site-packages/django/db/models/query.py in __len__
    1.     def __repr__(self):
    2.         data = list(self[:REPR_OUTPUT_SIZE + 1])
    3.         if len(data) > REPR_OUTPUT_SIZE:
    4.             data[-1] = "...(remaining elements truncated)..."
    5.         return '<%s %r>' % (self.__class__.__name__, data)
    6.     def __len__(self):
    1.         self._fetch_all()
      ...
    1.         return len(self._result_cache)
    2.     def __iter__(self):
    3.         """
    4.         The queryset iterator protocol uses three nested iterators in the
    5.         default case:
    Variable Value
    self
    Error in formatting: OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
  • /root/django_projects/venv/lib/python2.7/site-packages/django/db/models/query.py in _fetch_all
    1.         clone._fields = self._fields
    2.         clone.__dict__.update(kwargs)
    3.         return clone
    4.     def _fetch_all(self):
    5.         if self._result_cache is None:
    1.             self._result_cache = list(self._iterable_class(self))
      ...
    1.         if self._prefetch_related_lookups and not self._prefetch_done:
    2.             self._prefetch_related_objects()
    3.     def _next_is_sticky(self):
    4.         """
    5.         Indicates that the next filter call and the one following that should
    Variable Value
    self
    Error in formatting: OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
  • /root/django_projects/venv/lib/python2.7/site-packages/django/db/models/query.py in __iter__
    1.     def __iter__(self):
    2.         queryset = self.queryset
    3.         db = queryset.db
    4.         compiler = queryset.query.get_compiler(using=db)
    5.         # Execute the query. This will also fill compiler.select, klass_info,
    6.         # and annotations.
    1.         results = compiler.execute_sql(chunked_fetch=self.chunked_fetch)
      ...
    1.         select, klass_info, annotation_col_map = (compiler.select, compiler.klass_info,
    2.                                                   compiler.annotation_col_map)
    3.         model_cls = klass_info['model']
    4.         select_fields = klass_info['select_fields']
    5.         model_fields_start, model_fields_end = select_fields[0], select_fields[-1] + 1
    6.         init_list = [f[0].target.attname
    Variable Value
    compiler
    <django.db.backends.mysql.compiler.SQLCompiler object at 0x7fd656d28610>
    db
    'default'
    queryset
    Error in formatting: OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
    self
    <django.db.models.query.ModelIterable object at 0x7fd656d28f50>
  • /root/django_projects/venv/lib/python2.7/site-packages/django/db/models/sql/compiler.py in execute_sql
    1.             if result_type == MULTI:
    2.                 return iter([])
    3.             else:
    4.                 return
    5.         if chunked_fetch:
    6.             cursor = self.connection.chunked_cursor()
    7.         else:
    1.             cursor = self.connection.cursor()
      ...
    1.         try:
    2.             cursor.execute(sql, params)
    3.         except Exception as original_exception:
    4.             try:
    5.                 # Might fail for server-side cursors (e.g. connection closed)
    6.                 cursor.close()
    Variable Value
    chunked_fetch
    False
    params
    ()
    result_type
    'multi'
    self
    <django.db.backends.mysql.compiler.SQLCompiler object at 0x7fd656d28610>
    sql
    u'SELECT `front_catelog`.`id`, `front_catelog`.`parent_id`, `front_catelog`.`code`, `front_catelog`.`name`, `front_catelog`.`name_zh`, `front_catelog`.`name_en`, `front_catelog`.`image`, `front_catelog`.`sort_order` FROM `front_catelog` WHERE `front_catelog`.`parent_id` IS NULL ORDER BY `front_catelog`.`sort_order` ASC'
  • /root/django_projects/venv/lib/python2.7/site-packages/django/db/backends/base/base.py in cursor
    1.     # ##### Generic wrappers for PEP-249 connection methods #####
    2.     def cursor(self):
    3.         """
    4.         Creates a cursor, opening a connection if necessary.
    5.         """
    1.         return self._cursor()
      ...
    1.     def commit(self):
    2.         """
    3.         Commits a transaction and resets the dirty flag.
    4.         """
    5.         self.validate_thread_sharing()
    Variable Value
    self
    <django.db.backends.mysql.base.DatabaseWrapper object at 0x7fd657a5a750>
  • /root/django_projects/venv/lib/python2.7/site-packages/django/db/backends/base/base.py in _cursor
    1.         if self.queries_logged:
    2.             wrapped_cursor = self.make_debug_cursor(cursor)
    3.         else:
    4.             wrapped_cursor = self.make_cursor(cursor)
    5.         return wrapped_cursor
    6.     def _cursor(self, name=None):
    1.         self.ensure_connection()
      ...
    1.         with self.wrap_database_errors:
    2.             return self._prepare_cursor(self.create_cursor(name))
    3.     def _commit(self):
    4.         if self.connection is not None:
    5.             with self.wrap_database_errors:
    Variable Value
    name
    None
    self
    <django.db.backends.mysql.base.DatabaseWrapper object at 0x7fd657a5a750>
  • /root/django_projects/venv/lib/python2.7/site-packages/django/db/backends/base/base.py in ensure_connection
    1.     def ensure_connection(self):
    2.         """
    3.         Guarantees that a connection to the database is established.
    4.         """
    5.         if self.connection is None:
    6.             with self.wrap_database_errors:
    1.                 self.connect()
      ...
    1.     # ##### Backend-specific wrappers for PEP-249 connection methods #####
    2.     def _prepare_cursor(self, cursor):
    3.         """
    4.         Validate the connection is usable and perform database cursor wrapping.
    Variable Value
    self
    <django.db.backends.mysql.base.DatabaseWrapper object at 0x7fd657a5a750>
  • /root/django_projects/venv/lib/python2.7/site-packages/django/db/utils.py in __exit__
    1.                 dj_exc_value.__cause__ = exc_value
    2.                 if not hasattr(exc_value, '__traceback__'):
    3.                     exc_value.__traceback__ = traceback
    4.                 # Only set the 'errors_occurred' flag for errors that may make
    5.                 # the connection unusable.
    6.                 if dj_exc_type not in (DataError, IntegrityError):
    7.                     self.wrapper.errors_occurred = True
    1.                 six.reraise(dj_exc_type, dj_exc_value, traceback)
      ...
    1.     def __call__(self, func):
    2.         # Note that we are intentionally not using @wraps here for performance
    3.         # reasons. Refs #21109.
    4.         def inner(*args, **kwargs):
    5.             with self:
    Variable Value
    db_exc_type
    <class '_mysql_exceptions.OperationalError'>
    dj_exc_type
    <class 'django.db.utils.OperationalError'>
    dj_exc_value
    OperationalError(2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
    exc_type
    <class '_mysql_exceptions.OperationalError'>
    exc_value
    OperationalError(2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)")
    self
    <django.db.utils.DatabaseErrorWrapper object at 0x7fd657850b10>
    traceback
    <traceback object at 0x7fd656d09758>
  • /root/django_projects/venv/lib/python2.7/site-packages/django/db/backends/base/base.py in ensure_connection
    1.     def ensure_connection(self):
    2.         """
    3.         Guarantees that a connection to the database is established.
    4.         """
    5.         if self.connection is None:
    6.             with self.wrap_database_errors:
    1.                 self.connect()
      ...
    1.     # ##### Backend-specific wrappers for PEP-249 connection methods #####
    2.     def _prepare_cursor(self, cursor):
    3.         """
    4.         Validate the connection is usable and perform database cursor wrapping.
    Variable Value
    self
    <django.db.backends.mysql.base.DatabaseWrapper object at 0x7fd657a5a750>
  • /root/django_projects/venv/lib/python2.7/site-packages/django/db/backends/base/base.py in connect
    1.         # Reset parameters defining when to close the connection
    2.         max_age = self.settings_dict['CONN_MAX_AGE']
    3.         self.close_at = None if max_age is None else time.time() + max_age
    4.         self.closed_in_transaction = False
    5.         self.errors_occurred = False
    6.         # Establish the connection
    7.         conn_params = self.get_connection_params()
    1.         self.connection = self.get_new_connection(conn_params)
      ...
    1.         self.set_autocommit(self.settings_dict['AUTOCOMMIT'])
    2.         self.init_connection_state()
    3.         connection_created.send(sender=self.__class__, connection=self)
    4.         self.run_on_commit = []
    Variable Value
    conn_params
    {u'charset': u'utf8',
     u'client_flag': 2,
     u'conv': {0: <function typecast_decimal at 0x7fd659abfcf8>,
               1: <type 'int'>,
               2: <type 'int'>,
               3: <type 'long'>,
               4: <type 'float'>,
               5: <type 'float'>,
               7: <function mysql_timestamp_converter at 0x7fd6586c00c8>,
               8: <type 'long'>,
               9: <type 'int'>,
               10: <function Date_or_None at 0x7fd6586b5ed8>,
               11: <function typecast_time at 0x7fd659abfc08>,
               12: <function DateTime_or_None at 0x7fd6586b5d70>,
               13: <type 'int'>,
               15: [(128, <type 'str'>)],
               246: <function typecast_decimal at 0x7fd659abfcf8>,
               248: <function Str2Set at 0x7fd6586c06e0>,
               249: [(128, <type 'str'>)],
               250: [(128, <type 'str'>)],
               251: [(128, <type 'str'>)],
               252: [(128, <type 'str'>)],
               253: [(128, <type 'str'>)],
               254: [(128, <type 'str'>)],
               <type 'array.array'>: <function array2Str at 0x7fd6586c0aa0>,
               <type 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7fd6586c0050>,
               <type 'datetime.datetime'>: <function adapt_datetime_warn_on_aware_datetime at 0x7fd657a538c0>,
               <type 'datetime.date'>: <function Thing2Literal at 0x7fd6586c09b0>,
               <type 'bool'>: <function Bool2Str at 0x7fd6586c05f0>,
               <type 'float'>: <function Float2Str at 0x7fd6586c08c0>,
               <type 'int'>: <function Thing2Str at 0x7fd6586c07d0>,
               <type 'list'>: <function quote_tuple at 0x7fd6586c0b18>,
               <type 'long'>: <function Thing2Str at 0x7fd6586c07d0>,
               <type 'dict'>: <built-in function escape_dict>,
               <type 'NoneType'>: <function None2NULL at 0x7fd6586c0938>,
               <type 'set'>: <function Set2Str at 0x7fd6586c0758>,
               <type 'str'>: <function Thing2Literal at 0x7fd6586c09b0>,
               <type 'tuple'>: <function quote_tuple at 0x7fd6586c0b18>,
               <type 'unicode'>: <function Unicode2Str at 0x7fd6586c0848>},
     u'db': 'yimei_site',
     u'host': 'localhost',
     u'passwd': '123456',
     u'use_unicode': True,
     u'user': 'root'}
    max_age
    0
    self
    <django.db.backends.mysql.base.DatabaseWrapper object at 0x7fd657a5a750>
  • /root/django_projects/venv/lib/python2.7/site-packages/django/db/backends/mysql/base.py in get_new_connection
    1.             # levels will be used, e.g. "set tx_isolation='repeatable-read'".
    2.             isolation_level = isolation_level.replace(' ', '-')
    3.         self.isolation_level = isolation_level
    4.         kwargs.update(options)
    5.         return kwargs
    6.     def get_new_connection(self, conn_params):
    1.         conn = Database.connect(**conn_params)
      ...
    1.         conn.encoders[SafeText] = conn.encoders[six.text_type]
    2.         conn.encoders[SafeBytes] = conn.encoders[bytes]
    3.         return conn
    4.     def init_connection_state(self):
    5.         assignments = []
    Variable Value
    conn_params
    {u'charset': u'utf8',
     u'client_flag': 2,
     u'conv': {0: <function typecast_decimal at 0x7fd659abfcf8>,
               1: <type 'int'>,
               2: <type 'int'>,
               3: <type 'long'>,
               4: <type 'float'>,
               5: <type 'float'>,
               7: <function mysql_timestamp_converter at 0x7fd6586c00c8>,
               8: <type 'long'>,
               9: <type 'int'>,
               10: <function Date_or_None at 0x7fd6586b5ed8>,
               11: <function typecast_time at 0x7fd659abfc08>,
               12: <function DateTime_or_None at 0x7fd6586b5d70>,
               13: <type 'int'>,
               15: [(128, <type 'str'>)],
               246: <function typecast_decimal at 0x7fd659abfcf8>,
               248: <function Str2Set at 0x7fd6586c06e0>,
               249: [(128, <type 'str'>)],
               250: [(128, <type 'str'>)],
               251: [(128, <type 'str'>)],
               252: [(128, <type 'str'>)],
               253: [(128, <type 'str'>)],
               254: [(128, <type 'str'>)],
               <type 'array.array'>: <function array2Str at 0x7fd6586c0aa0>,
               <type 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7fd6586c0050>,
               <type 'datetime.datetime'>: <function adapt_datetime_warn_on_aware_datetime at 0x7fd657a538c0>,
               <type 'datetime.date'>: <function Thing2Literal at 0x7fd6586c09b0>,
               <type 'bool'>: <function Bool2Str at 0x7fd6586c05f0>,
               <type 'float'>: <function Float2Str at 0x7fd6586c08c0>,
               <type 'int'>: <function Thing2Str at 0x7fd6586c07d0>,
               <type 'list'>: <function quote_tuple at 0x7fd6586c0b18>,
               <type 'long'>: <function Thing2Str at 0x7fd6586c07d0>,
               <type 'dict'>: <built-in function escape_dict>,
               <type 'NoneType'>: <function None2NULL at 0x7fd6586c0938>,
               <type 'set'>: <function Set2Str at 0x7fd6586c0758>,
               <type 'str'>: <function Thing2Literal at 0x7fd6586c09b0>,
               <type 'tuple'>: <function quote_tuple at 0x7fd6586c0b18>,
               <type 'unicode'>: <function Unicode2Str at 0x7fd6586c0848>},
     u'db': 'yimei_site',
     u'host': 'localhost',
     u'passwd': '123456',
     u'use_unicode': True,
     u'user': 'root'}
    self
    <django.db.backends.mysql.base.DatabaseWrapper object at 0x7fd657a5a750>
  • /root/django_projects/venv/lib/python2.7/site-packages/MySQLdb/__init__.py in Connect
    1. else:
    2.     def Binary(x):
    3.         return bytes(x)
    4. def Connect(*args, **kwargs):
    5.     """Factory function for connections.Connection."""
    6.     from MySQLdb.connections import Connection
    1.     return Connection(*args, **kwargs)
      ...
    1. connect = Connection = Connect
    2. __all__ = [ 'BINARY', 'Binary', 'Connect', 'Connection', 'DATE',
    3.     'Date', 'Time', 'Timestamp', 'DateFromTicks', 'TimeFromTicks',
    4.     'TimestampFromTicks', 'DataError', 'DatabaseError', 'Error',
    Variable Value
    Connection
    <class 'MySQLdb.connections.Connection'>
    args
    ()
    kwargs
    {u'charset': u'utf8',
     u'client_flag': 2,
     u'conv': {0: <function typecast_decimal at 0x7fd659abfcf8>,
               1: <type 'int'>,
               2: <type 'int'>,
               3: <type 'long'>,
               4: <type 'float'>,
               5: <type 'float'>,
               7: <function mysql_timestamp_converter at 0x7fd6586c00c8>,
               8: <type 'long'>,
               9: <type 'int'>,
               10: <function Date_or_None at 0x7fd6586b5ed8>,
               11: <function typecast_time at 0x7fd659abfc08>,
               12: <function DateTime_or_None at 0x7fd6586b5d70>,
               13: <type 'int'>,
               15: [(128, <type 'str'>)],
               246: <function typecast_decimal at 0x7fd659abfcf8>,
               248: <function Str2Set at 0x7fd6586c06e0>,
               249: [(128, <type 'str'>)],
               250: [(128, <type 'str'>)],
               251: [(128, <type 'str'>)],
               252: [(128, <type 'str'>)],
               253: [(128, <type 'str'>)],
               254: [(128, <type 'str'>)],
               <type 'array.array'>: <function array2Str at 0x7fd6586c0aa0>,
               <type 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7fd6586c0050>,
               <type 'datetime.datetime'>: <function adapt_datetime_warn_on_aware_datetime at 0x7fd657a538c0>,
               <type 'datetime.date'>: <function Thing2Literal at 0x7fd6586c09b0>,
               <type 'bool'>: <function Bool2Str at 0x7fd6586c05f0>,
               <type 'float'>: <function Float2Str at 0x7fd6586c08c0>,
               <type 'int'>: <function Thing2Str at 0x7fd6586c07d0>,
               <type 'list'>: <function quote_tuple at 0x7fd6586c0b18>,
               <type 'long'>: <function Thing2Str at 0x7fd6586c07d0>,
               <type 'dict'>: <built-in function escape_dict>,
               <type 'NoneType'>: <function None2NULL at 0x7fd6586c0938>,
               <type 'set'>: <function Set2Str at 0x7fd6586c0758>,
               <type 'str'>: <function Thing2Literal at 0x7fd6586c09b0>,
               <type 'tuple'>: <function quote_tuple at 0x7fd6586c0b18>,
               <type 'unicode'>: <function Unicode2Str at 0x7fd6586c0848>},
     u'db': 'yimei_site',
     u'host': 'localhost',
     u'passwd': '123456',
     u'use_unicode': True,
     u'user': 'root'}
  • /root/django_projects/venv/lib/python2.7/site-packages/MySQLdb/connections.py in __init__
    1.         kwargs2['client_flag'] = client_flag
    2.         # PEP-249 requires autocommit to be initially off
    3.         autocommit = kwargs2.pop('autocommit', False)
    4.         self.waiter = kwargs2.pop('waiter', None)
    1.         super(Connection, self).__init__(*args, **kwargs2)
      ...
    1.         self.cursorclass = cursorclass
    2.         self.encoders = dict([ (k, v) for k, v in conv.items()
    3.                                if type(k) is not int ])
    4.         self._server_version = tuple([ numeric_part(n) for n in self.get_server_info().split('.')[:2] ])
    Variable Value
    CLIENT
    <module 'MySQLdb.constants.CLIENT' from '/root/django_projects/venv/lib/python2.7/site-packages/MySQLdb/constants/CLIENT.pyc'>
    FIELD_TYPE
    <module 'MySQLdb.constants.FIELD_TYPE' from '/root/django_projects/venv/lib/python2.7/site-packages/MySQLdb/constants/FIELD_TYPE.pyc'>
    args
    ()
    autocommit
    False
    binary_prefix
    False
    charset
    u'utf8'
    client_flag
    196610
    client_version
    (5, 5)
    conv
    {0: <function typecast_decimal at 0x7fd659abfcf8>,
     1: <type 'int'>,
     2: <type 'int'>,
     3: <type 'long'>,
     4: <type 'float'>,
     5: <type 'float'>,
     7: <function mysql_timestamp_converter at 0x7fd6586c00c8>,
     8: <type 'long'>,
     9: <type 'int'>,
     10: <function Date_or_None at 0x7fd6586b5ed8>,
     11: <function typecast_time at 0x7fd659abfc08>,
     12: <function DateTime_or_None at 0x7fd6586b5d70>,
     13: <type 'int'>,
     15: [(128, <type 'str'>)],
     246: <function typecast_decimal at 0x7fd659abfcf8>,
     248: <function Str2Set at 0x7fd6586c06e0>,
     249: [(128, <type 'str'>)],
     250: [(128, <type 'str'>)],
     251: [(128, <type 'str'>)],
     252: [(128, <type 'str'>)],
     253: [(128, <type 'str'>)],
     254: [(128, <type 'str'>)],
     <type 'array.array'>: <function array2Str at 0x7fd6586c0aa0>,
     <type 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7fd6586c0050>,
     <type 'datetime.datetime'>: <function adapt_datetime_warn_on_aware_datetime at 0x7fd657a538c0>,
     <type 'datetime.date'>: <function Thing2Literal at 0x7fd6586c09b0>,
     <type 'bool'>: <function Bool2Str at 0x7fd6586c05f0>,
     <type 'float'>: <function Float2Str at 0x7fd6586c08c0>,
     <type 'int'>: <function Thing2Str at 0x7fd6586c07d0>,
     <type 'list'>: <function quote_tuple at 0x7fd6586c0b18>,
     <type 'long'>: <function Thing2Str at 0x7fd6586c07d0>,
     <type 'dict'>: <built-in function escape_dict>,
     <type 'NoneType'>: <function None2NULL at 0x7fd6586c0938>,
     <type 'set'>: <function Set2Str at 0x7fd6586c0758>,
     <type 'str'>: <function Thing2Literal at 0x7fd6586c09b0>,
     <type 'tuple'>: <function quote_tuple at 0x7fd6586c0b18>,
     <type 'unicode'>: <function Unicode2Str at 0x7fd6586c0848>}
    conv2
    {0: <function typecast_decimal at 0x7fd659abfcf8>,
     1: <type 'int'>,
     2: <type 'int'>,
     3: <type 'long'>,
     4: <type 'float'>,
     5: <type 'float'>,
     7: <function mysql_timestamp_converter at 0x7fd6586c00c8>,
     8: <type 'long'>,
     9: <type 'int'>,
     10: <function Date_or_None at 0x7fd6586b5ed8>,
     11: <function typecast_time at 0x7fd659abfc08>,
     12: <function DateTime_or_None at 0x7fd6586b5d70>,
     13: <type 'int'>,
     15: [(128, <type 'str'>)],
     246: <function typecast_decimal at 0x7fd659abfcf8>,
     248: <function Str2Set at 0x7fd6586c06e0>,
     249: [(128, <type 'str'>)],
     250: [(128, <type 'str'>)],
     251: [(128, <type 'str'>)],
     252: [(128, <type 'str'>)],
     253: [(128, <type 'str'>)],
     254: [(128, <type 'str'>)],
     <type 'array.array'>: <function array2Str at 0x7fd6586c0aa0>,
     <type 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7fd6586c0050>,
     <type 'datetime.datetime'>: <function adapt_datetime_warn_on_aware_datetime at 0x7fd657a538c0>,
     <type 'datetime.date'>: <function Thing2Literal at 0x7fd6586c09b0>,
     <type 'bool'>: <function Bool2Str at 0x7fd6586c05f0>,
     <type 'float'>: <function Float2Str at 0x7fd6586c08c0>,
     <type 'int'>: <function Thing2Str at 0x7fd6586c07d0>,
     <type 'list'>: <function quote_tuple at 0x7fd6586c0b18>,
     <type 'long'>: <function Thing2Str at 0x7fd6586c07d0>,
     <type 'dict'>: <built-in function escape_dict>,
     <type 'NoneType'>: <function None2NULL at 0x7fd6586c0938>,
     <type 'set'>: <function Set2Str at 0x7fd6586c0758>,
     <type 'str'>: <function Thing2Literal at 0x7fd6586c09b0>,
     <type 'tuple'>: <function quote_tuple at 0x7fd6586c0b18>,
     <type 'unicode'>: <function Unicode2Str at 0x7fd6586c0848>}
    conversions
    {0: <class 'decimal.Decimal'>,
     1: <type 'int'>,
     2: <type 'int'>,
     3: <type 'long'>,
     4: <type 'float'>,
     5: <type 'float'>,
     7: <function mysql_timestamp_converter at 0x7fd6586c00c8>,
     8: <type 'long'>,
     9: <type 'int'>,
     10: <function Date_or_None at 0x7fd6586b5ed8>,
     11: <function TimeDelta_or_None at 0x7fd6586b5de8>,
     12: <function DateTime_or_None at 0x7fd6586b5d70>,
     13: <type 'int'>,
     15: [(128, <type 'str'>)],
     246: <class 'decimal.Decimal'>,
     248: <function Str2Set at 0x7fd6586c06e0>,
     249: [(128, <type 'str'>)],
     250: [(128, <type 'str'>)],
     251: [(128, <type 'str'>)],
     252: [(128, <type 'str'>)],
     253: [(128, <type 'str'>)],
     254: [(128, <type 'str'>)],
     <type 'array.array'>: <function array2Str at 0x7fd6586c0aa0>,
     <type 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7fd6586c0050>,
     <type 'datetime.datetime'>: <function DateTime2literal at 0x7fd6586b5f50>,
     <type 'datetime.date'>: <function Thing2Literal at 0x7fd6586c09b0>,
     <type 'bool'>: <function Bool2Str at 0x7fd6586c05f0>,
     <type 'float'>: <function Float2Str at 0x7fd6586c08c0>,
     <type 'int'>: <function Thing2Str at 0x7fd6586c07d0>,
     <type 'list'>: <function quote_tuple at 0x7fd6586c0b18>,
     <type 'long'>: <function Thing2Str at 0x7fd6586c07d0>,
     <type 'dict'>: <built-in function escape_dict>,
     <type 'NoneType'>: <function None2NULL at 0x7fd6586c0938>,
     <type 'set'>: <function Set2Str at 0x7fd6586c0758>,
     <type 'str'>: <function Thing2Literal at 0x7fd6586c09b0>,
     <type 'tuple'>: <function quote_tuple at 0x7fd6586c0b18>,
     <type 'unicode'>: <function Unicode2Str at 0x7fd6586c0848>}
    cursorclass
    <class 'MySQLdb.cursors.Cursor'>
    k
    254
    kwargs
    {u'charset': u'utf8',
     u'client_flag': 2,
     u'conv': {0: <function typecast_decimal at 0x7fd659abfcf8>,
               1: <type 'int'>,
               2: <type 'int'>,
               3: <type 'long'>,
               4: <type 'float'>,
               5: <type 'float'>,
               7: <function mysql_timestamp_converter at 0x7fd6586c00c8>,
               8: <type 'long'>,
               9: <type 'int'>,
               10: <function Date_or_None at 0x7fd6586b5ed8>,
               11: <function typecast_time at 0x7fd659abfc08>,
               12: <function DateTime_or_None at 0x7fd6586b5d70>,
               13: <type 'int'>,
               15: [(128, <type 'str'>)],
               246: <function typecast_decimal at 0x7fd659abfcf8>,
               248: <function Str2Set at 0x7fd6586c06e0>,
               249: [(128, <type 'str'>)],
               250: [(128, <type 'str'>)],
               251: [(128, <type 'str'>)],
               252: [(128, <type 'str'>)],
               253: [(128, <type 'str'>)],
               254: [(128, <type 'str'>)],
               <type 'array.array'>: <function array2Str at 0x7fd6586c0aa0>,
               <type 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7fd6586c0050>,
               <type 'datetime.datetime'>: <function adapt_datetime_warn_on_aware_datetime at 0x7fd657a538c0>,
               <type 'datetime.date'>: <function Thing2Literal at 0x7fd6586c09b0>,
               <type 'bool'>: <function Bool2Str at 0x7fd6586c05f0>,
               <type 'float'>: <function Float2Str at 0x7fd6586c08c0>,
               <type 'int'>: <function Thing2Str at 0x7fd6586c07d0>,
               <type 'list'>: <function quote_tuple at 0x7fd6586c0b18>,
               <type 'long'>: <function Thing2Str at 0x7fd6586c07d0>,
               <type 'dict'>: <built-in function escape_dict>,
               <type 'NoneType'>: <function None2NULL at 0x7fd6586c0938>,
               <type 'set'>: <function Set2Str at 0x7fd6586c0758>,
               <type 'str'>: <function Thing2Literal at 0x7fd6586c09b0>,
               <type 'tuple'>: <function quote_tuple at 0x7fd6586c0b18>,
               <type 'unicode'>: <function Unicode2Str at 0x7fd6586c0848>},
     u'db': 'yimei_site',
     u'host': 'localhost',
     u'passwd': '123456',
     u'use_unicode': True,
     u'user': 'root'}
    kwargs2
    {u'client_flag': 196610,
     u'conv': {0: <function typecast_decimal at 0x7fd659abfcf8>,
               1: <type 'int'>,
               2: <type 'int'>,
               3: <type 'long'>,
               4: <type 'float'>,
               5: <type 'float'>,
               7: <function mysql_timestamp_converter at 0x7fd6586c00c8>,
               8: <type 'long'>,
               9: <type 'int'>,
               10: <function Date_or_None at 0x7fd6586b5ed8>,
               11: <function typecast_time at 0x7fd659abfc08>,
               12: <function DateTime_or_None at 0x7fd6586b5d70>,
               13: <type 'int'>,
               15: [(128, <type 'str'>)],
               246: <function typecast_decimal at 0x7fd659abfcf8>,
               248: <function Str2Set at 0x7fd6586c06e0>,
               249: [(128, <type 'str'>)],
               250: [(128, <type 'str'>)],
               251: [(128, <type 'str'>)],
               252: [(128, <type 'str'>)],
               253: [(128, <type 'str'>)],
               254: [(128, <type 'str'>)],
               <type 'array.array'>: <function array2Str at 0x7fd6586c0aa0>,
               <type 'datetime.timedelta'>: <function DateTimeDelta2literal at 0x7fd6586c0050>,
               <type 'datetime.datetime'>: <function adapt_datetime_warn_on_aware_datetime at 0x7fd657a538c0>,
               <type 'datetime.date'>: <function Thing2Literal at 0x7fd6586c09b0>,
               <type 'bool'>: <function Bool2Str at 0x7fd6586c05f0>,
               <type 'float'>: <function Float2Str at 0x7fd6586c08c0>,
               <type 'int'>: <function Thing2Str at 0x7fd6586c07d0>,
               <type 'list'>: <function quote_tuple at 0x7fd6586c0b18>,
               <type 'long'>: <function Thing2Str at 0x7fd6586c07d0>,
               <type 'dict'>: <built-in function escape_dict>,
               <type 'NoneType'>: <function None2NULL at 0x7fd6586c0938>,
               <type 'set'>: <function Set2Str at 0x7fd6586c0758>,
               <type 'str'>: <function Thing2Literal at 0x7fd6586c09b0>,
               <type 'tuple'>: <function quote_tuple at 0x7fd6586c0b18>,
               <type 'unicode'>: <function Unicode2Str at 0x7fd6586c0848>},
     u'db': 'yimei_site',
     u'host': 'localhost',
     u'passwd': '123456',
     u'user': 'root'}
    n
    '5'
    proxy
    <built-in function proxy>
    self
    <_mysql.connection closed at 2889280>
    sql_mode
    ''
    use_unicode
    True
    v
    [(128, <type 'str'>)]


  • Request information

    USER

    AnonymousUser

    GET

    No GET data

    POST

    No POST data

    FILES

    No FILES data

    No cookie data

    META

    Variable Value
    CONTENT_LENGTH
    ''
    CONTENT_TYPE
    ''
    CSRF_COOKIE
    u'X4fLRRCyj2SEKpzvAcyQ9aQNQU0TXs9DEnMec5g49KvEE0ozg2tgLvD0Mg4DdVyq'
    CSRF_COOKIE_USED
    True
    DOCUMENT_ROOT
    '/usr/share/nginx/html'
    HTTP_ACCEPT
    '*/*'
    HTTP_ACCEPT_ENCODING
    'deflate, gzip'
    HTTP_HOST
    'yimeitex.com'
    HTTP_USER_AGENT
    'Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)'
    PATH_INFO
    u'/catelog/index'
    QUERY_STRING
    ''
    REMOTE_ADDR
    '175.29.93.112'
    REMOTE_PORT
    '20000'
    REQUEST_METHOD
    'GET'
    REQUEST_SCHEME
    'http'
    REQUEST_URI
    '/catelog/index'
    SCRIPT_NAME
    u''
    SERVER_NAME
    'yimeitex.com'
    SERVER_PORT
    '80'
    SERVER_PROTOCOL
    'HTTP/1.1'
    uwsgi.node
    'iZ2317pg0u1Z'
    uwsgi.version
    '2.0.15'
    wsgi.errors
    <open file 'wsgi_errors', mode 'w' at 0x7fd6578fe420>
    wsgi.file_wrapper
    ''
    wsgi.input
    <uwsgi._Input object at 0x7fd6577f6570>
    wsgi.multiprocess
    True
    wsgi.multithread
    False
    wsgi.run_once
    False
    wsgi.url_scheme
    'http'
    wsgi.version
    (1, 0)

    Settings

    Using settings module yimei_site.settings

    Setting Value
    ABSOLUTE_URL_OVERRIDES
    {}
    ADMINS
    []
    ALLOWED_HOSTS
    ['yimeitex.com', 'www.yimeitex.com', 'localhost', '127.0.0.1']
    APPEND_SLASH
    True
    AUTHENTICATION_BACKENDS
    [u'django.contrib.auth.backends.ModelBackend']
    AUTH_PASSWORD_VALIDATORS
    u'********************'
    AUTH_USER_MODEL
    u'auth.User'
    BASE_DIR
    '/root/django_projects/yimei_site'
    CACHES
    {u'default': {u'BACKEND': u'django.core.cache.backends.locmem.LocMemCache'}}
    CACHE_MIDDLEWARE_ALIAS
    u'default'
    CACHE_MIDDLEWARE_KEY_PREFIX
    u'********************'
    CACHE_MIDDLEWARE_SECONDS
    600
    CSRF_COOKIE_AGE
    31449600
    CSRF_COOKIE_DOMAIN
    None
    CSRF_COOKIE_HTTPONLY
    False
    CSRF_COOKIE_NAME
    u'csrftoken'
    CSRF_COOKIE_PATH
    u'/'
    CSRF_COOKIE_SECURE
    False
    CSRF_FAILURE_VIEW
    u'django.views.csrf.csrf_failure'
    CSRF_HEADER_NAME
    u'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.mysql',
                 'HOST': 'localhost',
                 'NAME': 'yimei_site',
                 'OPTIONS': {},
                 'PASSWORD': u'********************',
                 'PORT': '',
                 'TEST': {'CHARSET': None,
                          'COLLATION': None,
                          'MIRROR': None,
                          'NAME': None},
                 'TIME_ZONE': None,
                 'USER': 'root'}}
    DATABASE_ROUTERS
    []
    DATA_UPLOAD_MAX_MEMORY_SIZE
    2621440
    DATA_UPLOAD_MAX_NUMBER_FIELDS
    1000
    DATETIME_FORMAT
    u'N j, Y, P'
    DATETIME_INPUT_FORMATS
    [u'%Y-%m-%d %H:%M:%S',
     u'%Y-%m-%d %H:%M:%S.%f',
     u'%Y-%m-%d %H:%M',
     u'%Y-%m-%d',
     u'%m/%d/%Y %H:%M:%S',
     u'%m/%d/%Y %H:%M:%S.%f',
     u'%m/%d/%Y %H:%M',
     u'%m/%d/%Y',
     u'%m/%d/%y %H:%M:%S',
     u'%m/%d/%y %H:%M:%S.%f',
     u'%m/%d/%y %H:%M',
     u'%m/%d/%y']
    DATE_FORMAT
    u'N j, Y'
    DATE_INPUT_FORMATS
    [u'%Y-%m-%d',
     u'%m/%d/%Y',
     u'%m/%d/%y',
     u'%b %d %Y',
     u'%b %d, %Y',
     u'%d %b %Y',
     u'%d %b, %Y',
     u'%B %d %Y',
     u'%B %d, %Y',
     u'%d %B %Y',
     u'%d %B, %Y']
    DEBUG
    True
    DEBUG_PROPAGATE_EXCEPTIONS
    False
    DECIMAL_SEPARATOR
    u'.'
    DEFAULT_CHARSET
    u'utf-8'
    DEFAULT_CONTENT_TYPE
    u'text/html'
    DEFAULT_EXCEPTION_REPORTER_FILTER
    u'django.views.debug.SafeExceptionReporterFilter'
    DEFAULT_FILE_STORAGE
    u'django.core.files.storage.FileSystemStorage'
    DEFAULT_FROM_EMAIL
    u'webmaster@localhost'
    DEFAULT_INDEX_TABLESPACE
    u''
    DEFAULT_TABLESPACE
    u''
    DISALLOWED_USER_AGENTS
    []
    EMAIL_BACKEND
    u'django.core.mail.backends.smtp.EmailBackend'
    EMAIL_HOST
    u'localhost'
    EMAIL_HOST_PASSWORD
    u'********************'
    EMAIL_HOST_USER
    u''
    EMAIL_PORT
    25
    EMAIL_SSL_CERTFILE
    None
    EMAIL_SSL_KEYFILE
    u'********************'
    EMAIL_SUBJECT_PREFIX
    u'[Django] '
    EMAIL_TIMEOUT
    None
    EMAIL_USE_LOCALTIME
    False
    EMAIL_USE_SSL
    False
    EMAIL_USE_TLS
    False
    FILE_CHARSET
    u'utf-8'
    FILE_UPLOAD_DIRECTORY_PERMISSIONS
    None
    FILE_UPLOAD_HANDLERS
    [u'django.core.files.uploadhandler.MemoryFileUploadHandler',
     u'django.core.files.uploadhandler.TemporaryFileUploadHandler']
    FILE_UPLOAD_MAX_MEMORY_SIZE
    2621440
    FILE_UPLOAD_PERMISSIONS
    None
    FILE_UPLOAD_TEMP_DIR
    None
    FIRST_DAY_OF_WEEK
    0
    FIXTURE_DIRS
    []
    FORCE_SCRIPT_NAME
    None
    FORMAT_MODULE_PATH
    None
    FORM_RENDERER
    u'django.forms.renderers.DjangoTemplates'
    IGNORABLE_404_URLS
    []
    INSTALLED_APPS
    ['front.apps.FrontConfig',
     'django.contrib.admin',
     'django.contrib.auth',
     'django.contrib.contenttypes',
     'django.contrib.sessions',
     'django.contrib.messages',
     'django.contrib.staticfiles']
    INTERNAL_IPS
    []
    LANGUAGES
    [(u'af', u'Afrikaans'),
     (u'ar', u'Arabic'),
     (u'ast', u'Asturian'),
     (u'az', u'Azerbaijani'),
     (u'bg', u'Bulgarian'),
     (u'be', u'Belarusian'),
     (u'bn', u'Bengali'),
     (u'br', u'Breton'),
     (u'bs', u'Bosnian'),
     (u'ca', u'Catalan'),
     (u'cs', u'Czech'),
     (u'cy', u'Welsh'),
     (u'da', u'Danish'),
     (u'de', u'German'),
     (u'dsb', u'Lower Sorbian'),
     (u'el', u'Greek'),
     (u'en', u'English'),
     (u'en-au', u'Australian English'),
     (u'en-gb', u'British English'),
     (u'eo', u'Esperanto'),
     (u'es', u'Spanish'),
     (u'es-ar', u'Argentinian Spanish'),
     (u'es-co', u'Colombian Spanish'),
     (u'es-mx', u'Mexican Spanish'),
     (u'es-ni', u'Nicaraguan Spanish'),
     (u'es-ve', u'Venezuelan Spanish'),
     (u'et', u'Estonian'),
     (u'eu', u'Basque'),
     (u'fa', u'Persian'),
     (u'fi', u'Finnish'),
     (u'fr', u'French'),
     (u'fy', u'Frisian'),
     (u'ga', u'Irish'),
     (u'gd', u'Scottish Gaelic'),
     (u'gl', u'Galician'),
     (u'he', u'Hebrew'),
     (u'hi', u'Hindi'),
     (u'hr', u'Croatian'),
     (u'hsb', u'Upper Sorbian'),
     (u'hu', u'Hungarian'),
     (u'ia', u'Interlingua'),
     (u'id', u'Indonesian'),
     (u'io', u'Ido'),
     (u'is', u'Icelandic'),
     (u'it', u'Italian'),
     (u'ja', u'Japanese'),
     (u'ka', u'Georgian'),
     (u'kk', u'Kazakh'),
     (u'km', u'Khmer'),
     (u'kn', u'Kannada'),
     (u'ko', u'Korean'),
     (u'lb', u'Luxembourgish'),
     (u'lt', u'Lithuanian'),
     (u'lv', u'Latvian'),
     (u'mk', u'Macedonian'),
     (u'ml', u'Malayalam'),
     (u'mn', u'Mongolian'),
     (u'mr', u'Marathi'),
     (u'my', u'Burmese'),
     (u'nb', u'Norwegian Bokm\xe5l'),
     (u'ne', u'Nepali'),
     (u'nl', u'Dutch'),
     (u'nn', u'Norwegian Nynorsk'),
     (u'os', u'Ossetic'),
     (u'pa', u'Punjabi'),
     (u'pl', u'Polish'),
     (u'pt', u'Portuguese'),
     (u'pt-br', u'Brazilian Portuguese'),
     (u'ro', u'Romanian'),
     (u'ru', u'Russian'),
     (u'sk', u'Slovak'),
     (u'sl', u'Slovenian'),
     (u'sq', u'Albanian'),
     (u'sr', u'Serbian'),
     (u'sr-latn', u'Serbian Latin'),
     (u'sv', u'Swedish'),
     (u'sw', u'Swahili'),
     (u'ta', u'Tamil'),
     (u'te', u'Telugu'),
     (u'th', u'Thai'),
     (u'tr', u'Turkish'),
     (u'tt', u'Tatar'),
     (u'udm', u'Udmurt'),
     (u'uk', u'Ukrainian'),
     (u'ur', u'Urdu'),
     (u'vi', u'Vietnamese'),
     (u'zh-hans', u'Simplified Chinese'),
     (u'zh-hant', u'Traditional Chinese')]
    LANGUAGES_BIDI
    [u'he', u'ar', u'fa', u'ur']
    LANGUAGE_CODE
    'zh-hans'
    LANGUAGE_COOKIE_AGE
    None
    LANGUAGE_COOKIE_DOMAIN
    None
    LANGUAGE_COOKIE_NAME
    u'django_language'
    LANGUAGE_COOKIE_PATH
    u'/'
    LOCALE_PATHS
    []
    LOGGING
    {}
    LOGGING_CONFIG
    u'logging.config.dictConfig'
    LOGIN_REDIRECT_URL
    u'/accounts/profile/'
    LOGIN_URL
    u'/accounts/login/'
    LOGOUT_REDIRECT_URL
    None
    MANAGERS
    []
    MEDIA_ROOT
    u''
    MEDIA_URL
    u''
    MESSAGE_STORAGE
    u'django.contrib.messages.storage.fallback.FallbackStorage'
    MIDDLEWARE
    ['django.middleware.security.SecurityMiddleware',
     'django.contrib.sessions.middleware.SessionMiddleware',
     'django.middleware.locale.LocaleMiddleware',
     'django.middleware.common.CommonMiddleware',
     'django.middleware.csrf.CsrfViewMiddleware',
     'django.contrib.auth.middleware.AuthenticationMiddleware',
     'django.contrib.messages.middleware.MessageMiddleware',
     'django.middleware.clickjacking.XFrameOptionsMiddleware']
    MIDDLEWARE_CLASSES
    [u'django.middleware.common.CommonMiddleware',
     u'django.middleware.csrf.CsrfViewMiddleware']
    MIGRATION_MODULES
    {}
    MONTH_DAY_FORMAT
    u'F j'
    NUMBER_GROUPING
    0
    PASSWORD_HASHERS
    u'********************'
    PASSWORD_RESET_TIMEOUT_DAYS
    u'********************'
    PREPEND_WWW
    False
    ROOT_URLCONF
    'yimei_site.urls'
    SECRET_KEY
    u'********************'
    SECURE_BROWSER_XSS_FILTER
    False
    SECURE_CONTENT_TYPE_NOSNIFF
    False
    SECURE_HSTS_INCLUDE_SUBDOMAINS
    False
    SECURE_HSTS_PRELOAD
    False
    SECURE_HSTS_SECONDS
    0
    SECURE_PROXY_SSL_HEADER
    None
    SECURE_REDIRECT_EXEMPT
    []
    SECURE_SSL_HOST
    None
    SECURE_SSL_REDIRECT
    False
    SERVER_EMAIL
    u'root@localhost'
    SESSION_CACHE_ALIAS
    u'default'
    SESSION_COOKIE_AGE
    1209600
    SESSION_COOKIE_DOMAIN
    None
    SESSION_COOKIE_HTTPONLY
    True
    SESSION_COOKIE_NAME
    u'sessionid'
    SESSION_COOKIE_PATH
    u'/'
    SESSION_COOKIE_SECURE
    False
    SESSION_ENGINE
    u'django.contrib.sessions.backends.db'
    SESSION_EXPIRE_AT_BROWSER_CLOSE
    False
    SESSION_FILE_PATH
    None
    SESSION_SAVE_EVERY_REQUEST
    False
    SESSION_SERIALIZER
    u'django.contrib.sessions.serializers.JSONSerializer'
    SETTINGS_MODULE
    'yimei_site.settings'
    SHORT_DATETIME_FORMAT
    u'm/d/Y P'
    SHORT_DATE_FORMAT
    u'm/d/Y'
    SIGNING_BACKEND
    u'django.core.signing.TimestampSigner'
    SILENCED_SYSTEM_CHECKS
    []
    STATICFILES_DIRS
    []
    STATICFILES_FINDERS
    [u'django.contrib.staticfiles.finders.FileSystemFinder',
     u'django.contrib.staticfiles.finders.AppDirectoriesFinder']
    STATICFILES_STORAGE
    u'django.contrib.staticfiles.storage.StaticFilesStorage'
    STATIC_ROOT
    '/root/django_projects/yimei_site/static/'
    STATIC_URL
    '/static/'
    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']}}]
    TEST_NON_SERIALIZED_APPS
    []
    TEST_RUNNER
    u'django.test.runner.DiscoverRunner'
    THOUSAND_SEPARATOR
    u','
    TIME_FORMAT
    u'P'
    TIME_INPUT_FORMATS
    [u'%H:%M:%S', u'%H:%M:%S.%f', u'%H:%M']
    TIME_ZONE
    'UTC'
    USE_ETAGS
    False
    USE_I18N
    True
    USE_L10N
    True
    USE_THOUSAND_SEPARATOR
    False
    USE_TZ
    True
    USE_X_FORWARDED_HOST
    False
    USE_X_FORWARDED_PORT
    False
    WSGI_APPLICATION
    'yimei_site.wsgi.application'
    X_FRAME_OPTIONS
    u'SAMEORIGIN'
    YEAR_MONTH_FORMAT
    u'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.