The 'product_image1' attribute has no file associated with it.
Request Method: | GET |
---|---|
Request URL: | https://jerroti.com/product/plain/4895/ |
Django Version: | 4.2.3 |
Exception Type: | ValueError |
Exception Value: | The 'product_image1' attribute has no file associated with it. |
Exception Location: | /var/www/enviroment/lib/python3.8/site-packages/django/db/models/fields/files.py, line 41, in _require_file |
Raised during: | appmanagement.views.store |
Python Executable: | /var/www/enviroment/bin/python |
Python Version: | 3.8.10 |
Python Path: | ['/var/www/jerroti', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/var/www/enviroment/lib/python3.8/site-packages'] |
Server time: | Tue, 19 Mar 2024 13:11:09 +0000 |
In template /var/www/jerroti/templates/products.html
, error at line 67
57 | {% endfor %} |
---|---|
58 | </div> |
59 | </div> |
60 | </div> |
61 | <!-- products --> |
62 | <div class="container-fluid"> |
63 | <div class="row row-cols-1 row-cols-md-2 row-cols-lg-4 g-2 g-lg-3 justify-content-center"> |
64 | {% if products %} {% for list in products %} |
65 | <div class="col"> |
66 | <div class="card rounded-3" style="width: auto;"> |
67 | <a href="{{list.get_url_product_detail}}" data-abc="true"> <img src="{{list.product_image1.url}}" class="card-img-top" alt="..."></a> |
68 | <div class="card-body"> |
69 | <span class="text-muted">{{list.main_category}}</span> |
70 | <h5 class="card-title">{{list.name}}</h5> |
71 | <!-- <p class="card-text m-0 fw-bold">₹ {{list.price}}</p> --> |
72 | <p class="card-text desc">{{list.description}}</p> |
73 | <a href="{{list.get_url_product_detail}}" class="btn btn-dark">View Detail</a> |
74 | </div> |
75 | </div> |
76 | </div> |
77 | {% endfor %} {% else %} |
/var/www/enviroment/lib/python3.8/site-packages/django/template/base.py
, line 880, in _resolve_lookup
detail and shouldn't be called by external code. Use Variable.resolve()
instead.
"""
current = context
try: # catch-all for silent variable failures
for bit in self.lookups:
try: # dictionary lookup
current = current[bit]…
# ValueError/IndexError are for numpy.array lookup on
# numpy < 1.9 and 1.9+ respectively
except (TypeError, AttributeError, KeyError, ValueError, IndexError):
try: # attribute lookup
# Don't return class attributes if the class is the context:
if isinstance(current, BaseContext) and getattr(
Variable | Value |
---|---|
bit | 'url' |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'products': <QuerySet [<Product: 4895>]>, 'category': <QuerySet [<MainCategory: Plain>, <MainCategory: Design>, <MainCategory: Jacquard>]>, 'subcategory': <Sub_Category: 4895>}] |
current | <ImageFieldFile: None> |
self | <Variable: 'list.product_image1.url'> |
template_name | 'products.html' |
/var/www/enviroment/lib/python3.8/site-packages/django/core/handlers/exception.py
, line 55, in inner
return inner
else:
@wraps(get_response)
def inner(request):
try:
response = get_response(request)…
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | ValueError("The 'product_image1' attribute has no file associated with it.") |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f534c7469a0>> |
request | <WSGIRequest: GET '/product/plain/4895/'> |
/var/www/enviroment/lib/python3.8/site-packages/django/core/handlers/base.py
, line 197, in _get_response
if response is None:
wrapped_callback = self.make_view_atomic(callback)
# If it is an asynchronous view, run it in a subthread.
if iscoroutinefunction(wrapped_callback):
wrapped_callback = async_to_sync(wrapped_callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)…
except Exception as e:
response = self.process_exception_by_middleware(e, request)
if response is None:
raise
# Complain if the view returned None (a common error).
Variable | Value |
---|---|
callback | <function store at 0x7f5347cd3790> |
callback_args | () |
callback_kwargs | {'category_slug': 'plain', 'subcategory_slug': '4895'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <CsrfViewMiddleware get_response=convert_exception_to_response.<locals>.inner>> |
request | <WSGIRequest: GET '/product/plain/4895/'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f534c7469a0> |
wrapped_callback | <function store at 0x7f5347cd3790> |
/var/www/jerroti/appmanagement/views.py
, line 54, in store
category = MainCategory.objects.all()
context = {
'products': products,
'category':category,
'subcategory':subcategory,
}
return render(request, 'products.html', context)…
def product_detail(request,main_category_slug,subcategory_slug, product_slug):
try:
single_product = Product.objects.get(main_category__slug=main_category_slug,sub_category__slug = subcategory_slug,slug=product_slug)
except Exception as e:
raise e
Variable | Value |
---|---|
category | <QuerySet [<MainCategory: Plain>, <MainCategory: Design>, <MainCategory: Jacquard>]> |
category_slug | 'plain' |
context | {'category': <QuerySet [<MainCategory: Plain>, <MainCategory: Design>, <MainCategory: Jacquard>]>, 'products': <QuerySet [<Product: 4895>]>, 'subcategory': <Sub_Category: 4895>} |
products | <QuerySet [<Product: 4895>]> |
request | <WSGIRequest: GET '/product/plain/4895/'> |
subcategory | <Sub_Category: 4895> |
subcategory_slug | '4895' |
/var/www/enviroment/lib/python3.8/site-packages/django/shortcuts.py
, line 24, in render
def render(
request, template_name, context=None, content_type=None, status=None, using=None
):
"""
Return an HttpResponse whose content is filled with the result of calling
django.template.loader.render_to_string() with the passed arguments.
"""
content = loader.render_to_string(template_name, context, request, using=using)…
return HttpResponse(content, content_type, status)
def redirect(to, *args, permanent=False, **kwargs):
"""
Return an HttpResponseRedirect to the appropriate URL for the arguments
Variable | Value |
---|---|
content_type | None |
context | {'category': <QuerySet [<MainCategory: Plain>, <MainCategory: Design>, <MainCategory: Jacquard>]>, 'products': <QuerySet [<Product: 4895>]>, 'subcategory': <Sub_Category: 4895>} |
request | <WSGIRequest: GET '/product/plain/4895/'> |
status | None |
template_name | 'products.html' |
using | None |
/var/www/enviroment/lib/python3.8/site-packages/django/template/loader.py
, line 62, in render_to_string
template_name may be a string or a list of strings.
"""
if isinstance(template_name, (list, tuple)):
template = select_template(template_name, using=using)
else:
template = get_template(template_name, using=using)
return template.render(context, request)…
def _engine_list(using=None):
return engines.all() if using is None else [engines[using]]
Variable | Value |
---|---|
context | {'category': <QuerySet [<MainCategory: Plain>, <MainCategory: Design>, <MainCategory: Jacquard>]>, 'products': <QuerySet [<Product: 4895>]>, 'subcategory': <Sub_Category: 4895>} |
request | <WSGIRequest: GET '/product/plain/4895/'> |
template | <django.template.backends.django.Template object at 0x7f5347abeb50> |
template_name | 'products.html' |
using | None |
/var/www/enviroment/lib/python3.8/site-packages/django/template/backends/django.py
, line 61, in render
return self.template.origin
def render(self, context=None, request=None):
context = make_context(
context, request, autoescape=self.backend.engine.autoescape
)
try:
return self.template.render(context)…
except TemplateDoesNotExist as exc:
reraise(exc, self.backend)
def copy_exception(exc, backend=None):
"""
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'products': <QuerySet [<Product: 4895>]>, 'category': <QuerySet [<MainCategory: Plain>, <MainCategory: Design>, <MainCategory: Jacquard>]>, 'subcategory': <Sub_Category: 4895>}] |
request | <WSGIRequest: GET '/product/plain/4895/'> |
self | <django.template.backends.django.Template object at 0x7f5347abeb50> |
/var/www/enviroment/lib/python3.8/site-packages/django/template/base.py
, line 175, in render
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
context.template_name = self.name
return self._render(context)…
else:
return self._render(context)
def compile_nodelist(self):
"""
Parse and compile the template source into a nodelist. If debug
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'products': <QuerySet [<Product: 4895>]>, 'category': <QuerySet [<MainCategory: Plain>, <MainCategory: Design>, <MainCategory: Jacquard>]>, 'subcategory': <Sub_Category: 4895>}] |
self | <Template template_string="{% extends "base.htm..."> |
/var/www/enviroment/lib/python3.8/site-packages/django/template/base.py
, line 167, in _render
def __repr__(self):
return '<%s template_string="%s...">' % (
self.__class__.__qualname__,
self.source[:20].replace("\n", ""),
)
def _render(self, context):
return self.nodelist.render(context)…
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'products': <QuerySet [<Product: 4895>]>, 'category': <QuerySet [<MainCategory: Plain>, <MainCategory: Design>, <MainCategory: Jacquard>]>, 'subcategory': <Sub_Category: 4895>}] |
self | <Template template_string="{% extends "base.htm..."> |
/var/www/enviroment/lib/python3.8/site-packages/django/template/base.py
, line 1005, in render
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'products': <QuerySet [<Product: 4895>]>, 'category': <QuerySet [<MainCategory: Plain>, <MainCategory: Design>, <MainCategory: Jacquard>]>, 'subcategory': <Sub_Category: 4895>}] |
self | [<ExtendsNode: extends "base.html">] |
/var/www/enviroment/lib/python3.8/site-packages/django/template/base.py
, line 1005, in <listcomp>
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
.0 | <list_iterator object at 0x7f5347a634f0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'products': <QuerySet [<Product: 4895>]>, 'category': <QuerySet [<MainCategory: Plain>, <MainCategory: Design>, <MainCategory: Jacquard>]>, 'subcategory': <Sub_Category: 4895>}] |
node | <ExtendsNode: extends "base.html"> |
/var/www/enviroment/lib/python3.8/site-packages/django/template/base.py
, line 966, 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:
# Store the actual node that caused the exception.
if not hasattr(e, "_culprit_node"):
e._culprit_node = self
if (
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'products': <QuerySet [<Product: 4895>]>, 'category': <QuerySet [<MainCategory: Plain>, <MainCategory: Design>, <MainCategory: Jacquard>]>, 'subcategory': <Sub_Category: 4895>}] |
self | <ExtendsNode: extends "base.html"> |
/var/www/enviroment/lib/python3.8/site-packages/django/template/loader_tags.py
, line 157, in render
}
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__(
Variable | Value |
---|---|
block_context | <BlockContext: blocks=defaultdict(<class 'list'>, {'title': [<Block Node: title. Contents: []>, <Block Node: title. Contents: [<TextNode: 'Home'>]>], 'content': [<Block Node: content. Contents: [<TextNode: ' '>]>]})> |
blocks | {'content': <Block Node: content. Contents: [<TextNode: ' '>]>, 'title': <Block Node: title. Contents: []>} |
compiled_parent | <Template template_string="{% load static %}<!..."> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'products': <QuerySet [<Product: 4895>]>, 'category': <QuerySet [<MainCategory: Plain>, <MainCategory: Design>, <MainCategory: Jacquard>]>, 'subcategory': <Sub_Category: 4895>}] |
node | <django.template.defaulttags.LoadNode object at 0x7f5347ca2ca0> |
self | <ExtendsNode: extends "base.html"> |
/var/www/enviroment/lib/python3.8/site-packages/django/template/base.py
, line 167, in _render
def __repr__(self):
return '<%s template_string="%s...">' % (
self.__class__.__qualname__,
self.source[:20].replace("\n", ""),
)
def _render(self, context):
return self.nodelist.render(context)…
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'products': <QuerySet [<Product: 4895>]>, 'category': <QuerySet [<MainCategory: Plain>, <MainCategory: Design>, <MainCategory: Jacquard>]>, 'subcategory': <Sub_Category: 4895>}] |
self | <Template template_string="{% load static %}<!..."> |
/var/www/enviroment/lib/python3.8/site-packages/django/template/base.py
, line 1005, in render
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'products': <QuerySet [<Product: 4895>]>, 'category': <QuerySet [<MainCategory: Plain>, <MainCategory: Design>, <MainCategory: Jacquard>]>, 'subcategory': <Sub_Category: 4895>}] |
self | [<django.template.defaulttags.LoadNode object at 0x7f5347ca2ca0>, <TextNode: '\n<!doctype html>\n<html la'>, StaticNode(varname=None, path=<FilterExpression "'css/style.css'">), <TextNode: '">\n <link rel="stylesh'>, <Block Node: title. Contents: []>, <TextNode: '</title>\n\t<link rel="icon'>, StaticNode(varname=None, path=<FilterExpression "'images/logo.png'">), <TextNode: '">\n</head>\n\n<body>\n <d'>, StaticNode(varname=None, path=<FilterExpression "'images/clogo.png'">), <TextNode: '" width="100" height="100'>, <IfNode>, <TextNode: '\n <button onclick='>, <IncludeNode: template=<FilterExpression '"include/header.html"'>>, <TextNode: ' '>, <Block Node: content. Contents: [<TextNode: ' '>]>, <TextNode: ' '>, <IncludeNode: template=<FilterExpression '"include/footer.html"'>>, <TextNode: '\n </main>\n</body>\n<scr'>, StaticNode(varname=None, path=<FilterExpression "'js/script.js'">), <TextNode: '"></script>\n\n</html>\n'>] |
/var/www/enviroment/lib/python3.8/site-packages/django/template/base.py
, line 1005, in <listcomp>
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
.0 | <list_iterator object at 0x7f5347a63760> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'products': <QuerySet [<Product: 4895>]>, 'category': <QuerySet [<MainCategory: Plain>, <MainCategory: Design>, <MainCategory: Jacquard>]>, 'subcategory': <Sub_Category: 4895>}] |
node | <Block Node: content. Contents: [<TextNode: ' '>]> |
/var/www/enviroment/lib/python3.8/site-packages/django/template/base.py
, line 966, 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:
# Store the actual node that caused the exception.
if not hasattr(e, "_culprit_node"):
e._culprit_node = self
if (
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'products': <QuerySet [<Product: 4895>]>, 'category': <QuerySet [<MainCategory: Plain>, <MainCategory: Design>, <MainCategory: Jacquard>]>, 'subcategory': <Sub_Category: 4895>}] |
self | <Block Node: content. Contents: [<TextNode: ' '>]> |
/var/www/enviroment/lib/python3.8/site-packages/django/template/loader_tags.py
, line 63, 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<section class="products'>, <URLNode view_name=''home'' args=[] kwargs={} as=None>, <TextNode: '">Home</a></li>\n '>, <URLNode view_name=''product'' args=[] kwargs={} as=None>, <TextNode: '">\n <i'>, <ForNode: for all_category in category, tail_len: 9>, <TextNode: '\n </div>\n '>, <IfNode>, <TextNode: '\n </div>\n <'>, <IfNode>, <TextNode: '\n </nav>\n </div'>]> |
block_context | <BlockContext: blocks=defaultdict(<class 'list'>, {'title': [<Block Node: title. Contents: []>, <Block Node: title. Contents: [<TextNode: 'Home'>]>], 'content': [<Block Node: content. Contents: [<TextNode: ' '>]>]})> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'products': <QuerySet [<Product: 4895>]>, 'category': <QuerySet [<MainCategory: Plain>, <MainCategory: Design>, <MainCategory: Jacquard>]>, 'subcategory': <Sub_Category: 4895>}] |
push | <Block Node: content. Contents: [<TextNode: '\n<section class="products'>, <URLNode view_name=''home'' args=[] kwargs={} as=None>, <TextNode: '">Home</a></li>\n '>, <URLNode view_name=''product'' args=[] kwargs={} as=None>, <TextNode: '">\n <i'>, <ForNode: for all_category in category, tail_len: 9>, <TextNode: '\n </div>\n '>, <IfNode>, <TextNode: '\n </div>\n <'>, <IfNode>, <TextNode: '\n </nav>\n </div'>]> |
self | <Block Node: content. Contents: [<TextNode: ' '>]> |
/var/www/enviroment/lib/python3.8/site-packages/django/template/base.py
, line 1005, in render
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'products': <QuerySet [<Product: 4895>]>, 'category': <QuerySet [<MainCategory: Plain>, <MainCategory: Design>, <MainCategory: Jacquard>]>, 'subcategory': <Sub_Category: 4895>}] |
self | [<TextNode: '\n<section class="products'>, <URLNode view_name=''home'' args=[] kwargs={} as=None>, <TextNode: '">Home</a></li>\n '>, <URLNode view_name=''product'' args=[] kwargs={} as=None>, <TextNode: '">\n <i'>, <ForNode: for all_category in category, tail_len: 9>, <TextNode: '\n </div>\n '>, <IfNode>, <TextNode: '\n </div>\n <'>, <IfNode>, <TextNode: '\n </nav>\n </div'>] |
/var/www/enviroment/lib/python3.8/site-packages/django/template/base.py
, line 1005, in <listcomp>
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
.0 | <list_iterator object at 0x7f5347a637f0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'products': <QuerySet [<Product: 4895>]>, 'category': <QuerySet [<MainCategory: Plain>, <MainCategory: Design>, <MainCategory: Jacquard>]>, 'subcategory': <Sub_Category: 4895>}] |
node | <IfNode> |
/var/www/enviroment/lib/python3.8/site-packages/django/template/base.py
, line 966, 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:
# Store the actual node that caused the exception.
if not hasattr(e, "_culprit_node"):
e._culprit_node = self
if (
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'products': <QuerySet [<Product: 4895>]>, 'category': <QuerySet [<MainCategory: Plain>, <MainCategory: Design>, <MainCategory: Jacquard>]>, 'subcategory': <Sub_Category: 4895>}] |
self | <IfNode> |
/var/www/enviroment/lib/python3.8/site-packages/django/template/defaulttags.py
, line 321, in render
match = condition.eval(context)
except VariableDoesNotExist:
match = None
else: # else clause
match = True
if match:
return nodelist.render(context)…
return ""
class LoremNode(Node):
def __init__(self, count, method, common):
Variable | Value |
---|---|
condition | (literal <FilterExpression 'products'>) |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'products': <QuerySet [<Product: 4895>]>, 'category': <QuerySet [<MainCategory: Plain>, <MainCategory: Design>, <MainCategory: Jacquard>]>, 'subcategory': <Sub_Category: 4895>}] |
match | <QuerySet [<Product: 4895>]> |
nodelist | [<TextNode: ' '>, <ForNode: for list in products, tail_len: 15>, <TextNode: ' '>] |
self | <IfNode> |
/var/www/enviroment/lib/python3.8/site-packages/django/template/base.py
, line 1005, in render
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'products': <QuerySet [<Product: 4895>]>, 'category': <QuerySet [<MainCategory: Plain>, <MainCategory: Design>, <MainCategory: Jacquard>]>, 'subcategory': <Sub_Category: 4895>}] |
self | [<TextNode: ' '>, <ForNode: for list in products, tail_len: 15>, <TextNode: ' '>] |
/var/www/enviroment/lib/python3.8/site-packages/django/template/base.py
, line 1005, in <listcomp>
class NodeList(list):
# Set to True the first time a non-TextNode is inserted by
# extend_nodelist().
contains_nontext = False
def render(self, context):
return SafeString("".join([node.render_annotated(context) for node in self]))…
def get_nodes_by_type(self, nodetype):
"Return a list of all nodes of the given type"
nodes = []
for node in self:
nodes.extend(node.get_nodes_by_type(nodetype))
Variable | Value |
---|---|
.0 | <list_iterator object at 0x7f5347a634c0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'products': <QuerySet [<Product: 4895>]>, 'category': <QuerySet [<MainCategory: Plain>, <MainCategory: Design>, <MainCategory: Jacquard>]>, 'subcategory': <Sub_Category: 4895>}] |
node | <ForNode: for list in products, tail_len: 15> |
/var/www/enviroment/lib/python3.8/site-packages/django/template/base.py
, line 966, 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:
# Store the actual node that caused the exception.
if not hasattr(e, "_culprit_node"):
e._culprit_node = self
if (
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'products': <QuerySet [<Product: 4895>]>, 'category': <QuerySet [<MainCategory: Plain>, <MainCategory: Design>, <MainCategory: Jacquard>]>, 'subcategory': <Sub_Category: 4895>}] |
self | <ForNode: for list in products, tail_len: 15> |
/var/www/enviroment/lib/python3.8/site-packages/django/template/defaulttags.py
, line 238, in render
unpacked_vars = dict(zip(self.loopvars, item))
pop_context = True
context.update(unpacked_vars)
else:
context[self.loopvars[0]] = item
for node in self.nodelist_loop:
nodelist.append(node.render_annotated(context))…
if pop_context:
# Pop the loop variables pushed on to the context to avoid
# the context ending up in an inconsistent state when other
# tags (e.g., include and with) push data to context.
context.pop()
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'products': <QuerySet [<Product: 4895>]>, 'category': <QuerySet [<MainCategory: Plain>, <MainCategory: Design>, <MainCategory: Jacquard>]>, 'subcategory': <Sub_Category: 4895>}] |
i | 0 |
item | <Product: 4895> |
len_values | 1 |
loop_dict | {'counter': 1, 'counter0': 0, 'first': True, 'last': True, 'parentloop': {}, 'revcounter': 1, 'revcounter0': 0} |
node | <Variable Node: list.product_image1.url> |
nodelist | ['\n' ' <div class="col">\n' ' <div class="card rounded-3" style="width: auto;">\n' ' <a href="', '/product/plain/4895/4895/', '" data-abc="true"> <img src="'] |
num_loopvars | 1 |
parentloop | {} |
pop_context | False |
self | <ForNode: for list in products, tail_len: 15> |
unpack | False |
values | <QuerySet [<Product: 4895>]> |
/var/www/enviroment/lib/python3.8/site-packages/django/template/base.py
, line 966, 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:
# Store the actual node that caused the exception.
if not hasattr(e, "_culprit_node"):
e._culprit_node = self
if (
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'products': <QuerySet [<Product: 4895>]>, 'category': <QuerySet [<MainCategory: Plain>, <MainCategory: Design>, <MainCategory: Jacquard>]>, 'subcategory': <Sub_Category: 4895>}] |
self | <Variable Node: list.product_image1.url> |
/var/www/enviroment/lib/python3.8/site-packages/django/template/base.py
, line 1064, in render
self.filter_expression = filter_expression
def __repr__(self):
return "<Variable Node: %s>" % self.filter_expression
def render(self, context):
try:
output = self.filter_expression.resolve(context)…
except UnicodeDecodeError:
# Unicode conversion can fail sometimes for reasons out of our
# control (e.g. exception rendering). In that case, we fail
# quietly.
return ""
return render_value_in_context(output, context)
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'products': <QuerySet [<Product: 4895>]>, 'category': <QuerySet [<MainCategory: Plain>, <MainCategory: Design>, <MainCategory: Jacquard>]>, 'subcategory': <Sub_Category: 4895>}] |
self | <Variable Node: list.product_image1.url> |
/var/www/enviroment/lib/python3.8/site-packages/django/template/base.py
, line 715, in resolve
self.filters = filters
self.var = var_obj
self.is_var = isinstance(var_obj, Variable)
def resolve(self, context, ignore_failures=False):
if self.is_var:
try:
obj = self.var.resolve(context)…
except VariableDoesNotExist:
if ignore_failures:
obj = None
else:
string_if_invalid = context.template.engine.string_if_invalid
if string_if_invalid:
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'products': <QuerySet [<Product: 4895>]>, 'category': <QuerySet [<MainCategory: Plain>, <MainCategory: Design>, <MainCategory: Jacquard>]>, 'subcategory': <Sub_Category: 4895>}] |
ignore_failures | False |
self | <FilterExpression 'list.product_image1.url'> |
/var/www/enviroment/lib/python3.8/site-packages/django/template/base.py
, line 847, in resolve
)
self.lookups = tuple(var.split(VARIABLE_ATTRIBUTE_SEPARATOR))
def resolve(self, context):
"""Resolve this variable against a given context."""
if self.lookups is not None:
# We're dealing with a variable that needs to be resolved
value = self._resolve_lookup(context)…
else:
# We're dealing with a literal, so it's already been "resolved"
value = self.literal
if self.translate:
is_safe = isinstance(value, SafeData)
msgid = value.replace("%", "%%")
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'products': <QuerySet [<Product: 4895>]>, 'category': <QuerySet [<MainCategory: Plain>, <MainCategory: Design>, <MainCategory: Jacquard>]>, 'subcategory': <Sub_Category: 4895>}] |
self | <Variable: 'list.product_image1.url'> |
/var/www/enviroment/lib/python3.8/site-packages/django/template/base.py
, line 890, in _resolve_lookup
except (TypeError, AttributeError, KeyError, ValueError, IndexError):
try: # attribute lookup
# Don't return class attributes if the class is the context:
if isinstance(current, BaseContext) and getattr(
type(current), bit
):
raise AttributeError
current = getattr(current, bit)…
except (TypeError, AttributeError):
# Reraise if the exception was raised by a @property
if not isinstance(current, BaseContext) and bit in dir(current):
raise
try: # list-index lookup
current = current[int(bit)]
Variable | Value |
---|---|
bit | 'url' |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'products': <QuerySet [<Product: 4895>]>, 'category': <QuerySet [<MainCategory: Plain>, <MainCategory: Design>, <MainCategory: Jacquard>]>, 'subcategory': <Sub_Category: 4895>}] |
current | <ImageFieldFile: None> |
self | <Variable: 'list.product_image1.url'> |
template_name | 'products.html' |
/var/www/enviroment/lib/python3.8/site-packages/django/db/models/fields/files.py
, line 66, in url
@property
def path(self):
self._require_file()
return self.storage.path(self.name)
@property
def url(self):
self._require_file()…
return self.storage.url(self.name)
@property
def size(self):
self._require_file()
if not self._committed:
Variable | Value |
---|---|
self | <ImageFieldFile: None> |
/var/www/enviroment/lib/python3.8/site-packages/django/db/models/fields/files.py
, line 41, in _require_file
# The standard File contains most of the necessary properties, but
# FieldFiles can be instantiated without a name, so that needs to
# be checked for here.
def _require_file(self):
if not self:
raise ValueError(…
"The '%s' attribute has no file associated with it." % self.field.name
)
def _get_file(self):
self._require_file()
if getattr(self, "_file", None) is None:
Variable | Value |
---|---|
self | <ImageFieldFile: None> |
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 | 'jerroti.com' |
HTTP_USER_AGENT | 'claudebot' |
PATH_INFO | '/product/plain/4895/' |
PATH_TRANSLATED | '/var/www/jerroti/jerroti/wsgi.py/product/plain/4895/' |
QUERY_STRING | '' |
REMOTE_ADDR | '54.172.169.199' |
REMOTE_PORT | '43228' |
REQUEST_METHOD | 'GET' |
REQUEST_SCHEME | 'https' |
REQUEST_URI | '/product/plain/4895/' |
SCRIPT_FILENAME | '/var/www/jerroti/jerroti/wsgi.py' |
SCRIPT_NAME | '' |
SERVER_ADDR | '154.41.254.141' |
SERVER_ADMIN | 'webmaster@localhost' |
SERVER_NAME | 'jerroti.com' |
SERVER_PORT | '443' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SIGNATURE | '********************' |
SERVER_SOFTWARE | 'Apache/2.4.41 (Ubuntu)' |
SSL_TLS_SNI | 'jerroti.com' |
apache.version | (2, 4, 41) |
mod_wsgi.application_group | 'www.jerroti.com|' |
mod_wsgi.callable_object | 'application' |
mod_wsgi.daemon_connects | '1' |
mod_wsgi.daemon_restarts | '0' |
mod_wsgi.daemon_start | '1710853869228646' |
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 | '/product/plain/4895/' |
mod_wsgi.process_group | 'jerroti' |
mod_wsgi.queue_start | '1710853869228539' |
mod_wsgi.request_handler | 'wsgi-script' |
mod_wsgi.request_id | 'hFEjNQsWKVc' |
mod_wsgi.request_start | '1710853869228420' |
mod_wsgi.script_name | '' |
mod_wsgi.script_reloading | '1' |
mod_wsgi.script_start | '1710853869228741' |
mod_wsgi.thread_id | 1 |
mod_wsgi.thread_requests | 21 |
mod_wsgi.total_requests | 42 |
mod_wsgi.version | (4, 6, 8) |
wsgi.errors | <_io.TextIOWrapper name='<wsgi.errors>' encoding='utf-8'> |
wsgi.file_wrapper | <class 'mod_wsgi.FileWrapper'> |
wsgi.input | <mod_wsgi.Input object at 0x7f5347aaff80> |
wsgi.input_terminated | True |
wsgi.multiprocess | False |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
jerroti.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['*'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | PosixPath('/var/www/jerroti') |
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_MASKED | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SAMESITE | 'Lax' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_HEALTH_CHECKS': False, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.sqlite3', 'HOST': '', 'NAME': PosixPath('/var/www/jerroti/db.sqlite3'), 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': ''}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATA_UPLOAD_MAX_NUMBER_FILES | 100 |
DATETIME_FORMAT | 'N j, Y, P' |
DATETIME_INPUT_FORMATS | ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M'] |
DATE_FORMAT | 'N j, Y' |
DATE_INPUT_FORMATS | ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_AUTO_FIELD | 'django.db.models.BigAutoField' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_EXCEPTION_REPORTER | 'django.views.debug.ExceptionReporter' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'localhost' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | '' |
EMAIL_PORT | 25 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | False |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | 420 |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'appmanagement.apps.AppmanagementConfig'] |
INTERNAL_IPS | [] |
LANGUAGES | [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ar-dz', 'Algerian Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('ckb', 'Central Kurdish (Sorani)'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('hy', 'Armenian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('ig', 'Igbo'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('ky', 'Kyrgyz'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('ms', 'Malay'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmål'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('tg', 'Tajik'), ('th', 'Thai'), ('tk', 'Turkmen'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('uz', 'Uzbek'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] |
LANGUAGES_BIDI | ['he', 'ar', 'ar-dz', 'ckb', 'fa', 'ur'] |
LANGUAGE_CODE | 'en-us' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_HTTPONLY | False |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LANGUAGE_COOKIE_SAMESITE | None |
LANGUAGE_COOKIE_SECURE | False |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '/var/www/jerroti/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'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT | '********************' |
PREPEND_WWW | False |
ROOT_URLCONF | 'jerroti.urls' |
SECRET_KEY | '********************' |
SECRET_KEY_FALLBACKS | '********************' |
SECURE_CONTENT_TYPE_NOSNIFF | True |
SECURE_CROSS_ORIGIN_OPENER_POLICY | 'same-origin' |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_REFERRER_POLICY | 'same-origin' |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'root@localhost' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | 'sessionid' |
SESSION_COOKIE_PATH | '/' |
SESSION_COOKIE_SAMESITE | 'Lax' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'jerroti.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 | ['/var/www/jerroti/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/' |
STORAGES | {'default': {'BACKEND': 'django.core.files.storage.FileSystemStorage'}, 'staticfiles': {'BACKEND': 'django.contrib.staticfiles.storage.StaticFilesStorage'}} |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/var/www/jerroti/templates'], '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 | 'UTC' |
USE_DEPRECATED_PYTZ | 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 | 'jerroti.wsgi.application' |
X_FRAME_OPTIONS | 'DENY' |
YEAR_MONTH_FORMAT | 'F Y' |
You’re seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard page generated by the handler for this status code.