relation "website_material" does not exist LINE 1: ..._material"."tags", "website_material"."file" FROM "website_m... ^
Request Method: | GET |
---|---|
Request URL: | https://www.chinesecpc.com/resource_cn |
Django Version: | 1.11.7 |
Exception Type: | ProgrammingError |
Exception Value: | relation "website_material" does not exist LINE 1: ..._material"."tags", "website_material"."file" FROM "website_m... ^ |
Exception Location: | /home/ccpc/venvs/ccpc/lib/python3.6/site-packages/django/db/backends/utils.py in execute, line 65 |
Python Executable: | /usr/bin/python3 |
Python Version: | 3.6.9 |
Python Path: | ['/home/ccpc/chinesecpc', '/home/ccpc/venvs/ccpc/lib/python36.zip', '/home/ccpc/venvs/ccpc/lib/python3.6', '/home/ccpc/venvs/ccpc/lib/python3.6/lib-dynload', '/usr/lib/python3.6', '/home/ccpc/venvs/ccpc/lib/python3.6/site-packages'] |
Server time: | Mon, 18 Mar 2024 22:02:08 -0700 |
In template /home/ccpc/chinesecpc/website/templates/base_cn.html
, error at line 5
1 | <!doctype html> |
---|---|
2 | {% load static %} |
3 | <html class="no-js" lang="en"> |
4 | <head> |
5 | <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,400italic,600,600italic,700,700italic,300italic" rel="stylesheet" type="text/css"> |
6 | <meta charset="utf-8"> |
7 | <title> |
8 | {% block title %} |
9 | Chinese CPC |
10 | {% endblock %} |
11 | </title> |
12 | <meta name="apple-mobile-web-app-capable" content="yes"> |
13 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
14 | <link href="{% static 'base/animate.css' %}" rel="stylesheet" type="text/css"> |
15 | <link rel="stylesheet" href="{% static 'base/js/woothemes-FlexSlider-06b12f8/flexslider.css' %}" type="text/css" media="screen"> |
/home/ccpc/venvs/ccpc/lib/python3.6/site-packages/django/db/backends/utils.py
in execute
def execute(self, sql, params=None):
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:
if params is None:
return self.cursor.execute(sql)
else:
return self.cursor.execute(sql, params)...
def executemany(self, sql, param_list):
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:
return self.cursor.executemany(sql, param_list)
Variable | Value |
---|---|
params | ('%zh%',) |
self | <django.db.backends.utils.CursorDebugWrapper object at 0x7f342dab07b8> |
sql | ('SELECT "website_material"."id", "website_material"."name", ' '"website_material"."type", "website_material"."language", ' '"website_material"."tags", "website_material"."file" FROM "website_material" ' 'WHERE UPPER("website_material"."language"::text) LIKE UPPER(%s) ORDER BY ' '"website_material"."tags" DESC') |
/home/ccpc/venvs/ccpc/lib/python3.6/site-packages/django/core/handlers/exception.py
in inner
This decorator is automatically applied to all middleware to ensure that
no middleware leaks an exception and that the next middleware in the stack
can rely on getting a response instead of an exception.
"""
@wraps(get_response, assigned=available_attrs(get_response))
def inner(request):
try:
response = get_response(request)...
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | ProgrammingError('relation "website_material" does not exist\nLINE 1: ..._material"."tags", "website_material"."file" FROM "website_m...\n ^\n',) |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f3446d94cf8>> |
request | <WSGIRequest: GET '/resource_cn'> |
/home/ccpc/venvs/ccpc/lib/python3.6/site-packages/django/core/handlers/base.py
in _get_response
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)
except Exception as e:
response = self.process_exception_by_middleware(e, request)...
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
view_name = callback.__name__
else: # CBV
Variable | Value |
---|---|
callback | <function material_cn at 0x7f342db4a9d8> |
callback_args | () |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f342dbf1208>> |
request | <WSGIRequest: GET '/resource_cn'> |
resolver | <RegexURLResolver 'chinesecpc.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=website.views.material_cn, args=(), kwargs={}, url_name=resource_cn, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f3446d94cf8> |
wrapped_callback | <function material_cn at 0x7f342db4a9d8> |
/home/ccpc/venvs/ccpc/lib/python3.6/site-packages/django/core/handlers/base.py
in _get_response
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)...
except Exception as e:
response = self.process_exception_by_middleware(e, request)
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
Variable | Value |
---|---|
callback | <function material_cn at 0x7f342db4a9d8> |
callback_args | () |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f342dbf1208>> |
request | <WSGIRequest: GET '/resource_cn'> |
resolver | <RegexURLResolver 'chinesecpc.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=website.views.material_cn, args=(), kwargs={}, url_name=resource_cn, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f3446d94cf8> |
wrapped_callback | <function material_cn at 0x7f342db4a9d8> |
/home/ccpc/chinesecpc/website/views.py
in material_cn
def material(request):
materials = Material.objects.filter(language__icontains='en').all().order_by('-tags')
return render(request, 'material_all.html', {'materials': materials,'active_resource':True})
def material_cn(request):
materials = Material.objects.filter(language__icontains='zh').all().order_by('-tags')
return render(request, 'material_all_cn.html', {'materials': materials,'active_resource_cn':True})...
def van_cpc_links(request):
return render(request, 'van_cpc_links.html', {'active_links': True})
def van_cpc_links_cn(request):
return render(request, 'van_cpc_links_cn.html', {'active_links_cn': True})
Variable | Value |
---|---|
materials | Error in formatting: ProgrammingError: relation "website_material" does not exist LINE 1: ..._material"."tags", "website_material"."file" FROM "website_m... ^ |
request | <WSGIRequest: GET '/resource_cn'> |
/home/ccpc/venvs/ccpc/lib/python3.6/site-packages/django/shortcuts.py
in render
def render(request, template_name, context=None, content_type=None, status=None, using=None):
"""
Returns a HttpResponse whose content is filled with the result of calling
django.template.loader.render_to_string() with the passed arguments.
"""
content = loader.render_to_string(template_name, context, request, using=using)...
return HttpResponse(content, content_type, status)
def redirect(to, *args, **kwargs):
"""
Returns an HttpResponseRedirect to the appropriate URL for the arguments
Variable | Value |
---|---|
content_type | None |
context | Error in formatting: ProgrammingError: relation "website_material" does not exist LINE 1: ..._material"."tags", "website_material"."file" FROM "website_m... ^ |
request | <WSGIRequest: GET '/resource_cn'> |
status | None |
template_name | 'material_all_cn.html' |
using | None |
/home/ccpc/venvs/ccpc/lib/python3.6/site-packages/django/template/loader.py
in render_to_string
template_name may be a string or a list of strings.
"""
if isinstance(template_name, (list, tuple)):
template = select_template(template_name, using=using)
else:
template = get_template(template_name, using=using)
return template.render(context, request)...
def _engine_list(using=None):
return engines.all() if using is None else [engines[using]]
Variable | Value |
---|---|
context | Error in formatting: ProgrammingError: relation "website_material" does not exist LINE 1: ..._material"."tags", "website_material"."file" FROM "website_m... ^ |
request | <WSGIRequest: GET '/resource_cn'> |
template | <django.template.backends.django.Template object at 0x7f342d922320> |
template_name | 'material_all_cn.html' |
using | None |
/home/ccpc/venvs/ccpc/lib/python3.6/site-packages/django/template/backends/django.py
in render
@property
def origin(self):
return self.template.origin
def render(self, context=None, request=None):
context = make_context(context, request, autoescape=self.backend.engine.autoescape)
try:
return self.template.render(context)...
except TemplateDoesNotExist as exc:
reraise(exc, self.backend)
def copy_exception(exc, backend=None):
"""
Variable | Value |
---|---|
context | Error in formatting: ProgrammingError: relation "website_material" does not exist LINE 1: ..._material"."tags", "website_material"."file" FROM "website_m... ^ |
request | <WSGIRequest: GET '/resource_cn'> |
self | <django.template.backends.django.Template object at 0x7f342d922320> |
/home/ccpc/venvs/ccpc/lib/python3.6/site-packages/django/template/base.py
in render
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
context.template_name = self.name
return self._render(context)...
else:
return self._render(context)
def compile_nodelist(self):
"""
Parse and compile the template source into a nodelist. If debug
Variable | Value |
---|---|
context | Error in formatting: ProgrammingError: relation "website_material" does not exist LINE 1: ..._material"."tags", "website_material"."file" FROM "website_m... ^ |
self | <django.template.base.Template object at 0x7f342d946e80> |
/home/ccpc/venvs/ccpc/lib/python3.6/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | Error in formatting: ProgrammingError: relation "website_material" does not exist LINE 1: ..._material"."tags", "website_material"."file" FROM "website_m... ^ |
self | <django.template.base.Template object at 0x7f342d946e80> |
/home/ccpc/venvs/ccpc/lib/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bits | [] |
context | Error in formatting: ProgrammingError: relation "website_material" does not exist LINE 1: ..._material"."tags", "website_material"."file" FROM "website_m... ^ |
node | <ExtendsNode: extends "base_cn.html"> |
self | [<ExtendsNode: extends "base_cn.html">] |
/home/ccpc/venvs/ccpc/lib/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | Error in formatting: ProgrammingError: relation "website_material" does not exist LINE 1: ..._material"."tags", "website_material"."file" FROM "website_m... ^ |
self | <ExtendsNode: extends "base_cn.html"> |
/home/ccpc/venvs/ccpc/lib/python3.6/site-packages/django/template/loader_tags.py
in render
compiled_parent.nodelist.get_nodes_by_type(BlockNode)}
block_context.add_blocks(blocks)
break
# Call Template._render explicitly so the parser context stays
# the same.
with context.render_context.push_state(compiled_parent, isolated_context=False):
return compiled_parent._render(context)...
class IncludeNode(Node):
context_key = '__include_context'
def __init__(self, template, *args, **kwargs):
Variable | Value |
---|---|
block_context | <django.template.loader_tags.BlockContext object at 0x7f342d910b70> |
blocks | {'breadcrumb': <Block Node: breadcrumb. Contents: []>, 'content': <Block Node: content. Contents: []>, 'head': <Block Node: head. Contents: [<TextNode: '\n\n '>]>, 'js': <Block Node: js. Contents: [<TextNode: '\n<script src="http://code'>, <django.templatetags.static.StaticNode object at 0x7f342daa8128>, <TextNode: '"><\\/script>\')</script>\n<'>, <django.templatetags.static.StaticNode object at 0x7f342daa8b70>, <TextNode: '" type="text/javascript">'>, <django.templatetags.static.StaticNode object at 0x7f342daa81d0>, <TextNode: '"></script>\n<script src="'>, <django.templatetags.static.StaticNode object at 0x7f342daa8828>, <TextNode: '" type="text/javascript" '>, <django.templatetags.static.StaticNode object at 0x7f342daa8748>, <TextNode: '" type="text/javascript">'>, <django.templatetags.static.StaticNode object at 0x7f342daa86d8>, <TextNode: '"></script>\n<script type='>, <django.templatetags.static.StaticNode object at 0x7f342daa84a8>, <TextNode: '"></script>\n<script type='>, <django.templatetags.static.StaticNode object at 0x7f342daa82b0>, <TextNode: '"></script>\n<script type='>, <django.templatetags.static.StaticNode object at 0x7f342daa8208>, <TextNode: '"></script>\n<script type='>, <django.templatetags.static.StaticNode object at 0x7f342d9a1c18>, <TextNode: '"></script>\n<script type='>, <django.templatetags.static.StaticNode object at 0x7f342d9a1908>, <TextNode: '"></script>\n'>]>, 'nav_bar': <Block Node: nav_bar. Contents: [<TextNode: '\n <div class="na'>, <django.template.defaulttags.URLNode object at 0x7f342dab1438>, <TextNode: '">\n '>, <django.templatetags.static.StaticNode object at 0x7f342dab15f8>, <TextNode: '" alt="logo" height="80" '>, <IfNode>, <TextNode: '"><a href="'>, <django.template.defaulttags.URLNode object at 0x7f342dab1208>, <TextNode: '">回到首頁</a></li>\n '>, <IfNode>, <TextNode: '"><a href="'>, <django.template.defaulttags.URLNode object at 0x7f342d957278>, <TextNode: '">認識我們</a></li>\n '>, <IfNode>, <TextNode: '"><a href="'>, <django.template.defaulttags.URLNode object at 0x7f342d957a90>, <TextNode: '">服務項目</a></li>\n '>, <IfNode>, <TextNode: '"><a href="'>, <django.template.defaulttags.URLNode object at 0x7f342d957630>, <TextNode: '">支持我們</a></li>\n '>, <IfNode>, <TextNode: '"><a href="'>, <django.template.defaulttags.URLNode object at 0x7f342d946550>, <TextNode: '">聯絡方式</a></li>\n '>, <IfNode>, <TextNode: '"><a href="'>, <django.template.defaulttags.URLNode object at 0x7f342d946a20>, <TextNode: '">資源下載</a></li>\n '>, <IfNode>, <TextNode: '"><a href="'>, <django.template.defaulttags.URLNode object at 0x7f342d946080>, <TextNode: '">鏈接</a></li>\n '>]>, 'slides': <Block Node: slides. Contents: [<TextNode: '\n\n'>]>, 'title': <Block Node: title. Contents: [<TextNode: '\n Chinese CPC\n '>]>} |
compiled_parent | <django.template.base.Template object at 0x7f342d895208> |
context | Error in formatting: ProgrammingError: relation "website_material" does not exist LINE 1: ..._material"."tags", "website_material"."file" FROM "website_m... ^ |
node | <django.template.defaulttags.LoadNode object at 0x7f342d910860> |
self | <ExtendsNode: extends "base_cn.html"> |
/home/ccpc/venvs/ccpc/lib/python3.6/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | Error in formatting: ProgrammingError: relation "website_material" does not exist LINE 1: ..._material"."tags", "website_material"."file" FROM "website_m... ^ |
self | <django.template.base.Template object at 0x7f342d895208> |
/home/ccpc/venvs/ccpc/lib/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n </ul>\n ' |
bits | ['<!doctype html>\n', '', '\n' '<html class="no-js" lang="en">\n' ' <head>\n' ' <link ' 'href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,400italic,600,600italic,700,700italic,300italic" ' 'rel="stylesheet" type="text/css">\n' ' <meta charset="utf-8">\n' ' <title>\n' ' ', 'Resources', '\n' ' </title>\n' ' <meta name="apple-mobile-web-app-capable" content="yes">\n' ' <meta name="viewport" content="width=device-width, initial-scale=1">\n' ' <link href="', '/static/base/animate.css', '" rel="stylesheet" type="text/css">\n <link rel="stylesheet" href="', '/static/base/js/woothemes-FlexSlider-06b12f8/flexslider.css', '" type="text/css" media="screen">\n <link rel="stylesheet" href="', '/static/base/js/prettyPhoto_3.1.5/prettyPhoto.css', '" type="text/css" media="screen">\n <link href="', '/static/base/style.css', '" rel="stylesheet" type="text/css">\n <link rel="stylesheet" href="', '/static/base/fonts/font-awesome/css/font-awesome.min.css', '" media="screen">\n <script type="text/javascript" src="', '/static/base/js/modernizr.custom.48287.js', '"></script>\n' ' <!-- Fav and touch icons -->\n' ' <link rel="apple-touch-icon-precomposed" sizes="114x114" href="', '/static/base/apple-touch-icon-114x114-precomposed.png', '">\n <link rel="apple-touch-icon-precomposed" sizes="72x72" href="', '/static/base/apple-touch-icon-72x72-precomposed.png', '">\n <link rel="apple-touch-icon-precomposed" href="', '/static/base/apple-touch-fa-57x57-precomposed.png', '">\n <!-- Favicon -->\n <link type="image/x-icon" href="', '/static/img_cpc/favicon.ico', '" rel="shortcut icon"/>\n ', '\n\n ', '\n </head>\n<body>\n<header>\n <div class="container">\n ', '\n' ' <div class="navbar navbar-default" role="navigation">\n' ' <div class="navbar-header">\n' ' <a class="navbar-brand" href="/index_cn">\n' ' <img src="/static/img_cpc/logo.jpg" alt="logo" ' 'height="80" width="100">\n' '\n' ' </a>\n' ' <a class="btn btn-navbar btn-default navbar-toggle" ' 'data-toggle="collapse" data-target=".navbar-collapse">\n' ' <span class="nb_left pull-left"> <span class="fa ' 'fa-reorder"></span></span> <span class="nb_right pull-right">menu</span>\n' ' </a>\n' ' </div>\n' ' <div class="collapse navbar-collapse">\n' ' <ul class="nav pull-right navbar-nav">\n' ' <li class=""><a href="/index_cn">回到首頁</a></li>\n' ' <li class=""><a href="/about_cn">認識我們</a></li>\n' ' <li class=""><a href="/programs_cn">服務項目</a></li>\n' ' <li class=""><a ' 'href="/get_involved_cn">支持我們</a></li>\n' ' <li class=""><a href="/contact_cn">聯絡方式</a></li>\n' ' <li class=" active "><a ' 'href="/resource_cn">資源下載</a></li>\n' ' <li class=""><a href="/links_cn">鏈接</a></li>\n' ' </ul>\n' ' </div>\n' ' </div>\n' ' ', '\n <div id="language">\n <a href="', '/', '"></i><span>Eng</span></a> |\n <a href="', '/index_cn', '"><span>中文</span></a>\n' ' </div>\n' ' <div id="social_media_wrapper">\n' ' <a ' 'href="https://www.facebook.com/pages/Chinese-Community-Policing-Centre/190630130986635" ' 'target="_blank">\n' ' <i class="fa fa-facebook"></i>\n' ' </a>\n' ' <a href="https://twitter.com/chinesecpc" target="_blank">\n' ' <i class="fa fa-twitter"></i>\n' ' </a>\n' ' <a href="https://www.youtube.com/user/ChineseCPC" ' 'target="_blank">\n' ' <i class="fa fa-youtube"></i>\n' ' </a>\n' ' <a href="https://www.instagram.com/chinese_cpc/" ' 't... <trimmed 4765 bytes string> |
context | Error in formatting: ProgrammingError: relation "website_material" does not exist LINE 1: ..._material"."tags", "website_material"."file" FROM "website_m... ^ |
node | <Block Node: content. Contents: []> |
self | [<TextNode: '<!doctype html>\n'>, <django.template.defaulttags.LoadNode object at 0x7f342d910860>, <TextNode: '\n<html class="no-js" lang'>, <Block Node: title. Contents: [<TextNode: '\n Chinese CPC\n '>]>, <TextNode: '\n </title>\n <meta n'>, <django.templatetags.static.StaticNode object at 0x7f342dab1780>, <TextNode: '" rel="stylesheet" type="'>, <django.templatetags.static.StaticNode object at 0x7f342dab1cc0>, <TextNode: '" type="text/css" media="'>, <django.templatetags.static.StaticNode object at 0x7f342dab1240>, <TextNode: '" type="text/css" media="'>, <django.templatetags.static.StaticNode object at 0x7f342dab1898>, <TextNode: '" rel="stylesheet" type="'>, <django.templatetags.static.StaticNode object at 0x7f342dab1588>, <TextNode: '" media="screen">\n <sc'>, <django.templatetags.static.StaticNode object at 0x7f342dab14a8>, <TextNode: '"></script>\n <!-- Fav '>, <django.templatetags.static.StaticNode object at 0x7f342dab1940>, <TextNode: '">\n <link rel="apple-t'>, <django.templatetags.static.StaticNode object at 0x7f342dab1128>, <TextNode: '">\n <link rel="apple-t'>, <django.templatetags.static.StaticNode object at 0x7f342dab1390>, <TextNode: '">\n <!-- Favicon -->\n '>, <django.templatetags.static.StaticNode object at 0x7f342dab12b0>, <TextNode: '" rel="shortcut icon"/>\n '>, <Block Node: head. Contents: [<TextNode: '\n\n '>]>, <TextNode: '\n </head>\n<body>\n<header'>, <Block Node: nav_bar. Contents: [<TextNode: '\n <div class="na'>, <django.template.defaulttags.URLNode object at 0x7f342dab1438>, <TextNode: '">\n '>, <django.templatetags.static.StaticNode object at 0x7f342dab15f8>, <TextNode: '" alt="logo" height="80" '>, <IfNode>, <TextNode: '"><a href="'>, <django.template.defaulttags.URLNode object at 0x7f342dab1208>, <TextNode: '">回到首頁</a></li>\n '>, <IfNode>, <TextNode: '"><a href="'>, <django.template.defaulttags.URLNode object at 0x7f342d957278>, <TextNode: '">認識我們</a></li>\n '>, <IfNode>, <TextNode: '"><a href="'>, <django.template.defaulttags.URLNode object at 0x7f342d957a90>, <TextNode: '">服務項目</a></li>\n '>, <IfNode>, <TextNode: '"><a href="'>, <django.template.defaulttags.URLNode object at 0x7f342d957630>, <TextNode: '">支持我們</a></li>\n '>, <IfNode>, <TextNode: '"><a href="'>, <django.template.defaulttags.URLNode object at 0x7f342d946550>, <TextNode: '">聯絡方式</a></li>\n '>, <IfNode>, <TextNode: '"><a href="'>, <django.template.defaulttags.URLNode object at 0x7f342d946a20>, <TextNode: '">資源下載</a></li>\n '>, <IfNode>, <TextNode: '"><a href="'>, <django.template.defaulttags.URLNode object at 0x7f342d946080>, <TextNode: '">鏈接</a></li>\n '>]>, <TextNode: '\n <div id="langu'>, <django.template.defaulttags.URLNode object at 0x7f342d946630>, <TextNode: '"></i><span>Eng</span></a'>, <django.template.defaulttags.URLNode object at 0x7f342d957ba8>, <TextNode: '"><span>中文</span></a>\n '>, <Block Node: slides. Contents: [<TextNode: '\n\n'>]>, <TextNode: '\n<div class="main">\n '>, <For Node: for msg in messages, tail_len: 5>, <TextNode: '\n <div class="contain'>, <Block Node: breadcrumb. Contents: []>, <TextNode: '\n </ul>\n '>, <Block Node: content. Contents: []>, <TextNode: '\n </div>\n <footer'>, <django.templatetags.static.StaticNode object at 0x7f342daa8e10>, <TextNode: '" width="400" style="marg'>, <django.templatetags.static.StaticNode object at 0x7f342daa8898>, <TextNode: ')"></a>\n '>, <django.templatetags.static.StaticNode object at 0x7f342daa8470>, <TextNode: ')"></a>\n '>, <django.templatetags.static.StaticNode object at 0x7f342daa8e48>, <TextNode: '" alt="police" height="10'>, <django.templatetags.static.StaticNode object at 0x7f342daa8eb8>, <TextNode: '" alt="police" height="90'>, <django.templatetags.static.StaticNode object at 0x7f342daa8278>, <TextNode: '" alt="police" height="50'>, <django.templatetags.static.StaticNode object at 0x7f342daa8358>, <Tex... <trimmed 5416 bytes string> |
/home/ccpc/venvs/ccpc/lib/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | Error in formatting: ProgrammingError: relation "website_material" does not exist LINE 1: ..._material"."tags", "website_material"."file" FROM "website_m... ^ |
self | <Block Node: content. Contents: []> |
/home/ccpc/venvs/ccpc/lib/python3.6/site-packages/django/template/loader_tags.py
in render
push = block = block_context.pop(self.name)
if block is None:
block = self
# Create new block so we can store context without thread-safety issues.
block = type(self)(block.name, block.nodelist)
block.context = context
context['block'] = block
result = block.nodelist.render(context)...
if push is not None:
block_context.push(self.name, push)
return result
def super(self):
if not hasattr(self, 'context'):
Variable | Value |
---|---|
block | <Block Node: content. Contents: [<TextNode: '\n <h3>資源下載</h3>\n <d'>, <For Node: for material in materials, tail_len: 5>, <TextNode: '\n </ul>\n\n </div'>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f342d910b70> |
context | Error in formatting: ProgrammingError: relation "website_material" does not exist LINE 1: ..._material"."tags", "website_material"."file" FROM "website_m... ^ |
push | <Block Node: content. Contents: [<TextNode: '\n <h3>資源下載</h3>\n <d'>, <For Node: for material in materials, tail_len: 5>, <TextNode: '\n </ul>\n\n </div'>]> |
self | <Block Node: content. Contents: []> |
/home/ccpc/venvs/ccpc/lib/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n <h3>資源下載</h3>\n <div>\n <ul>\n ' |
bits | ['\n <h3>資源下載</h3>\n <div>\n <ul>\n '] |
context | Error in formatting: ProgrammingError: relation "website_material" does not exist LINE 1: ..._material"."tags", "website_material"."file" FROM "website_m... ^ |
node | <For Node: for material in materials, tail_len: 5> |
self | [<TextNode: '\n <h3>資源下載</h3>\n <d'>, <For Node: for material in materials, tail_len: 5>, <TextNode: '\n </ul>\n\n </div'>] |
/home/ccpc/venvs/ccpc/lib/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | Error in formatting: ProgrammingError: relation "website_material" does not exist LINE 1: ..._material"."tags", "website_material"."file" FROM "website_m... ^ |
self | <For Node: for material in materials, tail_len: 5> |
/home/ccpc/venvs/ccpc/lib/python3.6/site-packages/django/template/defaulttags.py
in render
values = self.sequence.resolve(context, True)
except VariableDoesNotExist:
values = []
if values is None:
values = []
if not hasattr(values, '__len__'):
values = list(values)
len_values = len(values)...
if len_values < 1:
return self.nodelist_empty.render(context)
nodelist = []
if self.is_reversed:
values = reversed(values)
num_loopvars = len(self.loopvars)
Variable | Value |
---|---|
context | Error in formatting: ProgrammingError: relation "website_material" does not exist LINE 1: ..._material"."tags", "website_material"."file" FROM "website_m... ^ |
parentloop | {} |
self | <For Node: for material in materials, tail_len: 5> |
values | Error in formatting: ProgrammingError: relation "website_material" does not exist LINE 1: ..._material"."tags", "website_material"."file" FROM "website_m... ^ |
/home/ccpc/venvs/ccpc/lib/python3.6/site-packages/django/db/models/query.py
in __len__
def __repr__(self):
data = list(self[:REPR_OUTPUT_SIZE + 1])
if len(data) > REPR_OUTPUT_SIZE:
data[-1] = "...(remaining elements truncated)..."
return '<%s %r>' % (self.__class__.__name__, data)
def __len__(self):
self._fetch_all()...
return len(self._result_cache)
def __iter__(self):
"""
The queryset iterator protocol uses three nested iterators in the
default case:
Variable | Value |
---|---|
self | Error in formatting: ProgrammingError: relation "website_material" does not exist LINE 1: ..._material"."tags", "website_material"."file" FROM "website_m... ^ |
/home/ccpc/venvs/ccpc/lib/python3.6/site-packages/django/db/models/query.py
in _fetch_all
clone._fields = self._fields
clone.__dict__.update(kwargs)
return clone
def _fetch_all(self):
if self._result_cache is None:
self._result_cache = list(self._iterable_class(self))...
if self._prefetch_related_lookups and not self._prefetch_done:
self._prefetch_related_objects()
def _next_is_sticky(self):
"""
Indicates that the next filter call and the one following that should
Variable | Value |
---|---|
self | Error in formatting: ProgrammingError: relation "website_material" does not exist LINE 1: ..._material"."tags", "website_material"."file" FROM "website_m... ^ |
/home/ccpc/venvs/ccpc/lib/python3.6/site-packages/django/db/models/query.py
in __iter__
def __iter__(self):
queryset = self.queryset
db = queryset.db
compiler = queryset.query.get_compiler(using=db)
# Execute the query. This will also fill compiler.select, klass_info,
# and annotations.
results = compiler.execute_sql(chunked_fetch=self.chunked_fetch)...
select, klass_info, annotation_col_map = (compiler.select, compiler.klass_info,
compiler.annotation_col_map)
model_cls = klass_info['model']
select_fields = klass_info['select_fields']
model_fields_start, model_fields_end = select_fields[0], select_fields[-1] + 1
init_list = [f[0].target.attname
Variable | Value |
---|---|
compiler | <django.db.models.sql.compiler.SQLCompiler object at 0x7f342d9a1080> |
db | 'default' |
queryset | Error in formatting: ProgrammingError: relation "website_material" does not exist LINE 1: ..._material"."tags", "website_material"."file" FROM "website_m... ^ |
self | <django.db.models.query.ModelIterable object at 0x7f342d9a1438> |
/home/ccpc/venvs/ccpc/lib/python3.6/site-packages/django/db/models/sql/compiler.py
in execute_sql
# Might fail for server-side cursors (e.g. connection closed)
cursor.close()
except Exception:
# Ignore clean up errors and raise the original error instead.
# Python 2 doesn't chain exceptions. Remove this error
# silencing when dropping Python 2 compatibility.
pass
raise original_exception...
if result_type == CURSOR:
# Caller didn't specify a result_type, so just give them back the
# cursor to process (and close).
return cursor
if result_type == SINGLE:
Variable | Value |
---|---|
chunked_fetch | False |
cursor | <django.db.backends.utils.CursorDebugWrapper object at 0x7f342dab07b8> |
params | ('%zh%',) |
result_type | 'multi' |
self | <django.db.models.sql.compiler.SQLCompiler object at 0x7f342d9a1080> |
sql | ('SELECT "website_material"."id", "website_material"."name", ' '"website_material"."type", "website_material"."language", ' '"website_material"."tags", "website_material"."file" FROM "website_material" ' 'WHERE UPPER("website_material"."language"::text) LIKE UPPER(%s) ORDER BY ' '"website_material"."tags" DESC') |
/home/ccpc/venvs/ccpc/lib/python3.6/site-packages/django/db/models/sql/compiler.py
in execute_sql
else:
return
if chunked_fetch:
cursor = self.connection.chunked_cursor()
else:
cursor = self.connection.cursor()
try:
cursor.execute(sql, params)...
except Exception as original_exception:
try:
# Might fail for server-side cursors (e.g. connection closed)
cursor.close()
except Exception:
# Ignore clean up errors and raise the original error instead.
Variable | Value |
---|---|
chunked_fetch | False |
cursor | <django.db.backends.utils.CursorDebugWrapper object at 0x7f342dab07b8> |
params | ('%zh%',) |
result_type | 'multi' |
self | <django.db.models.sql.compiler.SQLCompiler object at 0x7f342d9a1080> |
sql | ('SELECT "website_material"."id", "website_material"."name", ' '"website_material"."type", "website_material"."language", ' '"website_material"."tags", "website_material"."file" FROM "website_material" ' 'WHERE UPPER("website_material"."language"::text) LIKE UPPER(%s) ORDER BY ' '"website_material"."tags" DESC') |
/home/ccpc/venvs/ccpc/lib/python3.6/site-packages/django/db/backends/utils.py
in execute
class CursorDebugWrapper(CursorWrapper):
# XXX callproc isn't instrumented at this time.
def execute(self, sql, params=None):
start = time()
try:
return super(CursorDebugWrapper, self).execute(sql, params)...
finally:
stop = time()
duration = stop - start
sql = self.db.ops.last_executed_query(self.cursor, sql, params)
self.db.queries_log.append({
'sql': sql,
Variable | Value |
---|---|
__class__ | <class 'django.db.backends.utils.CursorDebugWrapper'> |
duration | 0.0008668899536132812 |
params | ('%zh%',) |
self | <django.db.backends.utils.CursorDebugWrapper object at 0x7f342dab07b8> |
sql | ('SELECT "website_material"."id", "website_material"."name", ' '"website_material"."type", "website_material"."language", ' '"website_material"."tags", "website_material"."file" FROM "website_material" ' 'WHERE UPPER("website_material"."language"::text) LIKE UPPER(\'%zh%\') ORDER ' 'BY "website_material"."tags" DESC') |
start | 1710824528.8617594 |
stop | 1710824528.8626263 |
/home/ccpc/venvs/ccpc/lib/python3.6/site-packages/django/db/backends/utils.py
in execute
def execute(self, sql, params=None):
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:
if params is None:
return self.cursor.execute(sql)
else:
return self.cursor.execute(sql, params)...
def executemany(self, sql, param_list):
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:
return self.cursor.executemany(sql, param_list)
Variable | Value |
---|---|
params | ('%zh%',) |
self | <django.db.backends.utils.CursorDebugWrapper object at 0x7f342dab07b8> |
sql | ('SELECT "website_material"."id", "website_material"."name", ' '"website_material"."type", "website_material"."language", ' '"website_material"."tags", "website_material"."file" FROM "website_material" ' 'WHERE UPPER("website_material"."language"::text) LIKE UPPER(%s) ORDER BY ' '"website_material"."tags" DESC') |
/home/ccpc/venvs/ccpc/lib/python3.6/site-packages/django/db/utils.py
in __exit__
dj_exc_value.__cause__ = exc_value
if not hasattr(exc_value, '__traceback__'):
exc_value.__traceback__ = traceback
# Only set the 'errors_occurred' flag for errors that may make
# the connection unusable.
if dj_exc_type not in (DataError, IntegrityError):
self.wrapper.errors_occurred = True
six.reraise(dj_exc_type, dj_exc_value, traceback)...
def __call__(self, func):
# Note that we are intentionally not using @wraps here for performance
# reasons. Refs #21109.
def inner(*args, **kwargs):
with self:
Variable | Value |
---|---|
db_exc_type | <class 'psycopg2.ProgrammingError'> |
dj_exc_type | <class 'django.db.utils.ProgrammingError'> |
dj_exc_value | ProgrammingError('relation "website_material" does not exist\nLINE 1: ..._material"."tags", "website_material"."file" FROM "website_m...\n ^\n',) |
exc_type | <class 'psycopg2.errors.UndefinedTable'> |
exc_value | UndefinedTable('relation "website_material" does not exist\nLINE 1: ..._material"."tags", "website_material"."file" FROM "website_m...\n ^\n',) |
self | <django.db.utils.DatabaseErrorWrapper object at 0x7f342d93d320> |
traceback | <traceback object at 0x7f342daf26c8> |
/home/ccpc/venvs/ccpc/lib/python3.6/site-packages/django/utils/six.py
in reraise
if PY3:
exec_ = getattr(moves.builtins, "exec")
def reraise(tp, value, tb=None):
if value is None:
value = tp()
if value.__traceback__ is not tb:
raise value.with_traceback(tb)...
raise value
else:
def exec_(_code_, _globs_=None, _locs_=None):
"""Execute code in a namespace."""
if _globs_ is None:
Variable | Value |
---|---|
tb | <traceback object at 0x7f342daf26c8> |
tp | <class 'django.db.utils.ProgrammingError'> |
value | ProgrammingError('relation "website_material" does not exist\nLINE 1: ..._material"."tags", "website_material"."file" FROM "website_m...\n ^\n',) |
/home/ccpc/venvs/ccpc/lib/python3.6/site-packages/django/db/backends/utils.py
in execute
def execute(self, sql, params=None):
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:
if params is None:
return self.cursor.execute(sql)
else:
return self.cursor.execute(sql, params)...
def executemany(self, sql, param_list):
self.db.validate_no_broken_transaction()
with self.db.wrap_database_errors:
return self.cursor.executemany(sql, param_list)
Variable | Value |
---|---|
params | ('%zh%',) |
self | <django.db.backends.utils.CursorDebugWrapper object at 0x7f342dab07b8> |
sql | ('SELECT "website_material"."id", "website_material"."name", ' '"website_material"."type", "website_material"."language", ' '"website_material"."tags", "website_material"."file" FROM "website_material" ' 'WHERE UPPER("website_material"."language"::text) LIKE UPPER(%s) ORDER BY ' '"website_material"."tags" DESC') |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CONTEXT_DOCUMENT_ROOT | '/var/www/html' |
CONTEXT_PREFIX | '' |
DOCUMENT_ROOT | '/var/www/html' |
GATEWAY_INTERFACE | 'CGI/1.1' |
HTTP_ACCEPT | '*/*' |
HTTP_HOST | 'www.chinesecpc.com' |
HTTP_USER_AGENT | 'claudebot' |
PATH_INFO | '/resource_cn' |
PATH_TRANSLATED | '/home/ccpc/chinesecpc/chinesecpc/wsgi.py/resource_cn' |
QUERY_STRING | '' |
REMOTE_ADDR | '54.221.159.188' |
REMOTE_PORT | '40376' |
REQUEST_METHOD | 'GET' |
REQUEST_SCHEME | 'https' |
REQUEST_URI | '/resource_cn' |
SCRIPT_FILENAME | '/home/ccpc/chinesecpc/chinesecpc/wsgi.py' |
SCRIPT_NAME | '' |
SERVER_ADDR | '138.197.135.182' |
SERVER_ADMIN | 'info@chinesecpc.com' |
SERVER_NAME | 'www.chinesecpc.com' |
SERVER_PORT | '443' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SIGNATURE | ('<address>Apache/2.4.29 (Ubuntu) Server at www.chinesecpc.com Port ' '443</address>\n') |
SERVER_SOFTWARE | 'Apache/2.4.29 (Ubuntu)' |
SSL_TLS_SNI | 'www.chinesecpc.com' |
apache.version | (2, 4, 29) |
mod_wsgi.application_group | 'chinesecpc.com|' |
mod_wsgi.callable_object | 'application' |
mod_wsgi.daemon_connects | '1' |
mod_wsgi.daemon_restarts | '0' |
mod_wsgi.daemon_start | '1710824528848554' |
mod_wsgi.enable_sendfile | '0' |
mod_wsgi.handler_script | '' |
mod_wsgi.ignore_activity | '0' |
mod_wsgi.listener_host | '' |
mod_wsgi.listener_port | '443' |
mod_wsgi.path_info | '/resource_cn' |
mod_wsgi.process_group | 'chinesecpc' |
mod_wsgi.queue_start | '1710824528848381' |
mod_wsgi.request_handler | 'wsgi-script' |
mod_wsgi.request_id | 'LKVQYFSkLVY' |
mod_wsgi.request_start | '1710824528848172' |
mod_wsgi.script_name | '' |
mod_wsgi.script_reloading | '1' |
mod_wsgi.script_start | '1710824528848660' |
mod_wsgi.thread_id | 4 |
mod_wsgi.thread_requests | 98 |
mod_wsgi.total_requests | 616 |
mod_wsgi.version | (4, 5, 17) |
wsgi.errors | <_io.TextIOWrapper name='<wsgi.errors>' encoding='utf-8'> |
wsgi.file_wrapper | '' |
wsgi.input | <mod_wsgi.Input object at 0x7f342d995a40> |
wsgi.multiprocess | False |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
chinesecpc.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['.chinesecpc.com', 'chinesecpc.com', '138.197.135.182', '127.0.0.1', 'localhost', '192.168.2.10'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/home/ccpc/chinesecpc' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql', 'HOST': '138.197.135.182', 'NAME': 'ccpcwebsite', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '5444', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'postgres'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATETIME_FORMAT | 'N j, Y, P' |
DATETIME_INPUT_FORMATS | ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y'] |
DATE_FORMAT | 'N j, Y' |
DATE_INPUT_FORMATS | ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_CONTENT_TYPE | 'text/html' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'localhost' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | '' |
EMAIL_PORT | 25 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | False |
FILE_CHARSET | 'utf-8' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'website'] |
INTERNAL_IPS | [] |
LANGUAGES | [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmål'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
LANGUAGE_CODE | 'en-us' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '/home/ccpc/chinesecpc/media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] |
MIDDLEWARE_CLASSES | ['django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
ROOT_URLCONF | 'chinesecpc.urls' |
SECRET_KEY | '********************' |
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 | 'root@localhost' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | 'sessionid' |
SESSION_COOKIE_PATH | '/' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'chinesecpc.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
STATICFILES_DIRS | [] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/home/ccpc/chinesecpc/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 | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'US/Pacific' |
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 | 'chinesecpc.wsgi.application' |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
YEAR_MONTH_FORMAT | 'F Y' |
You're seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard page generated by the handler for this status code.