'markup' is not a registered tag library. Must be one of: admin_list admin_modify admin_static admin_urls cache i18n l10n log static staticfiles tz
Request Method: | GET |
---|---|
Request URL: | http://www.cthrall.com/post/10 |
Django Version: | 1.11.4 |
Exception Type: | TemplateSyntaxError |
Exception Value: | 'markup' is not a registered tag library. Must be one of: admin_list admin_modify admin_static admin_urls cache i18n l10n log static staticfiles tz |
Exception Location: | /home/cthrall/.virtualenvs/blog/lib/python3.5/site-packages/django/template/defaulttags.py in find_library, line 1042 |
Python Executable: | /usr/bin/python3 |
Python Version: | 3.5.2 |
Python Path: | ['/home/cthrall/src', '/home/cthrall/.virtualenvs/blog/lib/python3.5/site-packages', '/usr/lib/python35.zip', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-x86_64-linux-gnu', '/usr/lib/python3.5/lib-dynload', '/usr/local/lib/python3.5/dist-packages', '/usr/lib/python3/dist-packages'] |
Server time: | Thu, 28 Mar 2024 11:05:31 -0400 |
In template /home/cthrall/src/cthrall/templates/post.html
, error at line 2
1 | {% extends "base.html" %} |
---|---|
2 | {% load markup %} |
3 | |
4 | {% block title %}thrall.net{% endblock %} |
5 | |
6 | {% block content %} |
7 | <h1>{{ post.title }}</h1> |
8 | {{ markdown_content_var|markdown:"safe" }} |
9 | <p>{{ post.body }}</p> |
10 | {% endblock %} |
11 |
/home/cthrall/.virtualenvs/blog/lib/python3.5/site-packages/django/template/defaulttags.py
in find_library
nodelist_false = NodeList()
values = [parser.compile_filter(bit) for bit in bits[1:]]
return IfChangedNode(nodelist_true, nodelist_false, *values)
def find_library(parser, name):
try:
return parser.libraries[name]...
except KeyError:
raise TemplateSyntaxError(
"'%s' is not a registered tag library. Must be one of:\n%s" % (
name, "\n".join(sorted(parser.libraries.keys())),
),
)
Variable | Value |
---|---|
name | 'markup' |
parser | <django.template.base.Parser object at 0x7f0c30deb978> |
/home/cthrall/.virtualenvs/blog/lib/python3.5/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 | TemplateSyntaxError("'markup' is not a registered tag library. Must be one of:\nadmin_list\nadmin_modify\nadmin_static\nadmin_urls\ncache\ni18n\nl10n\nlog\nstatic\nstaticfiles\ntz",) |
get_response | <bound method BaseHandler._legacy_get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f0c335db0b8>> |
request | <WSGIRequest: GET '/post/10'> |
/home/cthrall/.virtualenvs/blog/lib/python3.5/site-packages/django/core/handlers/base.py
in _legacy_get_response
# Apply request middleware
for middleware_method in self._request_middleware:
response = middleware_method(request)
if response:
break
if response is None:
response = self._get_response(request)...
return response
Variable | Value |
---|---|
middleware_method | <bound method MessageMiddleware.process_request of <django.contrib.messages.middleware.MessageMiddleware object at 0x7f0c30ee6ef0>> |
request | <WSGIRequest: GET '/post/10'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f0c335db0b8> |
/home/cthrall/.virtualenvs/blog/lib/python3.5/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 post_by_id at 0x7f0c30df8510> |
callback_args | () |
callback_kwargs | {'id': '10'} |
request | <WSGIRequest: GET '/post/10'> |
resolver | <RegexURLResolver 'cthrall.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=cthrall.blog.views.post_by_id, args=(), kwargs={'id': '10'}, url_name=None, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f0c335db0b8> |
wrapped_callback | <function post_by_id at 0x7f0c30df8510> |
/home/cthrall/.virtualenvs/blog/lib/python3.5/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 post_by_id at 0x7f0c30df8510> |
callback_args | () |
callback_kwargs | {'id': '10'} |
request | <WSGIRequest: GET '/post/10'> |
resolver | <RegexURLResolver 'cthrall.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=cthrall.blog.views.post_by_id, args=(), kwargs={'id': '10'}, url_name=None, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f0c335db0b8> |
wrapped_callback | <function post_by_id at 0x7f0c30df8510> |
/home/cthrall/src/cthrall/blog/views.py
in post_by_id
post = queryset.get()
h = HTMLParser()
post.body = h.unescape(post.body)
logging.info('post_by_id')
return render_to_response('post.html', {
'post': post...
})
def post(request, date=None, time=None):
queryset = { 'queryset': Post.objects.order_by('-created') }
dt = datetime.strptime('%s %s' % (date, time),
'%Y%m%d %H%M%S')
Variable | Value |
---|---|
h | <html.parser.HTMLParser object at 0x7f0c30e174e0> |
id | '10' |
post | <Post: 8.3 Strikes Again> |
queryset | <QuerySet [<Post: 8.3 Strikes Again>]> |
request | <WSGIRequest: GET '/post/10'> |
/home/cthrall/.virtualenvs/blog/lib/python3.5/site-packages/django/shortcuts.py
in render_to_response
def render_to_response(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, using=using)...
return HttpResponse(content, content_type, status)
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
Variable | Value |
---|---|
content_type | None |
context | {'post': <Post: 8.3 Strikes Again>} |
status | None |
template_name | 'post.html' |
using | None |
/home/cthrall/.virtualenvs/blog/lib/python3.5/site-packages/django/template/loader.py
in render_to_string
Loads a template and renders it with a context. Returns a 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 | {'post': <Post: 8.3 Strikes Again>} |
request | None |
template_name | 'post.html' |
using | None |
/home/cthrall/.virtualenvs/blog/lib/python3.5/site-packages/django/template/loader.py
in get_template
Raises TemplateDoesNotExist if no such template exists.
"""
chain = []
engines = _engine_list(using)
for engine in engines:
try:
return engine.get_template(template_name)...
except TemplateDoesNotExist as e:
chain.append(e)
raise TemplateDoesNotExist(template_name, chain=chain)
Variable | Value |
---|---|
chain | [] |
engine | <django.template.backends.django.DjangoTemplates object at 0x7f0c30e17b00> |
engines | [<django.template.backends.django.DjangoTemplates object at 0x7f0c30e17b00>] |
template_name | 'post.html' |
using | None |
/home/cthrall/.virtualenvs/blog/lib/python3.5/site-packages/django/template/backends/django.py
in get_template
self.engine = Engine(self.dirs, self.app_dirs, **options)
def from_string(self, template_code):
return Template(self.engine.from_string(template_code), self)
def get_template(self, template_name):
try:
return Template(self.engine.get_template(template_name), self)...
except TemplateDoesNotExist as exc:
reraise(exc, self)
def get_templatetag_libraries(self, custom_libraries):
"""
Return a collation of template tag libraries from installed
Variable | Value |
---|---|
self | <django.template.backends.django.DjangoTemplates object at 0x7f0c30e17b00> |
template_name | 'post.html' |
/home/cthrall/.virtualenvs/blog/lib/python3.5/site-packages/django/template/engine.py
in get_template
return Template(template_code, engine=self)
def get_template(self, template_name):
"""
Returns a compiled Template object for the given template name,
handling template inheritance recursively.
"""
template, origin = self.find_template(template_name)...
if not hasattr(template, 'render'):
# template needs to be compiled
template = Template(template, origin, template_name, engine=self)
return template
def render_to_string(self, template_name, context=None):
Variable | Value |
---|---|
self | <django.template.engine.Engine object at 0x7f0c30e174a8> |
template_name | 'post.html' |
/home/cthrall/.virtualenvs/blog/lib/python3.5/site-packages/django/template/engine.py
in find_template
def find_template(self, name, dirs=None, skip=None):
tried = []
for loader in self.template_loaders:
if loader.supports_recursion:
try:
template = loader.get_template(
name, template_dirs=dirs, skip=skip,...
)
return template, template.origin
except TemplateDoesNotExist as e:
tried.extend(e.tried)
else:
# RemovedInDjango20Warning: Use old api for non-recursive
Variable | Value |
---|---|
dirs | None |
loader | <django.template.loaders.filesystem.Loader object at 0x7f0c30e13e48> |
name | 'post.html' |
self | <django.template.engine.Engine object at 0x7f0c30e174a8> |
skip | None |
tried | [] |
/home/cthrall/.virtualenvs/blog/lib/python3.5/site-packages/django/template/loaders/base.py
in get_template
try:
contents = self.get_contents(origin)
except TemplateDoesNotExist:
tried.append((origin, 'Source does not exist'))
continue
else:
return Template(
contents, origin, origin.template_name, self.engine,...
)
raise TemplateDoesNotExist(template_name, tried=tried)
def load_template(self, template_name, template_dirs=None):
warnings.warn(
Variable | Value |
---|---|
args | ['post.html', None] |
contents | ('{% extends "base.html" %}\n' '{% load markup %}\n' '\n' '{% block title %}thrall.net{% endblock %}\n' '\n' '{% block content %}\n' '<h1>{{ post.title }}</h1>\n' '{{ markdown_content_var|markdown:"safe" }}\n' '<p>{{ post.body }}</p>\n' '{% endblock %}\n') |
origin | <django.template.base.Origin object at 0x7f0c30ddac18> |
self | <django.template.loaders.filesystem.Loader object at 0x7f0c30e13e48> |
skip | None |
template_dirs | None |
template_name | 'post.html' |
tried | [] |
/home/cthrall/.virtualenvs/blog/lib/python3.5/site-packages/django/template/base.py
in __init__
engine = Engine.get_default()
if origin is None:
origin = Origin(UNKNOWN_SOURCE)
self.name = name
self.origin = origin
self.engine = engine
self.source = template_string
self.nodelist = self.compile_nodelist()...
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
Variable | Value |
---|---|
engine | <django.template.engine.Engine object at 0x7f0c30e174a8> |
name | 'post.html' |
origin | <django.template.base.Origin object at 0x7f0c30ddac18> |
self | <django.template.base.Template object at 0x7f0c30ddafd0> |
template_string | ('{% extends "base.html" %}\n' '{% load markup %}\n' '\n' '{% block title %}thrall.net{% endblock %}\n' '\n' '{% block content %}\n' '<h1>{{ post.title }}</h1>\n' '{{ markdown_content_var|markdown:"safe" }}\n' '<p>{{ post.body }}</p>\n' '{% endblock %}\n') |
/home/cthrall/.virtualenvs/blog/lib/python3.5/site-packages/django/template/base.py
in compile_nodelist
tokens = lexer.tokenize()
parser = Parser(
tokens, self.engine.template_libraries, self.engine.template_builtins,
self.origin,
)
try:
return parser.parse()...
except Exception as e:
if self.engine.debug:
e.template_debug = self.get_exception_info(e, e.token)
raise
def get_exception_info(self, exception, token):
Variable | Value |
---|---|
lexer | <django.template.base.DebugLexer object at 0x7f0c30ddae80> |
parser | <django.template.base.Parser object at 0x7f0c30deb978> |
self | <django.template.base.Template object at 0x7f0c30ddafd0> |
tokens | [<django.template.base.Token object at 0x7f0c30deb550>, <django.template.base.Token object at 0x7f0c30deb588>, <django.template.base.Token object at 0x7f0c30deb5c0>, <django.template.base.Token object at 0x7f0c30deb5f8>, <django.template.base.Token object at 0x7f0c30deb668>, <django.template.base.Token object at 0x7f0c30deb6a0>, <django.template.base.Token object at 0x7f0c30deb710>, <django.template.base.Token object at 0x7f0c30deb748>, <django.template.base.Token object at 0x7f0c30deb7b8>, <django.template.base.Token object at 0x7f0c30deb7f0>, <django.template.base.Token object at 0x7f0c30deb860>, <django.template.base.Token object at 0x7f0c30deb898>, <django.template.base.Token object at 0x7f0c30deb908>, <django.template.base.Token object at 0x7f0c30deb940>, <django.template.base.Token object at 0x7f0c30deb4a8>] |
/home/cthrall/.virtualenvs/blog/lib/python3.5/site-packages/django/template/base.py
in parse
except KeyError:
self.invalid_block_tag(token, command, parse_until)
# Compile the callback into a node object and add it to
# the node list.
try:
compiled_result = compile_func(self, token)
except Exception as e:
raise self.error(token, e)...
self.extend_nodelist(nodelist, compiled_result, token)
# Compile success. Remove the token from the command stack.
self.command_stack.pop()
if parse_until:
self.unclosed_block_tag(parse_until)
return nodelist
Variable | Value |
---|---|
command | 'extends' |
compile_func | <function do_extends at 0x7f0c339bb1e0> |
nodelist | [] |
parse_until | [] |
self | <django.template.base.Parser object at 0x7f0c30deb978> |
token | <django.template.base.Token object at 0x7f0c30deb320> |
/home/cthrall/.virtualenvs/blog/lib/python3.5/site-packages/django/template/base.py
in parse
try:
compile_func = self.tags[command]
except KeyError:
self.invalid_block_tag(token, command, parse_until)
# Compile the callback into a node object and add it to
# the node list.
try:
compiled_result = compile_func(self, token)...
except Exception as e:
raise self.error(token, e)
self.extend_nodelist(nodelist, compiled_result, token)
# Compile success. Remove the token from the command stack.
self.command_stack.pop()
if parse_until:
Variable | Value |
---|---|
command | 'extends' |
compile_func | <function do_extends at 0x7f0c339bb1e0> |
nodelist | [] |
parse_until | [] |
self | <django.template.base.Parser object at 0x7f0c30deb978> |
token | <django.template.base.Token object at 0x7f0c30deb320> |
/home/cthrall/.virtualenvs/blog/lib/python3.5/site-packages/django/template/loader_tags.py
in do_extends
the parent template itself (if it evaluates to a Template object).
"""
bits = token.split_contents()
if len(bits) != 2:
raise TemplateSyntaxError("'%s' takes one argument" % bits[0])
bits[1] = construct_relative_path(parser.origin.template_name, bits[1])
parent_name = parser.compile_filter(bits[1])
nodelist = parser.parse()...
if nodelist.get_nodes_by_type(ExtendsNode):
raise TemplateSyntaxError("'%s' cannot appear more than once in the same template" % bits[0])
return ExtendsNode(nodelist, parent_name)
@register.tag('include')
Variable | Value |
---|---|
bits | ['extends', '"base.html"'] |
parent_name | <django.template.base.FilterExpression object at 0x7f0c30deb9e8> |
parser | <django.template.base.Parser object at 0x7f0c30deb978> |
token | <django.template.base.Token object at 0x7f0c30deb320> |
/home/cthrall/.virtualenvs/blog/lib/python3.5/site-packages/django/template/base.py
in parse
except KeyError:
self.invalid_block_tag(token, command, parse_until)
# Compile the callback into a node object and add it to
# the node list.
try:
compiled_result = compile_func(self, token)
except Exception as e:
raise self.error(token, e)...
self.extend_nodelist(nodelist, compiled_result, token)
# Compile success. Remove the token from the command stack.
self.command_stack.pop()
if parse_until:
self.unclosed_block_tag(parse_until)
return nodelist
Variable | Value |
---|---|
command | 'load' |
compile_func | <function load at 0x7f0c339b20d0> |
nodelist | [<TextNode: '\n'>] |
parse_until | [] |
self | <django.template.base.Parser object at 0x7f0c30deb978> |
token | <django.template.base.Token object at 0x7f0c30deb4e0> |
/home/cthrall/.virtualenvs/blog/lib/python3.5/site-packages/django/template/base.py
in parse
try:
compile_func = self.tags[command]
except KeyError:
self.invalid_block_tag(token, command, parse_until)
# Compile the callback into a node object and add it to
# the node list.
try:
compiled_result = compile_func(self, token)...
except Exception as e:
raise self.error(token, e)
self.extend_nodelist(nodelist, compiled_result, token)
# Compile success. Remove the token from the command stack.
self.command_stack.pop()
if parse_until:
Variable | Value |
---|---|
command | 'load' |
compile_func | <function load at 0x7f0c339b20d0> |
nodelist | [<TextNode: '\n'>] |
parse_until | [] |
self | <django.template.base.Parser object at 0x7f0c30deb978> |
token | <django.template.base.Token object at 0x7f0c30deb4e0> |
/home/cthrall/.virtualenvs/blog/lib/python3.5/site-packages/django/template/defaulttags.py
in load
name = bits[-1]
lib = find_library(parser, name)
subset = load_from_library(lib, name, bits[1:-2])
parser.add_library(subset)
else:
# one or more libraries are specified; load and add them to the parser
for name in bits[1:]:
lib = find_library(parser, name)...
parser.add_library(lib)
return LoadNode()
@register.tag
def lorem(parser, token):
Variable | Value |
---|---|
bits | ['load', 'markup'] |
name | 'markup' |
parser | <django.template.base.Parser object at 0x7f0c30deb978> |
token | <django.template.base.Token object at 0x7f0c30deb4e0> |
/home/cthrall/.virtualenvs/blog/lib/python3.5/site-packages/django/template/defaulttags.py
in find_library
def find_library(parser, name):
try:
return parser.libraries[name]
except KeyError:
raise TemplateSyntaxError(
"'%s' is not a registered tag library. Must be one of:\n%s" % (
name, "\n".join(sorted(parser.libraries.keys())),...
),
)
def load_from_library(library, label, names):
"""
Variable | Value |
---|---|
name | 'markup' |
parser | <django.template.base.Parser object at 0x7f0c30deb978> |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CONTEXT_DOCUMENT_ROOT | '/home/cthrall/src/cthrall' |
CONTEXT_PREFIX | '' |
DOCUMENT_ROOT | '/home/cthrall/src/cthrall' |
GATEWAY_INTERFACE | 'CGI/1.1' |
HTTP_ACCEPT | '*/*' |
HTTP_ACCEPT_ENCODING | 'gzip' |
HTTP_CDN_LOOP | 'cloudflare' |
HTTP_CF_CONNECTING_IP | '44.204.34.64' |
HTTP_CF_IPCOUNTRY | 'US' |
HTTP_CF_RAY | '86b884c1993405c6-EWR' |
HTTP_CF_VISITOR | '{"scheme":"http"}' |
HTTP_CONNECTION | 'Keep-Alive' |
HTTP_HOST | 'www.cthrall.com' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '44.204.34.64' |
HTTP_X_FORWARDED_PROTO | 'http' |
PATH_INFO | '/post/10' |
PATH_TRANSLATED | '/home/cthrall/src/wsgi/cthrall_blog.wsgi/post/10' |
QUERY_STRING | '' |
REMOTE_ADDR | '162.158.62.126' |
REMOTE_PORT | '31414' |
REQUEST_METHOD | 'GET' |
REQUEST_SCHEME | 'http' |
REQUEST_URI | '/post/10' |
SCRIPT_FILENAME | '/home/cthrall/src/wsgi/cthrall_blog.wsgi' |
SCRIPT_NAME | '' |
SERVER_ADDR | '192.241.151.189' |
SERVER_ADMIN | '[no address given]' |
SERVER_NAME | 'www.cthrall.com' |
SERVER_PORT | '80' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SIGNATURE | '<address>Apache/2.4.18 (Ubuntu) Server at www.cthrall.com Port 80</address>\n' |
SERVER_SOFTWARE | 'Apache/2.4.18 (Ubuntu)' |
apache.version | (2, 4, 18) |
mod_wsgi.application_group | 'cthrall.com|' |
mod_wsgi.callable_object | 'application' |
mod_wsgi.enable_sendfile | '0' |
mod_wsgi.handler_script | '' |
mod_wsgi.input_chunked | '0' |
mod_wsgi.listener_host | '' |
mod_wsgi.listener_port | '80' |
mod_wsgi.process_group | '' |
mod_wsgi.request_handler | 'wsgi-script' |
mod_wsgi.request_start | '1711638328600217' |
mod_wsgi.script_reloading | '1' |
mod_wsgi.script_start | '1711638328659955' |
mod_wsgi.version | (4, 3, 0) |
wsgi.errors | <_io.TextIOWrapper encoding='utf-8'> |
wsgi.file_wrapper | '' |
wsgi.input | <mod_wsgi.Input object at 0x7f0c30e162b0> |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
cthrall.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | (('Craig Thrall', '[email protected]'),) |
ADMIN_MEDIA_PREFIX | '/media/' |
ALLOWED_HOSTS | ['localhost', '127.0.0.1', 'www.layr8.com', 'www.cthrall.com', 'www.layr8.com:8000'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
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': 'localhost', 'NAME': 'blog', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'blog'}} |
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.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'django.contrib.messages', 'django.contrib.staticfiles', 'cthrall.blog') |
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 | {'disable_existing_loggers': False, 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}}, 'formatters': {'access': {'format': '%(asctime)s %(levelname)s %(module)s ' '%(message)s'}}, 'handlers': {'console': {'class': 'logging.StreamHandler', 'formatter': 'access', 'level': 'DEBUG'}, 'logfile': {'backupCount': 5, 'class': 'logging.handlers.RotatingFileHandler', 'filename': '/home/cthrall/src/cthrall/logs/blog.log', 'formatter': 'access', 'level': 'INFO', 'maxBytes': 500000}, 'mail_admins': {'class': 'django.utils.log.AdminEmailHandler', 'filters': ['require_debug_false'], 'level': 'ERROR'}}, 'loggers': {'blog': {'handlers': ['console', 'logfile'], 'level': 'DEBUG', 'propagate': False}, 'django.request': {'handlers': ['mail_admins'], 'level': 'ERROR', 'propagate': True}}, 'version': 1} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | (('Craig Thrall', '[email protected]'),) |
MEDIA_ROOT | '' |
MEDIA_URL | '' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | None |
MIDDLEWARE_CLASSES | ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
PROJECT_PATH | '/home/cthrall/src/cthrall' |
ROOT_URLCONF | 'cthrall.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 | 'cthrall.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITE_ID | 1 |
SITE_ROOT | '/home/cthrall/src/cthrall' |
STATICFILES_DIRS | ('/home/cthrall/src/cthrall/static',) |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | None |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/home/cthrall/src/cthrall/templates'], 'OPTIONS': {'context_processors': ['django.contrib.auth.context_processors.auth', 'django.template.context_processors.debug', 'django.template.context_processors.i18n', 'django.template.context_processors.media', 'django.template.context_processors.static', 'django.template.context_processors.tz', 'django.contrib.messages.context_processors.messages']}}] |
TEMPLATE_DEBUG | True |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
TIME_FORMAT | '%Y-%m-%d %I:%M%p %Z' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'America/New_York' |
USE_ETAGS | False |
USE_I18N | True |
USE_L10N | False |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | False |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | None |
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.