Failed lookup for key [desc] in 'None'
Request Method: | GET |
---|---|
Request URL: | http://eorjin.orjinautomotive.com/products/?select=4952 |
Django Version: | 1.11.20 |
Exception Type: | VariableDoesNotExist |
Exception Value: | Failed lookup for key [desc] in 'None' |
Exception Location: | /usr/local/lib/python3.6/site-packages/django/template/base.py in _resolve_lookup, line 903 |
Python Executable: | /usr/bin/python3 |
Python Version: | 3.6.8 |
Python Path: | ['/home/orjinapc/domains/apc.orjinautomotive.com/public_html', '/usr/lib64/python36.zip', '/usr/lib64/python3.6', '/usr/lib64/python3.6/lib-dynload', '/usr/local/lib64/python3.6/site-packages', '/usr/local/lib/python3.6/site-packages', '/usr/lib64/python3.6/site-packages', '/usr/lib/python3.6/site-packages', '/home/orjinapc/public_html/'] |
Server time: | Fri, 29 Mar 2024 01:10:20 +0300 |
In template /home/orjinapc/domains/apc.orjinautomotive.com/public_html/templates/index.htm
, error at line 0
1 | {% load cxTpl %} |
---|---|
2 | {% load cxMod %} |
3 | {% load i18n %} |
4 | <!doctype html> |
5 | <html> |
6 | <head> |
7 | <meta charset="utf-8"> |
8 | <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no"> |
9 | <title>{% block title %}{% cxConf CX_PAGE_TITLE %}{% endblock %} | eorjin.orjinautomotive.com</title> |
10 | <meta name="keywords" content="{% cxConf CX_PAGE_KEYWORDS %}" /> |
/usr/local/lib/python3.6/site-packages/django/template/base.py
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(type(current), bit):
Variable | Value |
---|---|
bit | 'desc' |
context | [{'True': True, 'False': False, 'None': None, 'mtop': <icerix.cxviews.models.cxApps object at 0x7f38bbc67fd0>, 'mbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60cc0>, 'msoc': <icerix.cxviews.models.cxApps object at 0x7f38bbc604e0>, 'pbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60898>, 'prds': <icerix.cxviews.models.cxApps object at 0x7f38bbc6ab70>, 'c': <icerix.cxviews.models.cxApps object at 0x7f38bbc6a7b8>}, {}, {}, {'urlid': '', 'urlmd': 'products', 'request': <WSGIRequest: GET '/products/?select=4952'>, 'CX_PAGE_KEYWORDS': '', 'CX_PAGE_DESCRIPTION': '', 'LANGUAGE_CODE': 'en', 'LANGUAGES': [('tr', 'Turkce'), ('en', 'English')], 'languages': [{'bidi': False, 'code': 'tr', 'name': 'Turkish', 'name_local': 'Türkçe', 'name_translated': 'Turkish'}, {'bidi': False, 'code': 'en', 'name': 'English', 'name_local': 'English', 'name_translated': 'English'}]}] |
current | None |
self | <Variable: 'c.detail.desc'> |
template_name | 'products-list.htm' |
/usr/local/lib/python3.6/site-packages/django/template/base.py
in _resolve_lookup
# 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(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 | 'desc' |
context | [{'True': True, 'False': False, 'None': None, 'mtop': <icerix.cxviews.models.cxApps object at 0x7f38bbc67fd0>, 'mbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60cc0>, 'msoc': <icerix.cxviews.models.cxApps object at 0x7f38bbc604e0>, 'pbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60898>, 'prds': <icerix.cxviews.models.cxApps object at 0x7f38bbc6ab70>, 'c': <icerix.cxviews.models.cxApps object at 0x7f38bbc6a7b8>}, {}, {}, {'urlid': '', 'urlmd': 'products', 'request': <WSGIRequest: GET '/products/?select=4952'>, 'CX_PAGE_KEYWORDS': '', 'CX_PAGE_DESCRIPTION': '', 'LANGUAGE_CODE': 'en', 'LANGUAGES': [('tr', 'Turkce'), ('en', 'English')], 'languages': [{'bidi': False, 'code': 'tr', 'name': 'Turkish', 'name_local': 'Türkçe', 'name_translated': 'Turkish'}, {'bidi': False, 'code': 'en', 'name': 'English', 'name_local': 'English', 'name_translated': 'English'}]}] |
current | None |
self | <Variable: 'c.detail.desc'> |
template_name | 'products-list.htm' |
/usr/local/lib/python3.6/site-packages/django/template/base.py
in _resolve_lookup
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)]...
except (IndexError, # list index out of range
ValueError, # invalid literal for int()
KeyError, # current is a dict without `int(bit)` key
TypeError): # unsubscriptable object
raise VariableDoesNotExist("Failed lookup for key "
"[%s] in %r",
Variable | Value |
---|---|
bit | 'desc' |
context | [{'True': True, 'False': False, 'None': None, 'mtop': <icerix.cxviews.models.cxApps object at 0x7f38bbc67fd0>, 'mbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60cc0>, 'msoc': <icerix.cxviews.models.cxApps object at 0x7f38bbc604e0>, 'pbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60898>, 'prds': <icerix.cxviews.models.cxApps object at 0x7f38bbc6ab70>, 'c': <icerix.cxviews.models.cxApps object at 0x7f38bbc6a7b8>}, {}, {}, {'urlid': '', 'urlmd': 'products', 'request': <WSGIRequest: GET '/products/?select=4952'>, 'CX_PAGE_KEYWORDS': '', 'CX_PAGE_DESCRIPTION': '', 'LANGUAGE_CODE': 'en', 'LANGUAGES': [('tr', 'Turkce'), ('en', 'English')], 'languages': [{'bidi': False, 'code': 'tr', 'name': 'Turkish', 'name_local': 'Türkçe', 'name_translated': 'Turkish'}, {'bidi': False, 'code': 'en', 'name': 'English', 'name_local': 'English', 'name_translated': 'English'}]}] |
current | None |
self | <Variable: 'c.detail.desc'> |
template_name | 'products-list.htm' |
/usr/local/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 | VariableDoesNotExist('Failed lookup for key [%s] in %r', ('desc', None)) |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f38c06bfc88>> |
request | <WSGIRequest: GET '/products/?select=4952'> |
/usr/local/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 cxView at 0x7f38bc1206a8> |
callback_args | () |
callback_kwargs | {'urlid': '', 'urlmd': 'products'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f38bc3abf60>> |
request | <WSGIRequest: GET '/products/?select=4952'> |
resolver | <RegexURLResolver 'mysite.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=icerix.cxviews.views.cxView, args=(), kwargs={'urlmd': 'products', 'urlid': ''}, url_name=None, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f38c06bfc88> |
wrapped_callback | <function cxView at 0x7f38bc1206a8> |
/usr/local/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 cxView at 0x7f38bc1206a8> |
callback_args | () |
callback_kwargs | {'urlid': '', 'urlmd': 'products'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f38bc3abf60>> |
request | <WSGIRequest: GET '/products/?select=4952'> |
resolver | <RegexURLResolver 'mysite.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=icerix.cxviews.views.cxView, args=(), kwargs={'urlmd': 'products', 'urlid': ''}, url_name=None, app_names=[], namespaces=[]) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f38c06bfc88> |
wrapped_callback | <function cxView at 0x7f38bc1206a8> |
/usr/local/lib/python3.6/site-packages/icerix/cxviews/views.py
in cxView
def cxView(request, urlmd, urlid):
get_lang(request)
if not urlid :
if os.path.exists('%s/templates/%s.htm' % (settings.BASE_DIR,urlmd)) : #products.htm
return render(request,"%s.htm" % urlmd,locals())
elif os.path.exists('%s/templates/%s-list.htm' % (settings.BASE_DIR,urlmd)) : #products-list.htm
return render(request,"%s-list.htm" % urlmd,locals())...
else : #list.htm
return render(request,"list.htm",locals())
else :
if os.path.exists('%s/templates/%s-%s.htm' % (settings.BASE_DIR,urlmd,urlid)) : #products-galeri.htm
return render(request,"%s-%s.htm" % (urlmd,urlid),locals())
elif os.path.exists('%s/templates/%s-detail.htm' % (settings.BASE_DIR,urlmd)) : #products-detail.htm
Variable | Value |
---|---|
request | <WSGIRequest: GET '/products/?select=4952'> |
urlid | '' |
urlmd | 'products' |
/usr/local/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 | {'request': <WSGIRequest: GET '/products/?select=4952'>, 'urlid': '', 'urlmd': 'products'} |
request | <WSGIRequest: GET '/products/?select=4952'> |
status | None |
template_name | 'products-list.htm' |
using | None |
/usr/local/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 | {'request': <WSGIRequest: GET '/products/?select=4952'>, 'urlid': '', 'urlmd': 'products'} |
request | <WSGIRequest: GET '/products/?select=4952'> |
template | <django.template.backends.django.Template object at 0x7f38bbcb0588> |
template_name | 'products-list.htm' |
using | None |
/usr/local/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 | [{'True': True, 'False': False, 'None': None, 'mtop': <icerix.cxviews.models.cxApps object at 0x7f38bbc67fd0>, 'mbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60cc0>, 'msoc': <icerix.cxviews.models.cxApps object at 0x7f38bbc604e0>, 'pbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60898>, 'prds': <icerix.cxviews.models.cxApps object at 0x7f38bbc6ab70>, 'c': <icerix.cxviews.models.cxApps object at 0x7f38bbc6a7b8>}, {}, {}, {'urlid': '', 'urlmd': 'products', 'request': <WSGIRequest: GET '/products/?select=4952'>, 'CX_PAGE_KEYWORDS': '', 'CX_PAGE_DESCRIPTION': '', 'LANGUAGE_CODE': 'en', 'LANGUAGES': [('tr', 'Turkce'), ('en', 'English')], 'languages': [{'bidi': False, 'code': 'tr', 'name': 'Turkish', 'name_local': 'Türkçe', 'name_translated': 'Turkish'}, {'bidi': False, 'code': 'en', 'name': 'English', 'name_local': 'English', 'name_translated': 'English'}]}] |
request | <WSGIRequest: GET '/products/?select=4952'> |
self | <django.template.backends.django.Template object at 0x7f38bbcb0588> |
/usr/local/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 | [{'True': True, 'False': False, 'None': None, 'mtop': <icerix.cxviews.models.cxApps object at 0x7f38bbc67fd0>, 'mbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60cc0>, 'msoc': <icerix.cxviews.models.cxApps object at 0x7f38bbc604e0>, 'pbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60898>, 'prds': <icerix.cxviews.models.cxApps object at 0x7f38bbc6ab70>, 'c': <icerix.cxviews.models.cxApps object at 0x7f38bbc6a7b8>}, {}, {}, {'urlid': '', 'urlmd': 'products', 'request': <WSGIRequest: GET '/products/?select=4952'>, 'CX_PAGE_KEYWORDS': '', 'CX_PAGE_DESCRIPTION': '', 'LANGUAGE_CODE': 'en', 'LANGUAGES': [('tr', 'Turkce'), ('en', 'English')], 'languages': [{'bidi': False, 'code': 'tr', 'name': 'Turkish', 'name_local': 'Türkçe', 'name_translated': 'Turkish'}, {'bidi': False, 'code': 'en', 'name': 'English', 'name_local': 'English', 'name_translated': 'English'}]}] |
self | <django.template.base.Template object at 0x7f38bbcb08d0> |
/usr/local/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 | [{'True': True, 'False': False, 'None': None, 'mtop': <icerix.cxviews.models.cxApps object at 0x7f38bbc67fd0>, 'mbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60cc0>, 'msoc': <icerix.cxviews.models.cxApps object at 0x7f38bbc604e0>, 'pbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60898>, 'prds': <icerix.cxviews.models.cxApps object at 0x7f38bbc6ab70>, 'c': <icerix.cxviews.models.cxApps object at 0x7f38bbc6a7b8>}, {}, {}, {'urlid': '', 'urlmd': 'products', 'request': <WSGIRequest: GET '/products/?select=4952'>, 'CX_PAGE_KEYWORDS': '', 'CX_PAGE_DESCRIPTION': '', 'LANGUAGE_CODE': 'en', 'LANGUAGES': [('tr', 'Turkce'), ('en', 'English')], 'languages': [{'bidi': False, 'code': 'tr', 'name': 'Turkish', 'name_local': 'Türkçe', 'name_translated': 'Turkish'}, {'bidi': False, 'code': 'en', 'name': 'English', 'name_local': 'English', 'name_translated': 'English'}]}] |
self | <django.template.base.Template object at 0x7f38bbcb08d0> |
/usr/local/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 | [{'True': True, 'False': False, 'None': None, 'mtop': <icerix.cxviews.models.cxApps object at 0x7f38bbc67fd0>, 'mbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60cc0>, 'msoc': <icerix.cxviews.models.cxApps object at 0x7f38bbc604e0>, 'pbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60898>, 'prds': <icerix.cxviews.models.cxApps object at 0x7f38bbc6ab70>, 'c': <icerix.cxviews.models.cxApps object at 0x7f38bbc6a7b8>}, {}, {}, {'urlid': '', 'urlmd': 'products', 'request': <WSGIRequest: GET '/products/?select=4952'>, 'CX_PAGE_KEYWORDS': '', 'CX_PAGE_DESCRIPTION': '', 'LANGUAGE_CODE': 'en', 'LANGUAGES': [('tr', 'Turkce'), ('en', 'English')], 'languages': [{'bidi': False, 'code': 'tr', 'name': 'Turkish', 'name_local': 'Türkçe', 'name_translated': 'Turkish'}, {'bidi': False, 'code': 'en', 'name': 'English', 'name_local': 'English', 'name_translated': 'English'}]}] |
node | <ExtendsNode: extends "index.htm"> |
self | [<ExtendsNode: extends "index.htm">] |
/usr/local/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 | [{'True': True, 'False': False, 'None': None, 'mtop': <icerix.cxviews.models.cxApps object at 0x7f38bbc67fd0>, 'mbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60cc0>, 'msoc': <icerix.cxviews.models.cxApps object at 0x7f38bbc604e0>, 'pbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60898>, 'prds': <icerix.cxviews.models.cxApps object at 0x7f38bbc6ab70>, 'c': <icerix.cxviews.models.cxApps object at 0x7f38bbc6a7b8>}, {}, {}, {'urlid': '', 'urlmd': 'products', 'request': <WSGIRequest: GET '/products/?select=4952'>, 'CX_PAGE_KEYWORDS': '', 'CX_PAGE_DESCRIPTION': '', 'LANGUAGE_CODE': 'en', 'LANGUAGES': [('tr', 'Turkce'), ('en', 'English')], 'languages': [{'bidi': False, 'code': 'tr', 'name': 'Turkish', 'name_local': 'Türkçe', 'name_translated': 'Turkish'}, {'bidi': False, 'code': 'en', 'name': 'English', 'name_local': 'English', 'name_translated': 'English'}]}] |
self | <ExtendsNode: extends "index.htm"> |
/usr/local/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 0x7f38bbdca630> |
blocks | {'content': <Block Node: content. Contents: []>, 'jscript': <Block Node: jscript. Contents: []>, 'subtitle': <Block Node: subtitle. Contents: []>, 'title': <Block Node: title. Contents: [<icerix.cxviews.templatetags.cxTpl.cxConfNode object at 0x7f38bbc60f60>]>} |
compiled_parent | <django.template.base.Template object at 0x7f38bbdab5c0> |
context | [{'True': True, 'False': False, 'None': None, 'mtop': <icerix.cxviews.models.cxApps object at 0x7f38bbc67fd0>, 'mbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60cc0>, 'msoc': <icerix.cxviews.models.cxApps object at 0x7f38bbc604e0>, 'pbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60898>, 'prds': <icerix.cxviews.models.cxApps object at 0x7f38bbc6ab70>, 'c': <icerix.cxviews.models.cxApps object at 0x7f38bbc6a7b8>}, {}, {}, {'urlid': '', 'urlmd': 'products', 'request': <WSGIRequest: GET '/products/?select=4952'>, 'CX_PAGE_KEYWORDS': '', 'CX_PAGE_DESCRIPTION': '', 'LANGUAGE_CODE': 'en', 'LANGUAGES': [('tr', 'Turkce'), ('en', 'English')], 'languages': [{'bidi': False, 'code': 'tr', 'name': 'Turkish', 'name_local': 'Türkçe', 'name_translated': 'Turkish'}, {'bidi': False, 'code': 'en', 'name': 'English', 'name_local': 'English', 'name_translated': 'English'}]}] |
node | <django.template.defaulttags.LoadNode object at 0x7f38bbc60dd8> |
self | <ExtendsNode: extends "index.htm"> |
/usr/local/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 | [{'True': True, 'False': False, 'None': None, 'mtop': <icerix.cxviews.models.cxApps object at 0x7f38bbc67fd0>, 'mbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60cc0>, 'msoc': <icerix.cxviews.models.cxApps object at 0x7f38bbc604e0>, 'pbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60898>, 'prds': <icerix.cxviews.models.cxApps object at 0x7f38bbc6ab70>, 'c': <icerix.cxviews.models.cxApps object at 0x7f38bbc6a7b8>}, {}, {}, {'urlid': '', 'urlmd': 'products', 'request': <WSGIRequest: GET '/products/?select=4952'>, 'CX_PAGE_KEYWORDS': '', 'CX_PAGE_DESCRIPTION': '', 'LANGUAGE_CODE': 'en', 'LANGUAGES': [('tr', 'Turkce'), ('en', 'English')], 'languages': [{'bidi': False, 'code': 'tr', 'name': 'Turkish', 'name_local': 'Türkçe', 'name_translated': 'Turkish'}, {'bidi': False, 'code': 'en', 'name': 'English', 'name_local': 'English', 'name_translated': 'English'}]}] |
self | <django.template.base.Template object at 0x7f38bbdab5c0> |
/usr/local/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 ' |
bits | ['\ufeff', '', '\n', '', '\n', '', '\n' '<!doctype html>\n' '<html>\n' '<head>\n' ' <meta charset="utf-8">\n' ' <meta name="viewport" content="width=device-width, initial-scale=1.0, ' 'shrink-to-fit=no">\n' ' <title>', 'eorjin v1.0 - Automotive Parts Catalog', ' | eorjin.orjinautomotive.com</title>\n <meta name="keywords" content="', '', '" />\n <meta name="description" content="', '', '" />\n' ' <link rel="shortcut icon" href="/images/favicon.ico">\n' ' <link rel="stylesheet" href="/lib/bootstrap/css/bootstrap.min.css">\n' ' <link href="/lib/fonts/font-awesome.min.css" rel="stylesheet" />\n' '\n' ' <!-- <link rel="stylesheet" ' 'href="https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800">\n' ' <link rel="stylesheet" ' 'href="https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic"> ' '-->\n' '\n' ' <link rel="stylesheet" ' 'href="https://fonts.googleapis.com/css?family=Oxygen">\n' ' <link rel="stylesheet" href="/css/cxstyle.css">\n' ' ', '', '\n' '<script>\n' ' (function (i, s, o, g, r, a, m) {\n' " i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {\n" ' (i[r].q = i[r].q || []).push(arguments)\n' ' }, i[r].l = 1 * new Date(); a = s.createElement(o),\n' ' m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; ' 'm.parentNode.insertBefore(a, m)\n' " })(window, document, 'script', " "'https://www.google-analytics.com/analytics.js', 'ga');\n" " ga('create', 'UA-81872947-1', 'auto');\n" " ga('send', 'pageview');\n" '</script>\n' '</head>\n' '\n' '<body>\n' ' <div id="app">\n' ' ', '', '\n ', '', '\n ', '', '\n ', '', '\n' ' <nav class="navbar navbar-light navbar-expand-lg fixed-top" ' 'id="mainNav">\n' ' <div class="container"><a class="navbar-brand" ' 'href="/"></a><button class="navbar-toggler" data-toggle="collapse" ' 'data-target="#navbarResponsive" aria-controls="navbarResponsive" ' 'aria-expanded="false" aria-label="Toggle navigation"><i class="fa ' 'fa-bars"></i></button>\n' ' <div class="collapse navbar-collapse" ' 'id="navbarResponsive">\n' ' <ul class="nav navbar-nav ml-auto">\n' ' ', '\n' ' <li class="nav-item" role="presentation"><a ' 'class="nav-link" href="/" >Ana Sayfa</a></li>\n' ' \n' ' <li class="nav-item" role="presentation"><a ' 'class="nav-link" href="http://www.orjinautomotive.com/firma-profili" ' 'target="_blank" >Hakkımızda</a></li>\n' ' \n' ' <li class="nav-item" role="presentation"><a ' 'class="nav-link" href="http://www.orjinautomotive.com/iletisim" ' 'target="_blank" >İletişim</a></li>\n' ' ', '\n' ' </ul>\n' ' <form class="form-inline my-2 my-lg-0" id="lngFrm" ' 'action="', '/i18n/setlang/', '" method="post">', "<input type='hidden' name='csrfmiddlewaretoken' " "value='YMj2DLPuVwFt2ewTUgg5py1Fj916xLY4qSHv2o4Wl5Idljov6rVEIriUpTgTYEsC' />", '\n <input name="next" type="hidden" value="', '', '" />\n' ' <input name="language" type="hidden" value="en" />\n' ' ', '', '\n ', '', '\n ', '', '\n ', ' \n' ' <a href="#" class="btn my-2 my-sm-0" ' 'onclick="document.getElementById(\'lngFrm\').language.value=\'tr\';document.getElementById(\'lngFrm\').submit();">\n' ' <img src="/images/tr.svg" width="32px" ' 'height="24px"/>\n' ' </a>\n' ' \n' ' <a href="#" class="btn my-2 my-sm-0" ' 'onclick="document.getElementById(\'lngFrm\').lan... <trimmed 5320 bytes string> |
context | [{'True': True, 'False': False, 'None': None, 'mtop': <icerix.cxviews.models.cxApps object at 0x7f38bbc67fd0>, 'mbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60cc0>, 'msoc': <icerix.cxviews.models.cxApps object at 0x7f38bbc604e0>, 'pbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60898>, 'prds': <icerix.cxviews.models.cxApps object at 0x7f38bbc6ab70>, 'c': <icerix.cxviews.models.cxApps object at 0x7f38bbc6a7b8>}, {}, {}, {'urlid': '', 'urlmd': 'products', 'request': <WSGIRequest: GET '/products/?select=4952'>, 'CX_PAGE_KEYWORDS': '', 'CX_PAGE_DESCRIPTION': '', 'LANGUAGE_CODE': 'en', 'LANGUAGES': [('tr', 'Turkce'), ('en', 'English')], 'languages': [{'bidi': False, 'code': 'tr', 'name': 'Turkish', 'name_local': 'Türkçe', 'name_translated': 'Turkish'}, {'bidi': False, 'code': 'en', 'name': 'English', 'name_local': 'English', 'name_translated': 'English'}]}] |
node | <Block Node: content. Contents: []> |
self | [<TextNode: '\ufeff'>, <django.template.defaulttags.LoadNode object at 0x7f38bbc60dd8>, <TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7f38bbc60e48>, <TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7f38bbc60eb8>, <TextNode: '\n<!doctype html>\n<html>\n<'>, <Block Node: title. Contents: [<icerix.cxviews.templatetags.cxTpl.cxConfNode object at 0x7f38bbc60f60>]>, <TextNode: ' | eorjin.orjinautomotive'>, <icerix.cxviews.templatetags.cxTpl.cxConfNode object at 0x7f38bbc60d68>, <TextNode: '" />\n <meta name="desc'>, <icerix.cxviews.templatetags.cxTpl.cxConfNode object at 0x7f38bbc60d30>, <TextNode: '" />\n <link rel="short'>, <Block Node: jscript. Contents: []>, <TextNode: '\n<script>\n (function ('>, <icerix.cxviews.templatetags.cxTpl.cxModuleNode object at 0x7f38bbc60fd0>, <TextNode: '\n '>, <icerix.cxviews.templatetags.cxTpl.cxModuleNode object at 0x7f38bbc62208>, <TextNode: '\n '>, <icerix.cxviews.templatetags.cxTpl.cxModuleNode object at 0x7f38bbc62358>, <TextNode: '\n '>, <icerix.cxviews.templatetags.cxTpl.cxModuleNode object at 0x7f38bbc624a8>, <TextNode: '\n <nav class="navb'>, <For Node: for l in mtop.list, tail_len: 7>, <TextNode: '\n </ul'>, <django.template.defaulttags.URLNode object at 0x7f38bbc62668>, <TextNode: '" method="post">'>, <django.template.defaulttags.CsrfTokenNode object at 0x7f38bbce8780>, <TextNode: '\n '>, <Variable Node: redirect_to>, <TextNode: '" />\n '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7f38bbc62da0>, <TextNode: '\n '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7f38bbc62e10>, <TextNode: '\n '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7f38bbc62ef0>, <TextNode: '\n '>, <For Node: for language in languages, tail_len: 5>, <TextNode: '\n </fo'>, <IfNode>, <TextNode: ' style="background-image:'>, <Variable Node: LANGUAGE_CODE>, <TextNode: '.jpg\');">\n <!-'>, <IfNode>, <TextNode: '\n </di'>, <IfNode>, <TextNode: '\n '>, <Block Node: content. Contents: []>, <TextNode: '\n </main>\n\n '>, <For Node: for p in pbot.list, tail_len: 3>, <TextNode: '\n </di'>, <For Node: for l in mbot.list, tail_len: 7>, <TextNode: ' '>, <For Node: for s in msoc.list, tail_len: 7>, <TextNode: '\n '>] |
/usr/local/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 | [{'True': True, 'False': False, 'None': None, 'mtop': <icerix.cxviews.models.cxApps object at 0x7f38bbc67fd0>, 'mbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60cc0>, 'msoc': <icerix.cxviews.models.cxApps object at 0x7f38bbc604e0>, 'pbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60898>, 'prds': <icerix.cxviews.models.cxApps object at 0x7f38bbc6ab70>, 'c': <icerix.cxviews.models.cxApps object at 0x7f38bbc6a7b8>}, {}, {}, {'urlid': '', 'urlmd': 'products', 'request': <WSGIRequest: GET '/products/?select=4952'>, 'CX_PAGE_KEYWORDS': '', 'CX_PAGE_DESCRIPTION': '', 'LANGUAGE_CODE': 'en', 'LANGUAGES': [('tr', 'Turkce'), ('en', 'English')], 'languages': [{'bidi': False, 'code': 'tr', 'name': 'Turkish', 'name_local': 'Türkçe', 'name_translated': 'Turkish'}, {'bidi': False, 'code': 'en', 'name': 'English', 'name_local': 'English', 'name_translated': 'English'}]}] |
self | <Block Node: content. Contents: []> |
/usr/local/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\n'>, <IfNode>, <TextNode: '\n\n'>, <IfNode>, <TextNode: '\n<div class="container-fl'>, <IfNode>, <TextNode: '\n <div class="col '>, <django.templatetags.i18n.TranslateNode object at 0x7f38bbd0c470>, <TextNode: '</i>\n </a>\n '>, <IfNode>, <TextNode: ' style="padding-top: 15px'>, <IfNode>, <TextNode: '\n <div '>, <IfNode>, <TextNode: '>\n <div class='>, <IfNode>, <TextNode: '\n </div>\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f38bbdc5860>, <TextNode: '</th>\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f38bbca8710>, <TextNode: '</th>\n '>, <For Node: for p in prds.list, tail_len: 19>, <TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7f38bbdc9ac8>, <TextNode: '\n </div>\n '>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f38bbdca630> |
context | [{'True': True, 'False': False, 'None': None, 'mtop': <icerix.cxviews.models.cxApps object at 0x7f38bbc67fd0>, 'mbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60cc0>, 'msoc': <icerix.cxviews.models.cxApps object at 0x7f38bbc604e0>, 'pbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60898>, 'prds': <icerix.cxviews.models.cxApps object at 0x7f38bbc6ab70>, 'c': <icerix.cxviews.models.cxApps object at 0x7f38bbc6a7b8>}, {}, {}, {'urlid': '', 'urlmd': 'products', 'request': <WSGIRequest: GET '/products/?select=4952'>, 'CX_PAGE_KEYWORDS': '', 'CX_PAGE_DESCRIPTION': '', 'LANGUAGE_CODE': 'en', 'LANGUAGES': [('tr', 'Turkce'), ('en', 'English')], 'languages': [{'bidi': False, 'code': 'tr', 'name': 'Turkish', 'name_local': 'Türkçe', 'name_translated': 'Turkish'}, {'bidi': False, 'code': 'en', 'name': 'English', 'name_local': 'English', 'name_translated': 'English'}]}] |
push | <Block Node: content. Contents: [<TextNode: '\n\n'>, <IfNode>, <TextNode: '\n\n'>, <IfNode>, <TextNode: '\n<div class="container-fl'>, <IfNode>, <TextNode: '\n <div class="col '>, <django.templatetags.i18n.TranslateNode object at 0x7f38bbd0c470>, <TextNode: '</i>\n </a>\n '>, <IfNode>, <TextNode: ' style="padding-top: 15px'>, <IfNode>, <TextNode: '\n <div '>, <IfNode>, <TextNode: '>\n <div class='>, <IfNode>, <TextNode: '\n </div>\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f38bbdc5860>, <TextNode: '</th>\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f38bbca8710>, <TextNode: '</th>\n '>, <For Node: for p in prds.list, tail_len: 19>, <TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7f38bbdc9ac8>, <TextNode: '\n </div>\n '>]> |
self | <Block Node: content. Contents: []> |
/usr/local/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' '<div class="container-fluid" style="padding-top: 15px;">\n' ' <div class="row">\n' ' ') |
bits | ['\n\n', '\n \n \n', '\n\n', '', '\n' '<div class="container-fluid" style="padding-top: 15px;">\n' ' <div class="row">\n' ' '] |
context | [{'True': True, 'False': False, 'None': None, 'mtop': <icerix.cxviews.models.cxApps object at 0x7f38bbc67fd0>, 'mbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60cc0>, 'msoc': <icerix.cxviews.models.cxApps object at 0x7f38bbc604e0>, 'pbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60898>, 'prds': <icerix.cxviews.models.cxApps object at 0x7f38bbc6ab70>, 'c': <icerix.cxviews.models.cxApps object at 0x7f38bbc6a7b8>}, {}, {}, {'urlid': '', 'urlmd': 'products', 'request': <WSGIRequest: GET '/products/?select=4952'>, 'CX_PAGE_KEYWORDS': '', 'CX_PAGE_DESCRIPTION': '', 'LANGUAGE_CODE': 'en', 'LANGUAGES': [('tr', 'Turkce'), ('en', 'English')], 'languages': [{'bidi': False, 'code': 'tr', 'name': 'Turkish', 'name_local': 'Türkçe', 'name_translated': 'Turkish'}, {'bidi': False, 'code': 'en', 'name': 'English', 'name_local': 'English', 'name_translated': 'English'}]}] |
node | <IfNode> |
self | [<TextNode: '\n\n'>, <IfNode>, <TextNode: '\n\n'>, <IfNode>, <TextNode: '\n<div class="container-fl'>, <IfNode>, <TextNode: '\n <div class="col '>, <django.templatetags.i18n.TranslateNode object at 0x7f38bbd0c470>, <TextNode: '</i>\n </a>\n '>, <IfNode>, <TextNode: ' style="padding-top: 15px'>, <IfNode>, <TextNode: '\n <div '>, <IfNode>, <TextNode: '>\n <div class='>, <IfNode>, <TextNode: '\n </div>\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f38bbdc5860>, <TextNode: '</th>\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f38bbca8710>, <TextNode: '</th>\n '>, <For Node: for p in prds.list, tail_len: 19>, <TextNode: '\n '>, <django.template.loader_tags.IncludeNode object at 0x7f38bbdc9ac8>, <TextNode: '\n </div>\n '>] |
/usr/local/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 | [{'True': True, 'False': False, 'None': None, 'mtop': <icerix.cxviews.models.cxApps object at 0x7f38bbc67fd0>, 'mbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60cc0>, 'msoc': <icerix.cxviews.models.cxApps object at 0x7f38bbc604e0>, 'pbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60898>, 'prds': <icerix.cxviews.models.cxApps object at 0x7f38bbc6ab70>, 'c': <icerix.cxviews.models.cxApps object at 0x7f38bbc6a7b8>}, {}, {}, {'urlid': '', 'urlmd': 'products', 'request': <WSGIRequest: GET '/products/?select=4952'>, 'CX_PAGE_KEYWORDS': '', 'CX_PAGE_DESCRIPTION': '', 'LANGUAGE_CODE': 'en', 'LANGUAGES': [('tr', 'Turkce'), ('en', 'English')], 'languages': [{'bidi': False, 'code': 'tr', 'name': 'Turkish', 'name_local': 'Türkçe', 'name_translated': 'Turkish'}, {'bidi': False, 'code': 'en', 'name': 'English', 'name_local': 'English', 'name_translated': 'English'}]}] |
self | <IfNode> |
/usr/local/lib/python3.6/site-packages/django/template/defaulttags.py
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 <django.template.base.FilterExpression object at 0x7f38bbd0c4e0>) |
context | [{'True': True, 'False': False, 'None': None, 'mtop': <icerix.cxviews.models.cxApps object at 0x7f38bbc67fd0>, 'mbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60cc0>, 'msoc': <icerix.cxviews.models.cxApps object at 0x7f38bbc604e0>, 'pbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60898>, 'prds': <icerix.cxviews.models.cxApps object at 0x7f38bbc6ab70>, 'c': <icerix.cxviews.models.cxApps object at 0x7f38bbc6a7b8>}, {}, {}, {'urlid': '', 'urlmd': 'products', 'request': <WSGIRequest: GET '/products/?select=4952'>, 'CX_PAGE_KEYWORDS': '', 'CX_PAGE_DESCRIPTION': '', 'LANGUAGE_CODE': 'en', 'LANGUAGES': [('tr', 'Turkce'), ('en', 'English')], 'languages': [{'bidi': False, 'code': 'tr', 'name': 'Turkish', 'name_local': 'Türkçe', 'name_translated': 'Turkish'}, {'bidi': False, 'code': 'en', 'name': 'English', 'name_local': 'English', 'name_translated': 'English'}]}] |
match | '4952' |
nodelist | [<TextNode: '\n <div class="col '>, <Variable Node: "/files/"|add:c.detail.desc|cut:".pdf"|add:"_.pdf"|cxexist:"/files/nofile.pdf">, <TextNode: '\' class="btn btn-primary"'>, <django.templatetags.i18n.TranslateNode object at 0x7f38bbd0c160>, <TextNode: '</i>\n </a>\n '>] |
self | <IfNode> |
/usr/local/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 <div class="col align-self-center">\n <a href=\'' |
bits | ['\n <div class="col align-self-center">\n <a href=\''] |
context | [{'True': True, 'False': False, 'None': None, 'mtop': <icerix.cxviews.models.cxApps object at 0x7f38bbc67fd0>, 'mbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60cc0>, 'msoc': <icerix.cxviews.models.cxApps object at 0x7f38bbc604e0>, 'pbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60898>, 'prds': <icerix.cxviews.models.cxApps object at 0x7f38bbc6ab70>, 'c': <icerix.cxviews.models.cxApps object at 0x7f38bbc6a7b8>}, {}, {}, {'urlid': '', 'urlmd': 'products', 'request': <WSGIRequest: GET '/products/?select=4952'>, 'CX_PAGE_KEYWORDS': '', 'CX_PAGE_DESCRIPTION': '', 'LANGUAGE_CODE': 'en', 'LANGUAGES': [('tr', 'Turkce'), ('en', 'English')], 'languages': [{'bidi': False, 'code': 'tr', 'name': 'Turkish', 'name_local': 'Türkçe', 'name_translated': 'Turkish'}, {'bidi': False, 'code': 'en', 'name': 'English', 'name_local': 'English', 'name_translated': 'English'}]}] |
node | <Variable Node: "/files/"|add:c.detail.desc|cut:".pdf"|add:"_.pdf"|cxexist:"/files/nofile.pdf"> |
self | [<TextNode: '\n <div class="col '>, <Variable Node: "/files/"|add:c.detail.desc|cut:".pdf"|add:"_.pdf"|cxexist:"/files/nofile.pdf">, <TextNode: '\' class="btn btn-primary"'>, <django.templatetags.i18n.TranslateNode object at 0x7f38bbd0c160>, <TextNode: '</i>\n </a>\n '>] |
/usr/local/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 | [{'True': True, 'False': False, 'None': None, 'mtop': <icerix.cxviews.models.cxApps object at 0x7f38bbc67fd0>, 'mbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60cc0>, 'msoc': <icerix.cxviews.models.cxApps object at 0x7f38bbc604e0>, 'pbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60898>, 'prds': <icerix.cxviews.models.cxApps object at 0x7f38bbc6ab70>, 'c': <icerix.cxviews.models.cxApps object at 0x7f38bbc6a7b8>}, {}, {}, {'urlid': '', 'urlmd': 'products', 'request': <WSGIRequest: GET '/products/?select=4952'>, 'CX_PAGE_KEYWORDS': '', 'CX_PAGE_DESCRIPTION': '', 'LANGUAGE_CODE': 'en', 'LANGUAGES': [('tr', 'Turkce'), ('en', 'English')], 'languages': [{'bidi': False, 'code': 'tr', 'name': 'Turkish', 'name_local': 'Türkçe', 'name_translated': 'Turkish'}, {'bidi': False, 'code': 'en', 'name': 'English', 'name_local': 'English', 'name_translated': 'English'}]}] |
self | <Variable Node: "/files/"|add:c.detail.desc|cut:".pdf"|add:"_.pdf"|cxexist:"/files/nofile.pdf"> |
/usr/local/lib/python3.6/site-packages/django/template/base.py
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, 'mtop': <icerix.cxviews.models.cxApps object at 0x7f38bbc67fd0>, 'mbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60cc0>, 'msoc': <icerix.cxviews.models.cxApps object at 0x7f38bbc604e0>, 'pbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60898>, 'prds': <icerix.cxviews.models.cxApps object at 0x7f38bbc6ab70>, 'c': <icerix.cxviews.models.cxApps object at 0x7f38bbc6a7b8>}, {}, {}, {'urlid': '', 'urlmd': 'products', 'request': <WSGIRequest: GET '/products/?select=4952'>, 'CX_PAGE_KEYWORDS': '', 'CX_PAGE_DESCRIPTION': '', 'LANGUAGE_CODE': 'en', 'LANGUAGES': [('tr', 'Turkce'), ('en', 'English')], 'languages': [{'bidi': False, 'code': 'tr', 'name': 'Turkish', 'name_local': 'Türkçe', 'name_translated': 'Turkish'}, {'bidi': False, 'code': 'en', 'name': 'English', 'name_local': 'English', 'name_translated': 'English'}]}] |
self | <Variable Node: "/files/"|add:c.detail.desc|cut:".pdf"|add:"_.pdf"|cxexist:"/files/nofile.pdf"> |
/usr/local/lib/python3.6/site-packages/django/template/base.py
in resolve
escape_isnt_last_filter = True
for func, args in self.filters:
arg_vals = []
for lookup, arg in args:
if not lookup:
arg_vals.append(mark_safe(arg))
else:
arg_vals.append(arg.resolve(context))...
if getattr(func, 'expects_localtime', False):
obj = template_localtime(obj, context.use_tz)
if getattr(func, 'needs_autoescape', False):
new_obj = func(obj, autoescape=context.autoescape, *arg_vals)
else:
new_obj = func(obj, *arg_vals)
Variable | Value |
---|---|
arg | <Variable: 'c.detail.desc'> |
arg_vals | [] |
args | [(True, <Variable: 'c.detail.desc'>)] |
context | [{'True': True, 'False': False, 'None': None, 'mtop': <icerix.cxviews.models.cxApps object at 0x7f38bbc67fd0>, 'mbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60cc0>, 'msoc': <icerix.cxviews.models.cxApps object at 0x7f38bbc604e0>, 'pbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60898>, 'prds': <icerix.cxviews.models.cxApps object at 0x7f38bbc6ab70>, 'c': <icerix.cxviews.models.cxApps object at 0x7f38bbc6a7b8>}, {}, {}, {'urlid': '', 'urlmd': 'products', 'request': <WSGIRequest: GET '/products/?select=4952'>, 'CX_PAGE_KEYWORDS': '', 'CX_PAGE_DESCRIPTION': '', 'LANGUAGE_CODE': 'en', 'LANGUAGES': [('tr', 'Turkce'), ('en', 'English')], 'languages': [{'bidi': False, 'code': 'tr', 'name': 'Turkish', 'name_local': 'Türkçe', 'name_translated': 'Turkish'}, {'bidi': False, 'code': 'en', 'name': 'English', 'name_local': 'English', 'name_translated': 'English'}]}] |
escape_isnt_last_filter | True |
func | <function add at 0x7f38bd442598> |
ignore_failures | False |
lookup | True |
obj | '/files/' |
self | <django.template.base.FilterExpression object at 0x7f38bbd0c2e8> |
/usr/local/lib/python3.6/site-packages/django/template/base.py
in resolve
var)
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, 'mtop': <icerix.cxviews.models.cxApps object at 0x7f38bbc67fd0>, 'mbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60cc0>, 'msoc': <icerix.cxviews.models.cxApps object at 0x7f38bbc604e0>, 'pbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60898>, 'prds': <icerix.cxviews.models.cxApps object at 0x7f38bbc6ab70>, 'c': <icerix.cxviews.models.cxApps object at 0x7f38bbc6a7b8>}, {}, {}, {'urlid': '', 'urlmd': 'products', 'request': <WSGIRequest: GET '/products/?select=4952'>, 'CX_PAGE_KEYWORDS': '', 'CX_PAGE_DESCRIPTION': '', 'LANGUAGE_CODE': 'en', 'LANGUAGES': [('tr', 'Turkce'), ('en', 'English')], 'languages': [{'bidi': False, 'code': 'tr', 'name': 'Turkish', 'name_local': 'Türkçe', 'name_translated': 'Turkish'}, {'bidi': False, 'code': 'en', 'name': 'English', 'name_local': 'English', 'name_translated': 'English'}]}] |
self | <Variable: 'c.detail.desc'> |
/usr/local/lib/python3.6/site-packages/django/template/base.py
in _resolve_lookup
current = current[int(bit)]
except (IndexError, # list index out of range
ValueError, # invalid literal for int()
KeyError, # current is a dict without `int(bit)` key
TypeError): # unsubscriptable object
raise VariableDoesNotExist("Failed lookup for key "
"[%s] in %r",
(bit, current)) # missing attribute...
if callable(current):
if getattr(current, 'do_not_call_in_templates', False):
pass
elif getattr(current, 'alters_data', False):
current = context.template.engine.string_if_invalid
else:
Variable | Value |
---|---|
bit | 'desc' |
context | [{'True': True, 'False': False, 'None': None, 'mtop': <icerix.cxviews.models.cxApps object at 0x7f38bbc67fd0>, 'mbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60cc0>, 'msoc': <icerix.cxviews.models.cxApps object at 0x7f38bbc604e0>, 'pbot': <icerix.cxviews.models.cxApps object at 0x7f38bbc60898>, 'prds': <icerix.cxviews.models.cxApps object at 0x7f38bbc6ab70>, 'c': <icerix.cxviews.models.cxApps object at 0x7f38bbc6a7b8>}, {}, {}, {'urlid': '', 'urlmd': 'products', 'request': <WSGIRequest: GET '/products/?select=4952'>, 'CX_PAGE_KEYWORDS': '', 'CX_PAGE_DESCRIPTION': '', 'LANGUAGE_CODE': 'en', 'LANGUAGES': [('tr', 'Turkce'), ('en', 'English')], 'languages': [{'bidi': False, 'code': 'tr', 'name': 'Turkish', 'name_local': 'Türkçe', 'name_translated': 'Turkish'}, {'bidi': False, 'code': 'en', 'name': 'English', 'name_local': 'English', 'name_translated': 'English'}]}] |
current | None |
self | <Variable: 'c.detail.desc'> |
template_name | 'products-list.htm' |
AnonymousUser
Variable | Value |
---|---|
select | '4952' |
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CONTEXT_DOCUMENT_ROOT | '/home/orjinapc/domains/apc.orjinautomotive.com/public_html' |
CONTEXT_PREFIX | '' |
CSRF_COOKIE | 'btLRPrx5qqnSvpm4JojP8Xg7Hg4MfpkzDz9ke4MxQZqCOueGVzYorQxmN0jzGiO7' |
CSRF_COOKIE_USED | True |
DOCUMENT_ROOT | '/home/orjinapc/domains/apc.orjinautomotive.com/public_html' |
GATEWAY_INTERFACE | 'CGI/1.1' |
HTTP_ACCEPT | '*/*' |
HTTP_AUTHORIZATION | '' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'eorjin.orjinautomotive.com' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_ACCEL_INTERNAL | '/nginx_static_files' |
HTTP_X_FORWARDED_FOR | '54.163.62.42' |
PATH | '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin' |
PATH_INFO | '/products/' |
PATH_TRANSLATED | 'redirect:/index.jsp/products//' |
QUERY_STRING | 'select=4952' |
REDIRECT_QUERY_STRING | 'select=4952' |
REDIRECT_STATUS | '200' |
REDIRECT_UNIQUE_ID | 'ZgXqzB35x-QcjgQF6NHZqwAAAKw' |
REDIRECT_URL | '/products/' |
REMOTE_ADDR | '54.163.62.42' |
REMOTE_PORT | '60032' |
REQUEST_METHOD | 'GET' |
REQUEST_SCHEME | 'http' |
REQUEST_URI | '/products/?select=4952' |
SCRIPT_FILENAME | '/home/orjinapc/domains/apc.orjinautomotive.com/public_html/index.jsp' |
SCRIPT_NAME | '' |
SERVER_ADDR | '93.190.220.171' |
SERVER_ADMIN | 'webmaster@apc.orjinautomotive.com' |
SERVER_NAME | 'eorjin.orjinautomotive.com' |
SERVER_PORT | '80' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SIGNATURE | '' |
SERVER_SOFTWARE | 'Apache/2' |
UNIQUE_ID | 'ZgXqzB35x-QcjgQF6NHZqwAAAKw' |
wsgi.errors | <flup.server.fcgi_base.OutputStream object at 0x7f38bbca1b00> |
wsgi.input | <flup.server.fcgi_base.InputStream object at 0x7f38bbca14e0> |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
mysite.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['www.apc.orjinautomotive.com', 'apc.orjinautomotive.com', 'www.eorjin.orjinautomotive.com', 'eorjin.orjinautomotive.com'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/home/orjinapc/domains/apc.orjinautomotive.com/public_html' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CORS_ORIGIN_WHITELIST | 'apc.orjinautomotive.com' |
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 |
CX_API_MOD | '********************' |
CX_API_URL | '********************' |
CX_FORM_EMAIL | 'test@icerix.org' |
CX_IMAGESIZE_DEFAULT | [(50, 50), (160, 120), (320, 240), (640, 480)] |
CX_IMAGESIZE_SELECT | [(50, 50), (160, 120), (320, 240), (640, 480), (1600, 360)] |
CX_LANG | [('', '---------'), ('tr', 'Turkce'), ('en', 'English')] |
CX_LISTPERPAGE | 25 |
CX_PAGE_DESCRIPTION | '' |
CX_PAGE_KEYWORDS | '********************' |
CX_PAGE_TITLE | 'eorjin v1.0 - Automotive Parts Catalog' |
CX_SIGNUP_EMAIL | 'test@icerix.org' |
CX_SIGNUP_TYPE | 'admin' |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.mysql', 'HOST': '', 'NAME': 'orjinapc_db', 'OPTIONS': {'init_command': "SET sql_mode='STRICT_TRANS_TABLES'"}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'orjinapc_us'}} |
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' |
ICX_ADMIN_APPS | [{'icon': 'user', 'model': 'user', 'title': 'Users'}, {'icon': 'users', 'model': 'group', 'title': 'Groups'}, {'icon': 'wrench', 'model': 'config', 'title': 'Config'}, {'icon': 'tags', 'model': 'tags', 'title': 'Tags'}, {'icon': 'object-group', 'model': 'groups', 'title': 'Groups'}, {'icon': 'bars', 'model': 'menus', 'title': 'Menus'}, {'icon': 'book', 'model': 'categories', 'title': 'Categories'}, {'icon': 'picture-o', 'model': 'images', 'title': 'Images'}, {'icon': 'files-o', 'model': 'files', 'title': 'Files'}, {'icon': 'file-text-o', 'model': 'pages', 'title': 'Pages'}, {'icon': 'pencil-square-o', 'model': 'templates', 'title': 'Templates'}, {'icon': 'user', 'model': 'users', 'title': 'Users'}, {'icon': 'cubes', 'model': 'products', 'title': 'Products'}] |
ICX_ADMIN_URL | 'cxadmin' |
ICX_APPNAME | 'apc v1.0 - Automotive Parts Catalog' |
ICX_TEMPLATE | 'templates' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['icerix.cxadmin', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django_filters', 'rest_framework', 'icerix.cxusers', 'icerix.cxconfig', 'icerix.cxgroups', 'icerix.cxtags', 'icerix.cxtree', 'icerix.cxmedia', 'icerix.cxcontent', 'icerix.cxviews', 'base', 'modules', 'corsheaders'] |
INTERNAL_IPS | [] |
LANGUAGES | (('tr', 'Turkce'), ('en', 'English')) |
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 | ('/home/orjinapc/domains/apc.orjinautomotive.com/public_html/locale',) |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '/home/orjinapc/domains/apc.orjinautomotive.com/public_html/templates/' |
MEDIA_URL | '/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['corsheaders.middleware.CorsMiddleware', 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] |
MIDDLEWARE_CLASSES | ['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 |
REST_FRAMEWORK | {'DEFAULT_FILTER_BACKENDS': ('django_filters.rest_framework.DjangoFilterBackend',), 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination', 'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAdminUser', 'rest_framework.permissions.IsAuthenticated'), 'DEFAULT_RENDERER_CLASSES': ('rest_framework.renderers.JSONRenderer',), 'PAGE_SIZE': 25} |
ROOT_URLCONF | 'mysite.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 | 'mysite.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/orjinapc/domains/apc.orjinautomotive.com/public_html/static/' |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/home/orjinapc/domains/apc.orjinautomotive.com/public_html/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', 'django.template.context_processors.i18n']}}] |
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 | 'Europe/Istanbul' |
USE_ETAGS | False |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | False |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'mysite.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.