Reverse for 'sellers-product-list' with arguments '('',)' and keyword arguments '{}' not found. 2 pattern(s) tried: ['fr/sellers-product/(?P<pk>\\d+)/$', 'fr/sellers-product/(?P<pk>\\d+)/$']
Request Method: | GET |
---|---|
Request URL: | https://www.monicia.ca/fr/catalogue/carte-cadeau_6504/reviews/add/?page=1 |
Django Version: | 1.8.19 |
Exception Type: | NoReverseMatch |
Exception Value: | Reverse for 'sellers-product-list' with arguments '('',)' and keyword arguments '{}' not found. 2 pattern(s) tried: ['fr/sellers-product/(?P<pk>\\d+)/$', 'fr/sellers-product/(?P<pk>\\d+)/$'] |
Exception Location: | /virtualenv/lib/python3.5/site-packages/django/core/urlresolvers.py in _reverse_with_prefix, line 495 |
Python Executable: | /virtualenv/bin/uwsgi |
Python Version: | 3.5.2 |
Python Path: | ['.', '', '/app/src', '/app', '/virtualenv/lib/python35.zip', '/virtualenv/lib/python3.5', '/virtualenv/lib/python3.5/plat-linux', '/virtualenv/lib/python3.5/lib-dynload', '/usr/local/lib/python3.5', '/usr/local/lib/python3.5/plat-linux', '/virtualenv/lib/python3.5/site-packages'] |
Server time: | jeu, 28 Mar 2024 10:00:00 -0500 |
In template /app/templates/catalogue/detail.html
, error at line 361
351 | {% endthumbnail %} |
---|---|
352 | |
353 | {% endwith %} |
354 | |
355 | {% else %} |
356 | |
357 | <a href="{% url "sellers-product-list" product.created_by.seller_profile.get.id %}"><img class="noimage-found" src="{% static "img/noimages.jpg" %}" alt="" width="171" height="142"></a> |
358 | |
359 | {% endif %} |
360 | |
361 | <h3 class="seller-name"><a href=' {% url "sellers-product-list" product.created_by.seller_profile.get.id %} '>{{product.created_by.seller_profile.get.company_name}}</a></h3> |
362 | |
363 | {% seller_reviews product as rating %} |
364 | |
365 | |
366 | |
367 | <h2 class="star-rating {{ rating|as_stars }} review-rating seller-rating"> |
368 | |
369 | <span> |
370 | |
371 | <i class="icon-star"></i> |
/virtualenv/lib/python3.5/site-packages/django/core/handlers/base.py
in get_response
response = middleware_method(request, response)
# Complain if the template response middleware returned None (a common error).
if response is None:
raise ValueError(
"%s.process_template_response didn't return an "
"HttpResponse object. It returned None instead."
% (middleware_method.__self__.__class__.__name__))
response = response.render()...
except http.Http404 as e:
logger.warning('Not Found: %s', request.path,
extra={
'status_code': 404,
'request': request
Variable | Value |
---|---|
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7ff67a378e80> |
urlconf | 'urls' |
response | <django.template.response.TemplateResponse object at 0x7ff6782d7748> |
wrapped_callback | <function CreateProductReview at 0x7ff6796ba840> |
resolver_match | ResolverMatch(func=apps.catalogue.reviews.views.CreateProductReview, args=(), kwargs={'product_slug': 'carte-cadeau', 'product_pk': '6504'}, url_name=reviews-add, app_name=None, namespaces=['catalogue']) |
callback_args | () |
callback | <function CreateProductReview at 0x7ff6796ba840> |
resolver | <RegexURLResolver 'urls' (None:None) ^/> |
middleware_method | <bound method BasketMiddleware.process_template_response of <apps.basket.middleware.BasketMiddleware object at 0x7ff67946d1d0>> |
callback_kwargs | {'product_pk': '6504', 'product_slug': 'carte-cadeau'} |
request | ('<WSGIRequest\n' 'path:/fr/catalogue/carte-cadeau_6504/reviews/add/,\n' "GET:<QueryDict: {'page': ['1']}>,\n" 'POST:<QueryDict: {}>,\n' 'COOKIES:{},\n' "META:{'CSRF_COOKIE': 'q1CnzS2hDb0TNO4CLI9UYEFJ3RMrrRma',\n" " 'CSRF_COOKIE_USED': True,\n" " 'HTTP_ACCEPT': '*/*',\n" " 'HTTP_CONNECTION': 'close',\n" " 'HTTP_HOST': 'www.monicia.ca',\n" " 'HTTP_USER_AGENT': 'claudebot',\n" " 'HTTP_X_DIVIO_REQUEST_ID': 'b78e6a2badcf9fbbb9b92a1222134bfe',\n" " 'HTTP_X_FORWARDED_FOR': '44.203.219.117',\n" " 'HTTP_X_FORWARDED_HOST': 'www.monicia.ca',\n" " 'HTTP_X_FORWARDED_PORT': '443',\n" " 'HTTP_X_FORWARDED_PROTO': 'https',\n" " 'PATH_INFO': '/fr/catalogue/carte-cadeau_6504/reviews/add/',\n" " 'QUERY_STRING': 'page=1',\n" " 'REMOTE_ADDR': '10.0.1.16',\n" " 'REMOTE_PORT': '65244',\n" " 'REQUEST_METHOD': 'GET',\n" " 'REQUEST_URI': '/fr/catalogue/carte-cadeau_6504/reviews/add/?page=1',\n" " 'SCRIPT_NAME': '',\n" " 'SERVER_NAME': '5e5db3cf7839',\n" " 'SERVER_PORT': '80',\n" " 'SERVER_PROTOCOL': 'HTTP/1.1',\n" " 'UWSGI_ROUTER': 'http',\n" " 'uwsgi.node': b'5e5db3cf7839',\n" " 'uwsgi.version': b'2.0.17.1',\n" " 'wsgi.errors': <_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'>,\n" " 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>,\n" " 'wsgi.input': <uwsgi._Input object at 0x7ff67ae25888>,\n" " 'wsgi.multiprocess': True,\n" " 'wsgi.multithread': False,\n" " 'wsgi.run_once': False,\n" " 'wsgi.url_scheme': 'https',\n" " 'wsgi.version': (1, 0)}>") |
/virtualenv/lib/python3.5/site-packages/django/template/response.py
in render
If the content has already been rendered, this is a no-op.
Returns the baked response instance.
"""
retval = self
if not self._is_rendered:
self.content = self.rendered_content...
for post_callback in self._post_render_callbacks:
newretval = post_callback(retval)
if newretval is not None:
retval = newretval
return retval
Variable | Value |
---|---|
self | <django.template.response.TemplateResponse object at 0x7ff6782d7748> |
retval | <django.template.response.TemplateResponse object at 0x7ff6782d7748> |
/virtualenv/lib/python3.5/site-packages/django/template/response.py
in rendered_content
This *does not* set the final content of the response. To set the
response content, you must either call render(), or set the
content explicitly using the value of this property.
"""
template = self._resolve_template(self.template_name)
context = self._resolve_context(self.context_data)
content = template.render(context, self._request)...
return content
def add_post_render_callback(self, callback):
"""Adds a new post-rendering callback.
If the response has already been rendered,
Variable | Value |
---|---|
self | <django.template.response.TemplateResponse object at 0x7ff6782d7748> |
context | {'basket': <SimpleLazyObject: <Basket: Open panier (propriétaire: None, lignes: 0)>>, 'form': <ProductReviewForm bound=False, valid=Unknown, fields=(title;score;body;name;email)>, 'product': <Product: Carte Cadeau ExactAir>, 'view': <apps.catalogue.reviews.views.CreateProductReview object at 0x7ff6792017b8>} |
template | <django.template.backends.django.Template object at 0x7ff6782d7ef0> |
/virtualenv/lib/python3.5/site-packages/django/template/backends/django.py
in render
warnings.warn(
"render() must be called with a dict, not a Context.",
RemovedInDjango110Warning, stacklevel=2)
else:
context = make_context(context, request)
return self.template.render(context)...
Variable | Value |
---|---|
self | <django.template.backends.django.Template object at 0x7ff6782d7ef0> |
request | ('<WSGIRequest\n' 'path:/fr/catalogue/carte-cadeau_6504/reviews/add/,\n' "GET:<QueryDict: {'page': ['1']}>,\n" 'POST:<QueryDict: {}>,\n' 'COOKIES:{},\n' "META:{'CSRF_COOKIE': 'q1CnzS2hDb0TNO4CLI9UYEFJ3RMrrRma',\n" " 'CSRF_COOKIE_USED': True,\n" " 'HTTP_ACCEPT': '*/*',\n" " 'HTTP_CONNECTION': 'close',\n" " 'HTTP_HOST': 'www.monicia.ca',\n" " 'HTTP_USER_AGENT': 'claudebot',\n" " 'HTTP_X_DIVIO_REQUEST_ID': 'b78e6a2badcf9fbbb9b92a1222134bfe',\n" " 'HTTP_X_FORWARDED_FOR': '44.203.219.117',\n" " 'HTTP_X_FORWARDED_HOST': 'www.monicia.ca',\n" " 'HTTP_X_FORWARDED_PORT': '443',\n" " 'HTTP_X_FORWARDED_PROTO': 'https',\n" " 'PATH_INFO': '/fr/catalogue/carte-cadeau_6504/reviews/add/',\n" " 'QUERY_STRING': 'page=1',\n" " 'REMOTE_ADDR': '10.0.1.16',\n" " 'REMOTE_PORT': '65244',\n" " 'REQUEST_METHOD': 'GET',\n" " 'REQUEST_URI': '/fr/catalogue/carte-cadeau_6504/reviews/add/?page=1',\n" " 'SCRIPT_NAME': '',\n" " 'SERVER_NAME': '5e5db3cf7839',\n" " 'SERVER_PORT': '80',\n" " 'SERVER_PROTOCOL': 'HTTP/1.1',\n" " 'UWSGI_ROUTER': 'http',\n" " 'uwsgi.node': b'5e5db3cf7839',\n" " 'uwsgi.version': b'2.0.17.1',\n" " 'wsgi.errors': <_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'>,\n" " 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>,\n" " 'wsgi.input': <uwsgi._Input object at 0x7ff67ae25888>,\n" " 'wsgi.multiprocess': True,\n" " 'wsgi.multithread': False,\n" " 'wsgi.run_once': False,\n" " 'wsgi.url_scheme': 'https',\n" " 'wsgi.version': (1, 0)}>") |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'view': <apps.catalogue.reviews.views.CreateProductReview object at 0x7ff6792017b8>, 'form': <ProductReviewForm bound=False, valid=Unknown, fields=(title;score;body;name;email)>, 'basket': <SimpleLazyObject: <Basket: Open panier (propriétaire: None, lignes: 0)>>, 'product': <Product: Carte Cadeau ExactAir>}, {'LANGUAGES': [('fr', 'Français')], 'country_obj': <Country: Canada>, 'LANGUAGE_CODE': 'fr', 'block': <Block Node: layout. Contents: [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLN... <trimmed 6800 bytes string> |
/virtualenv/lib/python3.5/site-packages/django/template/base.py
in render
def render(self, context):
"Display stage -- can be called many times"
context.render_context.push()
try:
if context.template is None:
with context.bind_template(self):
return self._render(context)...
else:
return self._render(context)
finally:
context.render_context.pop()
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7ff6782d71d0> |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'view': <apps.catalogue.reviews.views.CreateProductReview object at 0x7ff6792017b8>, 'form': <ProductReviewForm bound=False, valid=Unknown, fields=(title;score;body;name;email)>, 'basket': <SimpleLazyObject: <Basket: Open panier (propriétaire: None, lignes: 0)>>, 'product': <Product: Carte Cadeau ExactAir>}, {'LANGUAGES': [('fr', 'Français')], 'country_obj': <Country: Canada>, 'LANGUAGE_CODE': 'fr', 'block': <Block Node: layout. Contents: [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLN... <trimmed 6800 bytes string> |
/virtualenv/lib/python3.5/site-packages/django/test/utils.py
in instrumented_test_render
def instrumented_test_render(self, context):
"""
An instrumented Template render method, providing a signal
that can be intercepted by the test system Client
"""
template_rendered.send(sender=self, template=self, context=context)
return self.nodelist.render(context)...
def setup_test_environment():
"""Perform any global pre-test setup. This involves:
- Installing the instrumented test renderer
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7ff6782d71d0> |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'view': <apps.catalogue.reviews.views.CreateProductReview object at 0x7ff6792017b8>, 'form': <ProductReviewForm bound=False, valid=Unknown, fields=(title;score;body;name;email)>, 'basket': <SimpleLazyObject: <Basket: Open panier (propriétaire: None, lignes: 0)>>, 'product': <Product: Carte Cadeau ExactAir>}, {'LANGUAGES': [('fr', 'Français')], 'country_obj': <Country: Canada>, 'LANGUAGE_CODE': 'fr', 'block': <Block Node: layout. Contents: [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLN... <trimmed 6800 bytes string> |
/virtualenv/lib/python3.5/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 = self.render_node(node, context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
self | [<ExtendsNode: extends "catalogue/detail.html">] |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'view': <apps.catalogue.reviews.views.CreateProductReview object at 0x7ff6792017b8>, 'form': <ProductReviewForm bound=False, valid=Unknown, fields=(title;score;body;name;email)>, 'basket': <SimpleLazyObject: <Basket: Open panier (propriétaire: None, lignes: 0)>>, 'product': <Product: Carte Cadeau ExactAir>}, {'LANGUAGES': [('fr', 'Français')], 'country_obj': <Country: Canada>, 'LANGUAGE_CODE': 'fr', 'block': <Block Node: layout. Contents: [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLN... <trimmed 6800 bytes string> |
bits | [] |
node | <ExtendsNode: extends "catalogue/detail.html"> |
/virtualenv/lib/python3.5/site-packages/django/template/debug.py
in render_node
if not hasattr(e, 'django_template_source'):
e.django_template_source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
return node.render(context)...
except Exception as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
self | [<ExtendsNode: extends "catalogue/detail.html">] |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'view': <apps.catalogue.reviews.views.CreateProductReview object at 0x7ff6792017b8>, 'form': <ProductReviewForm bound=False, valid=Unknown, fields=(title;score;body;name;email)>, 'basket': <SimpleLazyObject: <Basket: Open panier (propriétaire: None, lignes: 0)>>, 'product': <Product: Carte Cadeau ExactAir>}, {'LANGUAGES': [('fr', 'Français')], 'country_obj': <Country: Canada>, 'LANGUAGE_CODE': 'fr', 'block': <Block Node: layout. Contents: [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLN... <trimmed 6800 bytes string> |
node | <ExtendsNode: extends "catalogue/detail.html"> |
/virtualenv/lib/python3.5/site-packages/django/template/loader_tags.py
in render
blocks = {n.name: n for n in
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.
return compiled_parent._render(context)...
class IncludeNode(Node):
def __init__(self, template, *args, **kwargs):
self.template = template
self.extra_context = kwargs.pop('extra_context', {})
Variable | Value |
---|---|
self | <ExtendsNode: extends "catalogue/detail.html"> |
node | <ExtendsNode: extends "layout.html"> |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'view': <apps.catalogue.reviews.views.CreateProductReview object at 0x7ff6792017b8>, 'form': <ProductReviewForm bound=False, valid=Unknown, fields=(title;score;body;name;email)>, 'basket': <SimpleLazyObject: <Basket: Open panier (propriétaire: None, lignes: 0)>>, 'product': <Product: Carte Cadeau ExactAir>}, {'LANGUAGES': [('fr', 'Français')], 'country_obj': <Country: Canada>, 'LANGUAGE_CODE': 'fr', 'block': <Block Node: layout. Contents: [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLN... <trimmed 6800 bytes string> |
block_context | <django.template.loader_tags.BlockContext object at 0x7ff678cf3c50> |
compiled_parent | <django.template.base.Template object at 0x7ff678cf3ac8> |
/virtualenv/lib/python3.5/site-packages/django/test/utils.py
in instrumented_test_render
def instrumented_test_render(self, context):
"""
An instrumented Template render method, providing a signal
that can be intercepted by the test system Client
"""
template_rendered.send(sender=self, template=self, context=context)
return self.nodelist.render(context)...
def setup_test_environment():
"""Perform any global pre-test setup. This involves:
- Installing the instrumented test renderer
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7ff678cf3ac8> |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'view': <apps.catalogue.reviews.views.CreateProductReview object at 0x7ff6792017b8>, 'form': <ProductReviewForm bound=False, valid=Unknown, fields=(title;score;body;name;email)>, 'basket': <SimpleLazyObject: <Basket: Open panier (propriétaire: None, lignes: 0)>>, 'product': <Product: Carte Cadeau ExactAir>}, {'LANGUAGES': [('fr', 'Français')], 'country_obj': <Country: Canada>, 'LANGUAGE_CODE': 'fr', 'block': <Block Node: layout. Contents: [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLN... <trimmed 6800 bytes string> |
/virtualenv/lib/python3.5/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 = self.render_node(node, context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
self | [<ExtendsNode: extends "layout.html">] |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'view': <apps.catalogue.reviews.views.CreateProductReview object at 0x7ff6792017b8>, 'form': <ProductReviewForm bound=False, valid=Unknown, fields=(title;score;body;name;email)>, 'basket': <SimpleLazyObject: <Basket: Open panier (propriétaire: None, lignes: 0)>>, 'product': <Product: Carte Cadeau ExactAir>}, {'LANGUAGES': [('fr', 'Français')], 'country_obj': <Country: Canada>, 'LANGUAGE_CODE': 'fr', 'block': <Block Node: layout. Contents: [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLN... <trimmed 6800 bytes string> |
bits | [] |
node | <ExtendsNode: extends "layout.html"> |
/virtualenv/lib/python3.5/site-packages/django/template/debug.py
in render_node
if not hasattr(e, 'django_template_source'):
e.django_template_source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
return node.render(context)...
except Exception as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
self | [<ExtendsNode: extends "layout.html">] |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'view': <apps.catalogue.reviews.views.CreateProductReview object at 0x7ff6792017b8>, 'form': <ProductReviewForm bound=False, valid=Unknown, fields=(title;score;body;name;email)>, 'basket': <SimpleLazyObject: <Basket: Open panier (propriétaire: None, lignes: 0)>>, 'product': <Product: Carte Cadeau ExactAir>}, {'LANGUAGES': [('fr', 'Français')], 'country_obj': <Country: Canada>, 'LANGUAGE_CODE': 'fr', 'block': <Block Node: layout. Contents: [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLN... <trimmed 6800 bytes string> |
node | <ExtendsNode: extends "layout.html"> |
/virtualenv/lib/python3.5/site-packages/django/template/loader_tags.py
in render
blocks = {n.name: n for n in
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.
return compiled_parent._render(context)...
class IncludeNode(Node):
def __init__(self, template, *args, **kwargs):
self.template = template
self.extra_context = kwargs.pop('extra_context', {})
Variable | Value |
---|---|
self | <ExtendsNode: extends "layout.html"> |
node | <ExtendsNode: extends "base.html"> |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'view': <apps.catalogue.reviews.views.CreateProductReview object at 0x7ff6792017b8>, 'form': <ProductReviewForm bound=False, valid=Unknown, fields=(title;score;body;name;email)>, 'basket': <SimpleLazyObject: <Basket: Open panier (propriétaire: None, lignes: 0)>>, 'product': <Product: Carte Cadeau ExactAir>}, {'LANGUAGES': [('fr', 'Français')], 'country_obj': <Country: Canada>, 'LANGUAGE_CODE': 'fr', 'block': <Block Node: layout. Contents: [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLN... <trimmed 6800 bytes string> |
block_context | <django.template.loader_tags.BlockContext object at 0x7ff678cf3c50> |
compiled_parent | <django.template.base.Template object at 0x7ff678c11240> |
/virtualenv/lib/python3.5/site-packages/django/test/utils.py
in instrumented_test_render
def instrumented_test_render(self, context):
"""
An instrumented Template render method, providing a signal
that can be intercepted by the test system Client
"""
template_rendered.send(sender=self, template=self, context=context)
return self.nodelist.render(context)...
def setup_test_environment():
"""Perform any global pre-test setup. This involves:
- Installing the instrumented test renderer
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7ff678c11240> |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'view': <apps.catalogue.reviews.views.CreateProductReview object at 0x7ff6792017b8>, 'form': <ProductReviewForm bound=False, valid=Unknown, fields=(title;score;body;name;email)>, 'basket': <SimpleLazyObject: <Basket: Open panier (propriétaire: None, lignes: 0)>>, 'product': <Product: Carte Cadeau ExactAir>}, {'LANGUAGES': [('fr', 'Français')], 'country_obj': <Country: Canada>, 'LANGUAGE_CODE': 'fr', 'block': <Block Node: layout. Contents: [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLN... <trimmed 6800 bytes string> |
/virtualenv/lib/python3.5/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 = self.render_node(node, context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
self | [<ExtendsNode: extends "base.html">] |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'view': <apps.catalogue.reviews.views.CreateProductReview object at 0x7ff6792017b8>, 'form': <ProductReviewForm bound=False, valid=Unknown, fields=(title;score;body;name;email)>, 'basket': <SimpleLazyObject: <Basket: Open panier (propriétaire: None, lignes: 0)>>, 'product': <Product: Carte Cadeau ExactAir>}, {'LANGUAGES': [('fr', 'Français')], 'country_obj': <Country: Canada>, 'LANGUAGE_CODE': 'fr', 'block': <Block Node: layout. Contents: [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLN... <trimmed 6800 bytes string> |
bits | [] |
node | <ExtendsNode: extends "base.html"> |
/virtualenv/lib/python3.5/site-packages/django/template/debug.py
in render_node
if not hasattr(e, 'django_template_source'):
e.django_template_source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
return node.render(context)...
except Exception as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
self | [<ExtendsNode: extends "base.html">] |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'view': <apps.catalogue.reviews.views.CreateProductReview object at 0x7ff6792017b8>, 'form': <ProductReviewForm bound=False, valid=Unknown, fields=(title;score;body;name;email)>, 'basket': <SimpleLazyObject: <Basket: Open panier (propriétaire: None, lignes: 0)>>, 'product': <Product: Carte Cadeau ExactAir>}, {'LANGUAGES': [('fr', 'Français')], 'country_obj': <Country: Canada>, 'LANGUAGE_CODE': 'fr', 'block': <Block Node: layout. Contents: [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLN... <trimmed 6800 bytes string> |
node | <ExtendsNode: extends "base.html"> |
/virtualenv/lib/python3.5/site-packages/django/template/loader_tags.py
in render
blocks = {n.name: n for n in
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.
return compiled_parent._render(context)...
class IncludeNode(Node):
def __init__(self, template, *args, **kwargs):
self.template = template
self.extra_context = kwargs.pop('extra_context', {})
Variable | Value |
---|---|
self | <ExtendsNode: extends "base.html"> |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'view': <apps.catalogue.reviews.views.CreateProductReview object at 0x7ff6792017b8>, 'form': <ProductReviewForm bound=False, valid=Unknown, fields=(title;score;body;name;email)>, 'basket': <SimpleLazyObject: <Basket: Open panier (propriétaire: None, lignes: 0)>>, 'product': <Product: Carte Cadeau ExactAir>}, {'LANGUAGES': [('fr', 'Français')], 'country_obj': <Country: Canada>, 'LANGUAGE_CODE': 'fr', 'block': <Block Node: layout. Contents: [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLN... <trimmed 6800 bytes string> |
block_context | <django.template.loader_tags.BlockContext object at 0x7ff678cf3c50> |
compiled_parent | <django.template.base.Template object at 0x7ff6791859e8> |
node | <django.template.defaulttags.LoadNode object at 0x7ff678b98b70> |
blocks | {'body_class': <Block Node: body_class. Contents: [<Text Node: 'default'>]>, 'body_id': <Block Node: body_id. Contents: [<Text Node: 'default'>]>, 'canonical_block': <Block Node: canonical_block. Contents: []>, 'cdn_scripts': <Block Node: cdn_scripts. Contents: [<Text Node: ' <!-- jQuery '>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678cea898>, <Text Node: '"></script> --> '>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ceae48>, <Text Node: '"><\/script>')</script> '>]>, 'description': <Block Node: description. Contents: []>, 'extrahead': <Block Node: extrahead. Contents: []>, 'extrascripts': <Block Node: extrascripts. Contents: []>, 'extrastyles': <Block Node: extrastyles. Contents: []>, 'favicon': <Block Node: favicon. Contents: [<Text Node: ' <link rel="s'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff6783055f8>, <Text Node: '" /> '>]>, 'geolocate_n_googlemap': <Block Node: geolocate_n_googlemap. Contents: [<Text Node: ' '>]>, 'handlebar-script': <Block Node: handlebar-script. Contents: [<Text Node: ' '>]>, 'keywords': <Block Node: keywords. Contents: []>, 'layout': <Block Node: layout. Contents: []>, 'mainstyles': <Block Node: mainstyles. Contents: [<Text Node: ' '>, <django.template.defaulttags.CommentNode object at 0x7ff678305710>, <Text Node: ' '>, <Block Node: styles. Contents: [<Text Node: ' '>, <django.template.defaulttags.CommentNode object at 0x7ff678305ba8>, <Text Node: ' '>]>, <Text Node: ' '>]>, 'meta_facebook': <Block Node: meta_facebook. Contents: []>, 'meta_twitter': <Block Node: meta_twitter. Contents: []>, 'onbodyload': <Block Node: onbodyload. Contents: []>, 'scripts': <Block Node: scripts. Contents: [<Text Node: ' '>]>, 'styles': <Block Node: styles. Contents: [<Text Node: ' '>, <django.template.defaulttags.CommentNode object at 0x7ff678305ba8>, <Text Node: ' '>]>, 'title': <Block Node: title. Contents: [<Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678b98eb8>, <Text Node: ' '>]>, 'tracking': <Block Node: tracking. Contents: [<Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678305438>, <Text Node: ' '>]>, 'viewport': <Block Node: viewport. Contents: [<Text Node: 'width=device-width'>]>} |
/virtualenv/lib/python3.5/site-packages/django/test/utils.py
in instrumented_test_render
def instrumented_test_render(self, context):
"""
An instrumented Template render method, providing a signal
that can be intercepted by the test system Client
"""
template_rendered.send(sender=self, template=self, context=context)
return self.nodelist.render(context)...
def setup_test_environment():
"""Perform any global pre-test setup. This involves:
- Installing the instrumented test renderer
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7ff6791859e8> |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'view': <apps.catalogue.reviews.views.CreateProductReview object at 0x7ff6792017b8>, 'form': <ProductReviewForm bound=False, valid=Unknown, fields=(title;score;body;name;email)>, 'basket': <SimpleLazyObject: <Basket: Open panier (propriétaire: None, lignes: 0)>>, 'product': <Product: Carte Cadeau ExactAir>}, {'LANGUAGES': [('fr', 'Français')], 'country_obj': <Country: Canada>, 'LANGUAGE_CODE': 'fr', 'block': <Block Node: layout. Contents: [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLN... <trimmed 6800 bytes string> |
/virtualenv/lib/python3.5/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 = self.render_node(node, context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
self | [<django.template.defaulttags.LoadNode object at 0x7ff678b98b70>, <Text Node: ' '>, <django.template.defaulttags.LoadNode object at 0x7ff678b98ac8>, <Text Node: ' <!DOCTYPE html> <!--[i'>, <Variable Node: LANGUAGE_CODE|default:"en-gb">, <Text Node: '" class="no-js lt-ie9 lt-'>, <Variable Node: LANGUAGE_CODE|default:"en-gb">, <Text Node: '" class="no-js lt-ie9 lt-'>, <Variable Node: LANGUAGE_CODE|default:"en-gb">, <Text Node: '" class="no-js lt-ie9"> <'>, <Variable Node: LANGUAGE_CODE|default:"en-gb">, <Text Node: '" class="no-js"> <!--<![e'>, <Block Node: title. Contents: [<Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678b98eb8>, <Text Node: ' '>]>, <Text Node: ' </title> '>, <django.template.defaulttags.NowNode object at 0x7ff6783059e8>, <Text Node: '" /> <meta name="'>, <Block Node: description. Contents: []>, <Text Node: '" /> <meta name="'>, <Block Node: keywords. Contents: []>, <Text Node: '" /> <meta name="'>, <Block Node: viewport. Contents: [<Text Node: 'width=device-width'>]>, <Text Node: '" /> <meta name="'>, <Block Node: meta_twitter. Contents: []>, <Text Node: ' '>, <Block Node: meta_facebook. Contents: []>, <Text Node: ' <!-- Le HTML5 sh'>, <Block Node: favicon. Contents: [<Text Node: ' <link rel="s'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff6783055f8>, <Text Node: '" /> '>]>, <Text Node: ' '>, <Block Node: mainstyles. Contents: [<Text Node: ' '>, <django.template.defaulttags.CommentNode object at 0x7ff678305710>, <Text Node: ' '>, <Block Node: styles. Contents: [<Text Node: ' '>, <django.template.defaulttags.CommentNode object at 0x7ff678305ba8>, <Text Node: ' '>]>, <Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <Block Node: extrastyles. Contents: []>, <Text Node: ' '>, <Block Node: extrahead. Contents: []>, <Text Node: ' '>, <Block Node: canonical_block. Contents: []>, <Text Node: ' '>, <Block Node: tracking. Contents: [<Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678305438>, <Text Node: ' '>]>, <Text Node: ' <script src="ht'>, <Block Node: body_id. Contents: [<Text Node: 'default'>]>, <Text Node: '" class="'>, <Block Node: body_class. Contents: [<Text Node: 'default'>]>, <Text Node: '"> '>, <Block Node: geolocate_n_googlemap. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <Block Node: layout. Contents: []>, <Text Node: ' '>, <django.template.defaulttags.CommentNode object at 0x7ff678ceab38>, <Text Node: ' '>, <Block Node: cdn_scripts. Contents: [<Text Node: ' <!-- jQuery '>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678cea898>, <Text Node: '"></script> --> '>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ceae48>, <Text Node: '"><\/script>')</script> '>]>, <Text Node: ' '>, <Text Node: ' '>, <Block Node: scripts. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Block Node: handlebar-script. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <Block Node: extrascripts. Contents: []>, <Text Node: ' '>, <Text Node: ' <script type="te'>, <Block Node: onbodyload. Contents: []>, <Text Node: ' }); '>, <Text Node: ' <!-- '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cea400>, <Text Node: ' '>, <Variable Node: version>, <Text Node: ' --> <div id="ge'>] |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'view': <apps.catalogue.reviews.views.CreateProductReview object at 0x7ff6792017b8>, 'form': <ProductReviewForm bound=False, valid=Unknown, fields=(title;score;body;name;email)>, 'basket': <SimpleLazyObject: <Basket: Open panier (propriétaire: None, lignes: 0)>>, 'product': <Product: Carte Cadeau ExactAir>}, {'LANGUAGES': [('fr', 'Français')], 'country_obj': <Country: Canada>, 'LANGUAGE_CODE': 'fr', 'block': <Block Node: layout. Contents: [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLN... <trimmed 6800 bytes string> |
bit | '\n ' |
bits | ['', '\n', '', '\n\n\n<!DOCTYPE html>\n<!--[if lt IE 7]> <html lang="', 'en-gb', '" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->\n' '<!--[if IE 7]> <html lang="', 'en-gb', '" class="no-js lt-ie9 lt-ie8"> <![endif]-->\n' '<!--[if IE 8]> <html lang="', 'en-gb', '" class="no-js lt-ie9"> <![endif]-->\n<!--[if gt IE 8]><!--> <html lang="', 'en-gb', '" class="no-js"> <!--<![endif]-->\n <head>\n <title>\n ', '\n\n Carte Cadeau ExactAir | \n Mon ICIA\n \n\n', '\n' ' </title>\n' ' <meta name="google-site-verification" ' 'content="-1NW6jF6uFTs1aSbyIyu-iK-pbaWcOGumVcyBfb2mik" />\n' ' <meta http-equiv="content-type" content="text/html; charset=UTF-8" ' '/>\n' ' <meta name="created" content="', '28th Mar 2024 10:00', '" />\n <meta name="description" content="', '\n' '\n' ' Offrez une carte Cadeau à un être cher qui rêve de voler ! D’une valeur ' 'de 50$, 100$ ou 500$, cette carte lui permettra de réduire le coût du ' 'forfait de vol ou de diminuer le coût de sa formation de pilote !!!\n' '\n', '" />\n <meta name="keywords" content="', '', '" />\n <meta name="viewport" content="', 'width=device-width', '" />\n' ' <meta name="robots" content="NOARCHIVE,NOCACHE" />\n' ' \n' ' ', '', '\n ', '\n \n', '\n' ' <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->\n' ' <!--[if lt IE 9]>\n' ' <script ' 'src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>\n' ' <![endif]-->\n' '\n' ' ', '\n' ' <link rel="shortcut icon" href="/static/favicon.ico" />\n' ' ', '\n\n ', '\n' ' \n' '\n' ' \n' ' <link rel="stylesheet" type="text/css"\n' ' href="/static/css/styles.css"/>\n' ' <meta charset="utf-8">\n' ' <meta http-equiv="X-UA-Compatible" content="IE=edge">\n' ' <meta name="viewport"\n' ' content="width=device-width, initial-scale=1">\n' ' <!-- Bootstrap -->\n' ' <!--<link type="text/css" rel="stylesheet"\n' ' href="/static/css/jquery.mCustomScrollbar.css"/>-->\n' ' <link type="text/css" rel="stylesheet"\n' ' href="/static/css/jquery.mCustomScrollbar1.css"/>\n' ' <link href="/static/css/bootstrap.min.css"\n' ' rel="stylesheet">\n' ' <link href="/static/css/font-awesome.min.css"\n' ' rel="stylesheet">\n' ' <link type="text/css" rel="stylesheet"\n' ' href="/static/css/bootstrap-select.min.css"/>\n' ' <link rel="stylesheet" href="/static/css/hover.css">\n' ' <link href="/static/css/owl.carousel.css"\n' ' rel="stylesheet">\n' ' <link href="/static/css/owl.carousel.min.css"\n' ' rel="stylesheet">\n' ' <link href="/static/css/jquery.fancybox.css"\n' ' rel="stylesheet"> \n' ' <link type="text/css" rel="stylesheet"\n' ' href="/static/css/easy-responsive-tabs.css"/>\n' ' <link href="/static/css/style.css" rel="stylesheet">\n' ' <link href="/static/css/responsive.css"\n' ' rel="stylesheet">\n' ' <link rel="stylesheet" href="/static/css/hover.css">\n' ' <link rel="stylesheet"\n' ' href="/static/css/owl.theme.default.min.css">\n' ' <link rel="stylesheet" href="/static/css/custom.css">\n' '\n' ' \n' ' <link ' "href='https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700,700italic'\n" " rel='stylesheet' type='text/css'>\n" '\n' '\n', '\n\n ', '\n ', '', '\n\n ', '', '\n ', '\n' ' <link rel... <trimmed 4605 bytes string> |
node | <Block Node: layout. Contents: []> |
/virtualenv/lib/python3.5/site-packages/django/template/debug.py
in render_node
if not hasattr(e, 'django_template_source'):
e.django_template_source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
return node.render(context)...
except Exception as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
self | [<django.template.defaulttags.LoadNode object at 0x7ff678b98b70>, <Text Node: ' '>, <django.template.defaulttags.LoadNode object at 0x7ff678b98ac8>, <Text Node: ' <!DOCTYPE html> <!--[i'>, <Variable Node: LANGUAGE_CODE|default:"en-gb">, <Text Node: '" class="no-js lt-ie9 lt-'>, <Variable Node: LANGUAGE_CODE|default:"en-gb">, <Text Node: '" class="no-js lt-ie9 lt-'>, <Variable Node: LANGUAGE_CODE|default:"en-gb">, <Text Node: '" class="no-js lt-ie9"> <'>, <Variable Node: LANGUAGE_CODE|default:"en-gb">, <Text Node: '" class="no-js"> <!--<![e'>, <Block Node: title. Contents: [<Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678b98eb8>, <Text Node: ' '>]>, <Text Node: ' </title> '>, <django.template.defaulttags.NowNode object at 0x7ff6783059e8>, <Text Node: '" /> <meta name="'>, <Block Node: description. Contents: []>, <Text Node: '" /> <meta name="'>, <Block Node: keywords. Contents: []>, <Text Node: '" /> <meta name="'>, <Block Node: viewport. Contents: [<Text Node: 'width=device-width'>]>, <Text Node: '" /> <meta name="'>, <Block Node: meta_twitter. Contents: []>, <Text Node: ' '>, <Block Node: meta_facebook. Contents: []>, <Text Node: ' <!-- Le HTML5 sh'>, <Block Node: favicon. Contents: [<Text Node: ' <link rel="s'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff6783055f8>, <Text Node: '" /> '>]>, <Text Node: ' '>, <Block Node: mainstyles. Contents: [<Text Node: ' '>, <django.template.defaulttags.CommentNode object at 0x7ff678305710>, <Text Node: ' '>, <Block Node: styles. Contents: [<Text Node: ' '>, <django.template.defaulttags.CommentNode object at 0x7ff678305ba8>, <Text Node: ' '>]>, <Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <Block Node: extrastyles. Contents: []>, <Text Node: ' '>, <Block Node: extrahead. Contents: []>, <Text Node: ' '>, <Block Node: canonical_block. Contents: []>, <Text Node: ' '>, <Block Node: tracking. Contents: [<Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678305438>, <Text Node: ' '>]>, <Text Node: ' <script src="ht'>, <Block Node: body_id. Contents: [<Text Node: 'default'>]>, <Text Node: '" class="'>, <Block Node: body_class. Contents: [<Text Node: 'default'>]>, <Text Node: '"> '>, <Block Node: geolocate_n_googlemap. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <Block Node: layout. Contents: []>, <Text Node: ' '>, <django.template.defaulttags.CommentNode object at 0x7ff678ceab38>, <Text Node: ' '>, <Block Node: cdn_scripts. Contents: [<Text Node: ' <!-- jQuery '>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678cea898>, <Text Node: '"></script> --> '>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ceae48>, <Text Node: '"><\/script>')</script> '>]>, <Text Node: ' '>, <Text Node: ' '>, <Block Node: scripts. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Block Node: handlebar-script. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Text Node: ' '>, <Block Node: extrascripts. Contents: []>, <Text Node: ' '>, <Text Node: ' <script type="te'>, <Block Node: onbodyload. Contents: []>, <Text Node: ' }); '>, <Text Node: ' <!-- '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cea400>, <Text Node: ' '>, <Variable Node: version>, <Text Node: ' --> <div id="ge'>] |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'view': <apps.catalogue.reviews.views.CreateProductReview object at 0x7ff6792017b8>, 'form': <ProductReviewForm bound=False, valid=Unknown, fields=(title;score;body;name;email)>, 'basket': <SimpleLazyObject: <Basket: Open panier (propriétaire: None, lignes: 0)>>, 'product': <Product: Carte Cadeau ExactAir>}, {'LANGUAGES': [('fr', 'Français')], 'country_obj': <Country: Canada>, 'LANGUAGE_CODE': 'fr', 'block': <Block Node: layout. Contents: [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLN... <trimmed 6800 bytes string> |
node | <Block Node: layout. Contents: []> |
/virtualenv/lib/python3.5/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 |
---|---|
push | <Block Node: layout. Contents: [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678cdacf8>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782d6470>, <Text Node: '</a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782d6320>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782d6048>, <Text Node: ' '>, <Block Node: nav_dr... <trimmed 6240 bytes string> |
self | <Block Node: layout. Contents: []> |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'view': <apps.catalogue.reviews.views.CreateProductReview object at 0x7ff6792017b8>, 'form': <ProductReviewForm bound=False, valid=Unknown, fields=(title;score;body;name;email)>, 'basket': <SimpleLazyObject: <Basket: Open panier (propriétaire: None, lignes: 0)>>, 'product': <Product: Carte Cadeau ExactAir>}, {'LANGUAGES': [('fr', 'Français')], 'country_obj': <Country: Canada>, 'LANGUAGE_CODE': 'fr', 'block': <Block Node: layout. Contents: [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLN... <trimmed 6800 bytes string> |
block_context | <django.template.loader_tags.BlockContext object at 0x7ff678cf3c50> |
block | <Block Node: layout. Contents: [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678cdacf8>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782d6470>, <Text Node: '</a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782d6320>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782d6048>, <Text Node: ' '>, <Block Node: nav_dr... <trimmed 6240 bytes string> |
/virtualenv/lib/python3.5/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 = self.render_node(node, context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
self | [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678cdacf8>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782d6470>, <Text Node: '</a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782d6320>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782d6048>, <Text Node: ' ... <trimmed 6271 bytes string> |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'view': <apps.catalogue.reviews.views.CreateProductReview object at 0x7ff6792017b8>, 'form': <ProductReviewForm bound=False, valid=Unknown, fields=(title;score;body;name;email)>, 'basket': <SimpleLazyObject: <Basket: Open panier (propriétaire: None, lignes: 0)>>, 'product': <Product: Carte Cadeau ExactAir>}, {'LANGUAGES': [('fr', 'Français')], 'country_obj': <Country: Canada>, 'LANGUAGE_CODE': 'fr', 'block': <Block Node: layout. Contents: [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLN... <trimmed 6800 bytes string> |
bit | '\n ' |
bits | ['\n ', '\n\n ', '\n\n ', '', '\n' '\n' ' <header class="header">\n' ' <!-- <header class="header"> -->\n' ' <div class="container">\n' ' <div class="row">\n' ' <div class="top clearfix">\n' ' <div class="col-md-2">\n' ' <div class="logo">\n' ' <a href="/"><img class="main-logo"\n' ' src="', '/static/img/logo.png', '"\n' ' alt=""></a>\n' ' </div>\n' ' </div>\n' ' <div class="col-md-10">\n' ' <div class="top-link">\n' ' <ul>\n' ' <li class="basket-link">\n' ' <a href="/boutiques/icia-inc/">', 'boutique en ligne', '</a>\n' ' </li>\n' '\n' ' <li>\n' ' <a href="/">', 'ACCUEIL', '</a>\n' ' </li>\n' '\n' ' <li>\n' ' <a href="', '/fr/accounts/wishlists/', '">', 'FAVORIS', '</a>\n' ' </li>\n' '\n' ' <li class="panier" style="padding-right: ' '35px">\n' ' <a href="', '/fr/basket/', '">', 'PANIER', '\n <span>', '0', '</span></a>\n' ' \n' ' \n' ' <!--<form target="paypal" ' 'action="https://www.paypal.com/cgi-bin/webscr" method="post" >\n' '<input type="hidden" name="cmd" value="_s-xclick">\n' '<input type="hidden" name="encrypted" value="-----BEGIN ' 'PKCS7-----MIIG1QYJKoZIhvcNAQcEoIIGxjCCBsICAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYBhiKW20FO/n8qGiuSt++OUfM1tOfAxMJncx1K0M3VyS2QgDVgW2bKMuVQHc7sT7MfjifdepaZPlgqHPmXOF0TYaNDV5SfB4QF86B4Kg703iUrb378H7MNrxchc1iftNhsIrmS9KQrjh2ZZAp0tc6T68pUiDBmACA8juPrbN2myTDELMAkGBSsOAwIaBQAwUwYJKoZIhvcNAQcBMBQGCCqGSIb3DQMHBAhqV9FikMzCeIAweq/ttthp2fkabNSjdvl/2nrAXrELYa7zWuP17JANmcOudvFOJ96PsRWlUv7zCo//oIIDhzCCA4MwggLsoAMCAQICAQAwDQYJKoZIhvcNAQEFBQAwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tMB4XDTA0MDIxMzEwMTMxNVoXDTM1MDIxMzEwMTMxNVowgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDBR07d/ETMS1ycjtkpkvjXZe9k+6CieLuLsPumsJ7QC1odNz3sJiCbs2wC0nLE0uLGaEtXynIgRqIddYCHx88pb5HTXv4SZeuv0Rqq4+axW9PLAAATU8w04qqjaSXgbGLP3NmohqM6bV9kZZwZLR/klDaQGo1u9uDb9lr4Yn+rBQIDAQABo4HuMIHrMB0GA1UdDgQWBBSWn3y7xm8XvVk/UtcKG+wQ1mSUazCBuwYDVR0jBIGzMIGwgBSWn3y7xm8XvVk/UtcKG+wQ1mSUa6GBlKSBkTCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb22CAQAwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQCBXzpWmoBa5e9fo6ujionW1hUhPkOBakTr3YCDjbYfvJEiv/2P+IobhOGJr85+XHhN0v4gUkEDI8r2/rNk1m0GA8HKddvTjyGw/XqXa+LSTlDYkqI8OwR8GEYj4efEtcRpRYBxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTYwOTE2MjMxNTQ0WjAjBgkqhkiG9w0BCQQxFgQUr8hNF0mBLJAWG... <trimmed 61165 bytes string> |
node | <Block Node: content_wrapper. Contents: [<Text Node: ' <div class="con'>, <Block Node: breadcrumbs. Contents: []>, <Text Node: ' '>, <Block Node: header. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Block Node: subnavigation. Contents: []>, <Text Node: ' '>, <Block Node: message. Contents: [<Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ce80b8>, <Text Node: ' '>]>, <Text Node: ' <div id='>, <Block Node: content. Contents: []>, <Text Node: '</div> </div>'>]> |
/virtualenv/lib/python3.5/site-packages/django/template/debug.py
in render_node
if not hasattr(e, 'django_template_source'):
e.django_template_source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
return node.render(context)...
except Exception as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
self | [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678cdacf8>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782d6470>, <Text Node: '</a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782d6320>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782d6048>, <Text Node: ' ... <trimmed 6271 bytes string> |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'view': <apps.catalogue.reviews.views.CreateProductReview object at 0x7ff6792017b8>, 'form': <ProductReviewForm bound=False, valid=Unknown, fields=(title;score;body;name;email)>, 'basket': <SimpleLazyObject: <Basket: Open panier (propriétaire: None, lignes: 0)>>, 'product': <Product: Carte Cadeau ExactAir>}, {'LANGUAGES': [('fr', 'Français')], 'country_obj': <Country: Canada>, 'LANGUAGE_CODE': 'fr', 'block': <Block Node: layout. Contents: [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLN... <trimmed 6800 bytes string> |
node | <Block Node: content_wrapper. Contents: [<Text Node: ' <div class="con'>, <Block Node: breadcrumbs. Contents: []>, <Text Node: ' '>, <Block Node: header. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Block Node: subnavigation. Contents: []>, <Text Node: ' '>, <Block Node: message. Contents: [<Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ce80b8>, <Text Node: ' '>]>, <Text Node: ' <div id='>, <Block Node: content. Contents: []>, <Text Node: '</div> </div>'>]> |
/virtualenv/lib/python3.5/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 |
---|---|
push | <Block Node: content_wrapper. Contents: [<Text Node: ' <div class="con'>, <Block Node: breadcrumbs. Contents: []>, <Text Node: ' '>, <Block Node: header. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Block Node: subnavigation. Contents: []>, <Text Node: ' '>, <Block Node: message. Contents: [<Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ce80b8>, <Text Node: ' '>]>, <Text Node: ' <div id='>, <Block Node: content. Contents: []>, <Text Node: '</div> </div>'>]> |
self | <Block Node: content_wrapper. Contents: [<Text Node: ' <div class="con'>, <Block Node: breadcrumbs. Contents: []>, <Text Node: ' '>, <Block Node: header. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Block Node: subnavigation. Contents: []>, <Text Node: ' '>, <Block Node: message. Contents: [<Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ce80b8>, <Text Node: ' '>]>, <Text Node: ' <div id='>, <Block Node: content. Contents: []>, <Text Node: '</div> </div>'>]> |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'view': <apps.catalogue.reviews.views.CreateProductReview object at 0x7ff6792017b8>, 'form': <ProductReviewForm bound=False, valid=Unknown, fields=(title;score;body;name;email)>, 'basket': <SimpleLazyObject: <Basket: Open panier (propriétaire: None, lignes: 0)>>, 'product': <Product: Carte Cadeau ExactAir>}, {'LANGUAGES': [('fr', 'Français')], 'country_obj': <Country: Canada>, 'LANGUAGE_CODE': 'fr', 'block': <Block Node: layout. Contents: [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLN... <trimmed 6800 bytes string> |
block_context | <django.template.loader_tags.BlockContext object at 0x7ff678cf3c50> |
block | <Block Node: content_wrapper. Contents: [<Text Node: ' <div class="con'>, <Block Node: breadcrumbs. Contents: []>, <Text Node: ' '>, <Block Node: header. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Block Node: subnavigation. Contents: []>, <Text Node: ' '>, <Block Node: message. Contents: [<Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ce80b8>, <Text Node: ' '>]>, <Text Node: ' <div id='>, <Block Node: content. Contents: []>, <Text Node: '</div> </div>'>]> |
/virtualenv/lib/python3.5/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 = self.render_node(node, context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
self | [<Text Node: ' <div class="con'>, <Block Node: breadcrumbs. Contents: []>, <Text Node: ' '>, <Block Node: header. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Block Node: subnavigation. Contents: []>, <Text Node: ' '>, <Block Node: message. Contents: [<Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ce80b8>, <Text Node: ' '>]>, <Text Node: ' <div id='>, <Block Node: content. Contents: []>, <Text Node: '</div> </div>'>] |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'view': <apps.catalogue.reviews.views.CreateProductReview object at 0x7ff6792017b8>, 'form': <ProductReviewForm bound=False, valid=Unknown, fields=(title;score;body;name;email)>, 'basket': <SimpleLazyObject: <Basket: Open panier (propriétaire: None, lignes: 0)>>, 'product': <Product: Carte Cadeau ExactAir>}, {'LANGUAGES': [('fr', 'Français')], 'country_obj': <Country: Canada>, 'LANGUAGE_CODE': 'fr', 'block': <Block Node: layout. Contents: [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLN... <trimmed 6800 bytes string> |
bit | '\n <div id="content_inner">' |
bits | ['\n' '\n' ' <div class="container box-layout">\n' ' <div class="row">\n' ' ', '\n' '\n' ' <div class="col-md-12 Breadcrumbs">\n' '\n' ' <ul>\n' '\n' ' <li>\n' '\n' ' <a href="/fr/">Accueil</a>\n' '\n' ' </li>\n' '\n' ' \n' '\n' ' \n' '\n' ' <li>\n' '\n' ' <a ' 'href="/fr/catalogue/category/cartes-cadeaux_76/">Cartes cadeaux</a>\n' '\n' ' </li>\n' '\n' ' \n' '\n' ' <li>\n' '\n' ' <a ' 'href="/fr/catalogue/category/cartes-cadeaux/certificats-cadeaux_776/">Certificats ' 'cadeaux</a>\n' '\n' ' </li>\n' '\n' ' \n' '\n' '\n' '\n' ' <li>Carte Cadeau ExactAir</li>\n' '\n' ' \n' '\n' ' \n' '\n' ' \n' '\n' ' </ul>\n' '\n' ' </div>\n' '\n', '\n ', '\n ', '\n\n ', '', '\n\n ', '\n' '\n' ' \n' ' \n' '\n' '\n' '\n' '<div id="messages">\n' '\n' '</div>\n' '\n' ' \n' '\n', '\n <div id="content_inner">'] |
node | <Block Node: content. Contents: []> |
/virtualenv/lib/python3.5/site-packages/django/template/debug.py
in render_node
if not hasattr(e, 'django_template_source'):
e.django_template_source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
return node.render(context)...
except Exception as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
self | [<Text Node: ' <div class="con'>, <Block Node: breadcrumbs. Contents: []>, <Text Node: ' '>, <Block Node: header. Contents: [<Text Node: ' '>]>, <Text Node: ' '>, <Block Node: subnavigation. Contents: []>, <Text Node: ' '>, <Block Node: message. Contents: [<Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ce80b8>, <Text Node: ' '>]>, <Text Node: ' <div id='>, <Block Node: content. Contents: []>, <Text Node: '</div> </div>'>] |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'view': <apps.catalogue.reviews.views.CreateProductReview object at 0x7ff6792017b8>, 'form': <ProductReviewForm bound=False, valid=Unknown, fields=(title;score;body;name;email)>, 'basket': <SimpleLazyObject: <Basket: Open panier (propriétaire: None, lignes: 0)>>, 'product': <Product: Carte Cadeau ExactAir>}, {'LANGUAGES': [('fr', 'Français')], 'country_obj': <Country: Canada>, 'LANGUAGE_CODE': 'fr', 'block': <Block Node: layout. Contents: [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLN... <trimmed 6800 bytes string> |
node | <Block Node: content. Contents: []> |
/virtualenv/lib/python3.5/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 |
---|---|
push | <Block Node: content. Contents: [<Text Node: ' <div class="contain'>, <Variable Node: product.title>, <Text Node: '</div> </div'>, <Block Node: product_gallery. Contents: [<Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678c5fbe0>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <Block Node: product_stock_record. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d08ba8>, <Text Node: ' <div align="center" cla'>, <IfNode>, <Text Node: ' </div> '>]>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678be3ac8>, <Text Node: ' '>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678be3080>, <Text Node: '"alt=""> Commenter </a> '>, <django.template.loader_tags.IncludeNode object at 0x7ff678be3358>, <Text Node: ' '>, <WithNode>, <Text Node: ' '>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-faceboo'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-twitter'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '&text='>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-linkedi'>, <Block Node: product_basket_form. Contents: [<Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678c6ed68>, <Text Node: ' '>]>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782a74e0>, <Text Node: ''>'>, <Variable Node: product.created_by.seller_profile.get.company_name>, <Text Node: '</a></h3> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782a7e10>, <Text Node: ' '>, <Variable Node: rating|as_stars>, <Text Node: ' review-rating seller-rat'>, <WithNode>, <Text Node: ' '>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-faceboo'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-twitter'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '&text='>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-linkedi'>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678cd81d0>, <Text Node: ''>'>, <Variable Node: product.created_by.seller_profile.get.company_name>, <Text Node: '</a></h3> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678cd8f28>, <Text Node: ' '>, <Variable Node: rating|as_stars>, <Text Node: ' review-rating seller-rat'>]>, <Text Node: ' </div> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cd8a90>, <Text Node: '</li> '>, <oscar.templatetags.display_tags.ConditionalOutputNode object at 0x7ff678cd8630>, <Text Node: ' '>, <oscar.templatetags.display_tags.ConditionalOutputNode object at 0x7ff678cee160>, <Text Node: ' '>, <Block Node: product_info. Contents: [<Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cee7f0>, <Text Node: '</h2> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cee320>, <Text Node: '</th><td>'>, <Vari... <trimmed 5249 bytes string> |
self | <Block Node: content. Contents: []> |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'view': <apps.catalogue.reviews.views.CreateProductReview object at 0x7ff6792017b8>, 'form': <ProductReviewForm bound=False, valid=Unknown, fields=(title;score;body;name;email)>, 'basket': <SimpleLazyObject: <Basket: Open panier (propriétaire: None, lignes: 0)>>, 'product': <Product: Carte Cadeau ExactAir>}, {'LANGUAGES': [('fr', 'Français')], 'country_obj': <Country: Canada>, 'LANGUAGE_CODE': 'fr', 'block': <Block Node: layout. Contents: [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLN... <trimmed 6800 bytes string> |
block_context | <django.template.loader_tags.BlockContext object at 0x7ff678cf3c50> |
block | <Block Node: content. Contents: [<Text Node: ' <div class="contain'>, <Variable Node: product.title>, <Text Node: '</div> </div'>, <Block Node: product_gallery. Contents: [<Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678c5fbe0>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <Block Node: product_stock_record. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d08ba8>, <Text Node: ' <div align="center" cla'>, <IfNode>, <Text Node: ' </div> '>]>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678be3ac8>, <Text Node: ' '>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678be3080>, <Text Node: '"alt=""> Commenter </a> '>, <django.template.loader_tags.IncludeNode object at 0x7ff678be3358>, <Text Node: ' '>, <WithNode>, <Text Node: ' '>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-faceboo'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-twitter'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '&text='>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-linkedi'>, <Block Node: product_basket_form. Contents: [<Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678c6ed68>, <Text Node: ' '>]>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782a74e0>, <Text Node: ''>'>, <Variable Node: product.created_by.seller_profile.get.company_name>, <Text Node: '</a></h3> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782a7e10>, <Text Node: ' '>, <Variable Node: rating|as_stars>, <Text Node: ' review-rating seller-rat'>, <WithNode>, <Text Node: ' '>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-faceboo'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-twitter'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '&text='>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-linkedi'>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678cd81d0>, <Text Node: ''>'>, <Variable Node: product.created_by.seller_profile.get.company_name>, <Text Node: '</a></h3> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678cd8f28>, <Text Node: ' '>, <Variable Node: rating|as_stars>, <Text Node: ' review-rating seller-rat'>]>, <Text Node: ' </div> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cd8a90>, <Text Node: '</li> '>, <oscar.templatetags.display_tags.ConditionalOutputNode object at 0x7ff678cd8630>, <Text Node: ' '>, <oscar.templatetags.display_tags.ConditionalOutputNode object at 0x7ff678cee160>, <Text Node: ' '>, <Block Node: product_info. Contents: [<Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cee7f0>, <Text Node: '</h2> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cee320>, <Text Node: '</th><td>'>, <Vari... <trimmed 5249 bytes string> |
/virtualenv/lib/python3.5/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 = self.render_node(node, context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
self | [<Text Node: ' <div class="contain'>, <Variable Node: product.title>, <Text Node: '</div> </div'>, <Block Node: product_gallery. Contents: [<Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678c5fbe0>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <Block Node: product_stock_record. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d08ba8>, <Text Node: ' <div align="center" cla'>, <IfNode>, <Text Node: ' </div> '>]>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678be3ac8>, <Text Node: ' '>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678be3080>, <Text Node: '"alt=""> Commenter </a> '>, <django.template.loader_tags.IncludeNode object at 0x7ff678be3358>, <Text Node: ' '>, <WithNode>, <Text Node: ' '>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-faceboo'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-twitter'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '&text='>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-linkedi'>, <Block Node: product_basket_form. Contents: [<Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678c6ed68>, <Text Node: ' '>]>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782a74e0>, <Text Node: ''>'>, <Variable Node: product.created_by.seller_profile.get.company_name>, <Text Node: '</a></h3> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782a7e10>, <Text Node: ' '>, <Variable Node: rating|as_stars>, <Text Node: ' review-rating seller-rat'>, <WithNode>, <Text Node: ' '>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-faceboo'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-twitter'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '&text='>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-linkedi'>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678cd81d0>, <Text Node: ''>'>, <Variable Node: product.created_by.seller_profile.get.company_name>, <Text Node: '</a></h3> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678cd8f28>, <Text Node: ' '>, <Variable Node: rating|as_stars>, <Text Node: ' review-rating seller-rat'>]>, <Text Node: ' </div> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cd8a90>, <Text Node: '</li> '>, <oscar.templatetags.display_tags.ConditionalOutputNode object at 0x7ff678cd8630>, <Text Node: ' '>, <oscar.templatetags.display_tags.ConditionalOutputNode object at 0x7ff678cee160>, <Text Node: ' '>, <Block Node: product_info. Contents: [<Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cee7f0>, <Text Node: '</h2> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cee320>, <Text Node: '</th><td>'>, <Variable Node: product.id... <trimmed 5236 bytes string> |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'view': <apps.catalogue.reviews.views.CreateProductReview object at 0x7ff6792017b8>, 'form': <ProductReviewForm bound=False, valid=Unknown, fields=(title;score;body;name;email)>, 'basket': <SimpleLazyObject: <Basket: Open panier (propriétaire: None, lignes: 0)>>, 'product': <Product: Carte Cadeau ExactAir>}, {'LANGUAGES': [('fr', 'Français')], 'country_obj': <Country: Canada>, 'LANGUAGE_CODE': 'fr', 'block': <Block Node: layout. Contents: [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLN... <trimmed 6800 bytes string> |
bit | ('</div>\n' '\n' ' </div>\n' '\n' ' <div class="clearfix inner-main">\n' '\n' ' <div class="Site-Products-Details02 row">\n' '\n' ' ') |
bits | ['\n' '\n' ' <div class="container">\n' '\n' ' <div class="row">\n' '\n' ' <div class="col-md-12 boutiqueMain">\n' '\n' '\n' '\n' ' <div class=" boutiqueText">', 'Carte Cadeau ExactAir', '</div>\n' '\n' ' </div>\n' '\n' ' <div class="clearfix inner-main">\n' '\n' ' <div class="Site-Products-Details02 row">\n' '\n' ' '] |
node | <Block Node: product_gallery. Contents: [<Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678c5fbe0>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <Block Node: product_stock_record. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d08ba8>, <Text Node: ' <div align="center" cla'>, <IfNode>, <Text Node: ' </div> '>]>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678be3ac8>, <Text Node: ' '>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678be3080>, <Text Node: '"alt=""> Commenter </a> '>, <django.template.loader_tags.IncludeNode object at 0x7ff678be3358>, <Text Node: ' '>, <WithNode>, <Text Node: ' '>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-faceboo'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-twitter'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '&text='>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-linkedi'>, <Block Node: product_basket_form. Contents: [<Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678c6ed68>, <Text Node: ' '>]>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782a74e0>, <Text Node: ''>'>, <Variable Node: product.created_by.seller_profile.get.company_name>, <Text Node: '</a></h3> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782a7e10>, <Text Node: ' '>, <Variable Node: rating|as_stars>, <Text Node: ' review-rating seller-rat'>, <WithNode>, <Text Node: ' '>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-faceboo'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-twitter'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '&text='>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-linkedi'>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678cd81d0>, <Text Node: ''>'>, <Variable Node: product.created_by.seller_profile.get.company_name>, <Text Node: '</a></h3> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678cd8f28>, <Text Node: ' '>, <Variable Node: rating|as_stars>, <Text Node: ' review-rating seller-rat'>]> |
/virtualenv/lib/python3.5/site-packages/django/template/debug.py
in render_node
if not hasattr(e, 'django_template_source'):
e.django_template_source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
return node.render(context)...
except Exception as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
self | [<Text Node: ' <div class="contain'>, <Variable Node: product.title>, <Text Node: '</div> </div'>, <Block Node: product_gallery. Contents: [<Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678c5fbe0>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <Block Node: product_stock_record. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d08ba8>, <Text Node: ' <div align="center" cla'>, <IfNode>, <Text Node: ' </div> '>]>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678be3ac8>, <Text Node: ' '>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678be3080>, <Text Node: '"alt=""> Commenter </a> '>, <django.template.loader_tags.IncludeNode object at 0x7ff678be3358>, <Text Node: ' '>, <WithNode>, <Text Node: ' '>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-faceboo'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-twitter'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '&text='>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-linkedi'>, <Block Node: product_basket_form. Contents: [<Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678c6ed68>, <Text Node: ' '>]>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782a74e0>, <Text Node: ''>'>, <Variable Node: product.created_by.seller_profile.get.company_name>, <Text Node: '</a></h3> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782a7e10>, <Text Node: ' '>, <Variable Node: rating|as_stars>, <Text Node: ' review-rating seller-rat'>, <WithNode>, <Text Node: ' '>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-faceboo'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-twitter'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '&text='>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-linkedi'>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678cd81d0>, <Text Node: ''>'>, <Variable Node: product.created_by.seller_profile.get.company_name>, <Text Node: '</a></h3> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678cd8f28>, <Text Node: ' '>, <Variable Node: rating|as_stars>, <Text Node: ' review-rating seller-rat'>]>, <Text Node: ' </div> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cd8a90>, <Text Node: '</li> '>, <oscar.templatetags.display_tags.ConditionalOutputNode object at 0x7ff678cd8630>, <Text Node: ' '>, <oscar.templatetags.display_tags.ConditionalOutputNode object at 0x7ff678cee160>, <Text Node: ' '>, <Block Node: product_info. Contents: [<Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cee7f0>, <Text Node: '</h2> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cee320>, <Text Node: '</th><td>'>, <Variable Node: product.id... <trimmed 5236 bytes string> |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'view': <apps.catalogue.reviews.views.CreateProductReview object at 0x7ff6792017b8>, 'form': <ProductReviewForm bound=False, valid=Unknown, fields=(title;score;body;name;email)>, 'basket': <SimpleLazyObject: <Basket: Open panier (propriétaire: None, lignes: 0)>>, 'product': <Product: Carte Cadeau ExactAir>}, {'LANGUAGES': [('fr', 'Français')], 'country_obj': <Country: Canada>, 'LANGUAGE_CODE': 'fr', 'block': <Block Node: layout. Contents: [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLN... <trimmed 6800 bytes string> |
node | <Block Node: product_gallery. Contents: [<Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678c5fbe0>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <Block Node: product_stock_record. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d08ba8>, <Text Node: ' <div align="center" cla'>, <IfNode>, <Text Node: ' </div> '>]>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678be3ac8>, <Text Node: ' '>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678be3080>, <Text Node: '"alt=""> Commenter </a> '>, <django.template.loader_tags.IncludeNode object at 0x7ff678be3358>, <Text Node: ' '>, <WithNode>, <Text Node: ' '>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-faceboo'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-twitter'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '&text='>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-linkedi'>, <Block Node: product_basket_form. Contents: [<Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678c6ed68>, <Text Node: ' '>]>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782a74e0>, <Text Node: ''>'>, <Variable Node: product.created_by.seller_profile.get.company_name>, <Text Node: '</a></h3> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782a7e10>, <Text Node: ' '>, <Variable Node: rating|as_stars>, <Text Node: ' review-rating seller-rat'>, <WithNode>, <Text Node: ' '>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-faceboo'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-twitter'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '&text='>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-linkedi'>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678cd81d0>, <Text Node: ''>'>, <Variable Node: product.created_by.seller_profile.get.company_name>, <Text Node: '</a></h3> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678cd8f28>, <Text Node: ' '>, <Variable Node: rating|as_stars>, <Text Node: ' review-rating seller-rat'>]> |
/virtualenv/lib/python3.5/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 |
---|---|
push | <Block Node: product_gallery. Contents: [<Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678c5fbe0>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <Block Node: product_stock_record. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d08ba8>, <Text Node: ' <div align="center" cla'>, <IfNode>, <Text Node: ' </div> '>]>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678be3ac8>, <Text Node: ' '>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678be3080>, <Text Node: '"alt=""> Commenter </a> '>, <django.template.loader_tags.IncludeNode object at 0x7ff678be3358>, <Text Node: ' '>, <WithNode>, <Text Node: ' '>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-faceboo'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-twitter'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '&text='>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-linkedi'>, <Block Node: product_basket_form. Contents: [<Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678c6ed68>, <Text Node: ' '>]>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782a74e0>, <Text Node: ''>'>, <Variable Node: product.created_by.seller_profile.get.company_name>, <Text Node: '</a></h3> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782a7e10>, <Text Node: ' '>, <Variable Node: rating|as_stars>, <Text Node: ' review-rating seller-rat'>, <WithNode>, <Text Node: ' '>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-faceboo'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-twitter'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '&text='>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-linkedi'>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678cd81d0>, <Text Node: ''>'>, <Variable Node: product.created_by.seller_profile.get.company_name>, <Text Node: '</a></h3> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678cd8f28>, <Text Node: ' '>, <Variable Node: rating|as_stars>, <Text Node: ' review-rating seller-rat'>]> |
self | <Block Node: product_gallery. Contents: [<Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678c5fbe0>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <Block Node: product_stock_record. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d08ba8>, <Text Node: ' <div align="center" cla'>, <IfNode>, <Text Node: ' </div> '>]>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678be3ac8>, <Text Node: ' '>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678be3080>, <Text Node: '"alt=""> Commenter </a> '>, <django.template.loader_tags.IncludeNode object at 0x7ff678be3358>, <Text Node: ' '>, <WithNode>, <Text Node: ' '>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-faceboo'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-twitter'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '&text='>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-linkedi'>, <Block Node: product_basket_form. Contents: [<Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678c6ed68>, <Text Node: ' '>]>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782a74e0>, <Text Node: ''>'>, <Variable Node: product.created_by.seller_profile.get.company_name>, <Text Node: '</a></h3> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782a7e10>, <Text Node: ' '>, <Variable Node: rating|as_stars>, <Text Node: ' review-rating seller-rat'>, <WithNode>, <Text Node: ' '>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-faceboo'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-twitter'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '&text='>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-linkedi'>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678cd81d0>, <Text Node: ''>'>, <Variable Node: product.created_by.seller_profile.get.company_name>, <Text Node: '</a></h3> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678cd8f28>, <Text Node: ' '>, <Variable Node: rating|as_stars>, <Text Node: ' review-rating seller-rat'>]> |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'view': <apps.catalogue.reviews.views.CreateProductReview object at 0x7ff6792017b8>, 'form': <ProductReviewForm bound=False, valid=Unknown, fields=(title;score;body;name;email)>, 'basket': <SimpleLazyObject: <Basket: Open panier (propriétaire: None, lignes: 0)>>, 'product': <Product: Carte Cadeau ExactAir>}, {'LANGUAGES': [('fr', 'Français')], 'country_obj': <Country: Canada>, 'LANGUAGE_CODE': 'fr', 'block': <Block Node: layout. Contents: [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLN... <trimmed 6800 bytes string> |
block_context | <django.template.loader_tags.BlockContext object at 0x7ff678cf3c50> |
block | <Block Node: product_gallery. Contents: [<Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678c5fbe0>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <Block Node: product_stock_record. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d08ba8>, <Text Node: ' <div align="center" cla'>, <IfNode>, <Text Node: ' </div> '>]>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678be3ac8>, <Text Node: ' '>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678be3080>, <Text Node: '"alt=""> Commenter </a> '>, <django.template.loader_tags.IncludeNode object at 0x7ff678be3358>, <Text Node: ' '>, <WithNode>, <Text Node: ' '>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-faceboo'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-twitter'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '&text='>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-linkedi'>, <Block Node: product_basket_form. Contents: [<Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678c6ed68>, <Text Node: ' '>]>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782a74e0>, <Text Node: ''>'>, <Variable Node: product.created_by.seller_profile.get.company_name>, <Text Node: '</a></h3> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782a7e10>, <Text Node: ' '>, <Variable Node: rating|as_stars>, <Text Node: ' review-rating seller-rat'>, <WithNode>, <Text Node: ' '>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-faceboo'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-twitter'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '&text='>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-linkedi'>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678cd81d0>, <Text Node: ''>'>, <Variable Node: product.created_by.seller_profile.get.company_name>, <Text Node: '</a></h3> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678cd8f28>, <Text Node: ' '>, <Variable Node: rating|as_stars>, <Text Node: ' review-rating seller-rat'>]> |
/virtualenv/lib/python3.5/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 = self.render_node(node, context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
self | [<Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678c5fbe0>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <Block Node: product_stock_record. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d08ba8>, <Text Node: ' <div align="center" cla'>, <IfNode>, <Text Node: ' </div> '>]>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678be3ac8>, <Text Node: ' '>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678be3080>, <Text Node: '"alt=""> Commenter </a> '>, <django.template.loader_tags.IncludeNode object at 0x7ff678be3358>, <Text Node: ' '>, <WithNode>, <Text Node: ' '>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-faceboo'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-twitter'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '&text='>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-linkedi'>, <Block Node: product_basket_form. Contents: [<Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678c6ed68>, <Text Node: ' '>]>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782a74e0>, <Text Node: ''>'>, <Variable Node: product.created_by.seller_profile.get.company_name>, <Text Node: '</a></h3> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782a7e10>, <Text Node: ' '>, <Variable Node: rating|as_stars>, <Text Node: ' review-rating seller-rat'>, <WithNode>, <Text Node: ' '>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-faceboo'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-twitter'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '&text='>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-linkedi'>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678cd81d0>, <Text Node: ''>'>, <Variable Node: product.created_by.seller_profile.get.company_name>, <Text Node: '</a></h3> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678cd8f28>, <Text Node: ' '>, <Variable Node: rating|as_stars>, <Text Node: ' review-rating seller-rat'>] |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'view': <apps.catalogue.reviews.views.CreateProductReview object at 0x7ff6792017b8>, 'form': <ProductReviewForm bound=False, valid=Unknown, fields=(title;score;body;name;email)>, 'basket': <SimpleLazyObject: <Basket: Open panier (propriétaire: None, lignes: 0)>>, 'product': <Product: Carte Cadeau ExactAir>}, {'LANGUAGES': [('fr', 'Français')], 'country_obj': <Country: Canada>, 'LANGUAGE_CODE': 'fr', 'block': <Block Node: layout. Contents: [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLN... <trimmed 6800 bytes string> |
bit | '\n\n <h3 class="seller-name"><a href=\'' |
bits | ['\n' '\n' ' <div class="Site-Products-slide">\n' '\n' ' <div class="col-md-5 col-sm-5 itemLeft">\n' '\n' ' ', '\n' '\n' '\n' '\n' '\n' '\n' ' \n' ' \n' ' \n' ' <div id="sync1" class="owl-carousel">\n' ' \n' ' <div class="item active product-item">\n' ' <div class="innerSlider1-img "> \n' ' \n' ' \t<figure class="zoo-item" ' 'data-zoo-image="https://iciaplateforme-live-18da555147c54ff3b97-98240ee.aldryn-media.io/cache/b4/ca/b4cafbfc898859c28a4022ece7c5b812.png">\n' ' <img class="product-detail-image" ' 'src="https://iciaplateforme-live-18da555147c54ff3b97-98240ee.aldryn-media.io/cache/b4/ca/b4cafbfc898859c28a4022ece7c5b812.png" ' 'title="Carte Cadeau ExactAir" alt="Carte Cadeau ExactAir" width="470" ' 'height="470"/>\n' ' </figure>\n' ' \n' ' </div>\n' ' </div>\n' ' \n' ' <div class="item product-item">\n' ' <div class="innerSlider1-img "> \n' ' \n' ' \t<figure class="zoo-item" ' 'data-zoo-image="https://iciaplateforme-live-18da555147c54ff3b97-98240ee.aldryn-media.io/cache/d3/76/d3769577bd721cf73bccdbb9371cb8ff.png">\n' ' <img class="product-detail-image" ' 'src="https://iciaplateforme-live-18da555147c54ff3b97-98240ee.aldryn-media.io/cache/d3/76/d3769577bd721cf73bccdbb9371cb8ff.png" ' 'title="Carte Cadeau ExactAir" alt="Carte Cadeau ExactAir" width="470" ' 'height="470"/>\n' ' </figure>\n' ' \n' ' </div>\n' ' </div>\n' ' \n' ' <div class="item product-item">\n' ' <div class="innerSlider1-img "> \n' ' \n' ' \t<figure class="zoo-item" ' 'data-zoo-image="https://iciaplateforme-live-18da555147c54ff3b97-98240ee.aldryn-media.io/cache/3e/95/3e95e3fcd3f984164f7edfb36bf044a9.png">\n' ' <img class="product-detail-image" ' 'src="https://iciaplateforme-live-18da555147c54ff3b97-98240ee.aldryn-media.io/cache/3e/95/3e95e3fcd3f984164f7edfb36bf044a9.png" ' 'title="Carte Cadeau ExactAir" alt="Carte Cadeau ExactAir" width="470" ' 'height="470"/>\n' ' </figure>\n' ' \n' ' </div>\n' ' </div>\n' ' \n' ' </div>\n' '\n' ' <div id="sync2" class="owl-carousel">\n' ' \n' ' \n' ' <div class="item"> <img ' 'src="https://iciaplateforme-live-18da555147c54ff3b97-98240ee.aldryn-media.io/cache/b7/5f/b75f2c5ac8d37b43c30806d464b692b4.png" ' 'alt="Carte Cadeau ExactAir" /></div>\n' ' \n' ' \n' ' \n' ' \n' ' <div class="item"> <img ' 'src="https://iciaplateforme-live-18da555147c54ff3b97-98240ee.aldryn-media.io/cache/79/05/7905618b68709dbe20540905575b2411.png" ' 'alt="Carte Cadeau ExactAir" /></div>\n' ' \n' ' \n' ' \n' ' \n' ' <div class="item"> <img ' 'src="https://iciaplateforme-live-18da555147c54ff3b97-98240ee.aldryn-media.io/cache/33/ca/33ca0f994f329b7b6cf05cc4a973f1bd.png" ' 'alt="Carte Cadeau ExactAir" /></div>\n' ' \n' ' \n' ' \n' ' <!--<img src="/static/img/thumbs-mini.jpg" title="" alt="" ' '/> -->\n' ' </div>\n' '\n' ' \n' ' \n' '\n', '\n' '\n' ' ... <trimmed 18950 bytes string> |
node | <django.template.defaulttags.URLNode object at 0x7ff6782a74e0> |
/virtualenv/lib/python3.5/site-packages/django/template/debug.py
in render_node
if not hasattr(e, 'django_template_source'):
e.django_template_source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
return node.render(context)...
except Exception as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
self | [<Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678c5fbe0>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <Block Node: product_stock_record. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d08ba8>, <Text Node: ' <div align="center" cla'>, <IfNode>, <Text Node: ' </div> '>]>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678be3ac8>, <Text Node: ' '>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678be3080>, <Text Node: '"alt=""> Commenter </a> '>, <django.template.loader_tags.IncludeNode object at 0x7ff678be3358>, <Text Node: ' '>, <WithNode>, <Text Node: ' '>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-faceboo'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-twitter'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '&text='>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-linkedi'>, <Block Node: product_basket_form. Contents: [<Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678c6ed68>, <Text Node: ' '>]>, <Text Node: ' '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782a74e0>, <Text Node: ''>'>, <Variable Node: product.created_by.seller_profile.get.company_name>, <Text Node: '</a></h3> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782a7e10>, <Text Node: ' '>, <Variable Node: rating|as_stars>, <Text Node: ' review-rating seller-rat'>, <WithNode>, <Text Node: ' '>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-faceboo'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-twitter'>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '&text='>, <Variable Node: request.get_host>, <Variable Node: product.get_absolute_url>, <Text Node: '"><i class="fa fa-linkedi'>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678cd81d0>, <Text Node: ''>'>, <Variable Node: product.created_by.seller_profile.get.company_name>, <Text Node: '</a></h3> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678cd8f28>, <Text Node: ' '>, <Variable Node: rating|as_stars>, <Text Node: ' review-rating seller-rat'>] |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'view': <apps.catalogue.reviews.views.CreateProductReview object at 0x7ff6792017b8>, 'form': <ProductReviewForm bound=False, valid=Unknown, fields=(title;score;body;name;email)>, 'basket': <SimpleLazyObject: <Basket: Open panier (propriétaire: None, lignes: 0)>>, 'product': <Product: Carte Cadeau ExactAir>}, {'LANGUAGES': [('fr', 'Français')], 'country_obj': <Country: Canada>, 'LANGUAGE_CODE': 'fr', 'block': <Block Node: layout. Contents: [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLN... <trimmed 6800 bytes string> |
node | <django.template.defaulttags.URLNode object at 0x7ff6782a74e0> |
/virtualenv/lib/python3.5/site-packages/django/template/defaulttags.py
in render
args=args, kwargs=kwargs,
current_app=current_app)
except NoReverseMatch:
if self.asvar is None:
# Re-raise the original exception, not the one with
# the path relative to the project. This makes a
# better error message.
six.reraise(*exc_info)...
else:
if self.asvar is None:
raise
if self.asvar:
context[self.asvar] = url
Variable | Value |
---|---|
exc_info | (<class 'django.core.urlresolvers.NoReverseMatch'>, NoReverseMatch("Reverse for 'sellers-product-list' with arguments '('',)' and keyword arguments '{}' not found. 2 pattern(s) tried: ['fr/sellers-product/(?P<pk>\\\\d+)/$', 'fr/sellers-product/(?P<pk>\\\\d+)/$']",), <traceback object at 0x7ff678ce5848>) |
self | <django.template.defaulttags.URLNode object at 0x7ff6782a74e0> |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'view': <apps.catalogue.reviews.views.CreateProductReview object at 0x7ff6792017b8>, 'form': <ProductReviewForm bound=False, valid=Unknown, fields=(title;score;body;name;email)>, 'basket': <SimpleLazyObject: <Basket: Open panier (propriétaire: None, lignes: 0)>>, 'product': <Product: Carte Cadeau ExactAir>}, {'LANGUAGES': [('fr', 'Français')], 'country_obj': <Country: Canada>, 'LANGUAGE_CODE': 'fr', 'block': <Block Node: layout. Contents: [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLN... <trimmed 6800 bytes string> |
project_name | 'settings' |
current_app | None |
args | [''] |
NoReverseMatch | <class 'django.core.urlresolvers.NoReverseMatch'> |
url | '' |
reverse | <function reverse at 0x7ff689940840> |
view_name | 'sellers-product-list' |
kwargs | {} |
/virtualenv/lib/python3.5/site-packages/django/utils/six.py
in reraise
exec_ = getattr(moves.builtins, "exec")
def reraise(tp, value, tb=None):
if value is None:
value = tp()
if value.__traceback__ is not tb:
raise value.with_traceback(tb)
raise value...
else:
def exec_(_code_, _globs_=None, _locs_=None):
"""Execute code in a namespace."""
if _globs_ is None:
frame = sys._getframe(1)
Variable | Value |
---|---|
tp | <class 'django.core.urlresolvers.NoReverseMatch'> |
tb | <traceback object at 0x7ff678ce5848> |
value | NoReverseMatch("Reverse for 'sellers-product-list' with arguments '('',)' and keyword arguments '{}' not found. 2 pattern(s) tried: ['fr/sellers-product/(?P<pk>\\\\d+)/$', 'fr/sellers-product/(?P<pk>\\\\d+)/$']",) |
/virtualenv/lib/python3.5/site-packages/django/template/defaulttags.py
in render
# Try to look up the URL twice: once given the view name, and again
# relative to what we guess is the "main" app. If they both fail,
# re-raise the NoReverseMatch unless we're using the
# {% url ... as var %} construct in which case return nothing.
url = ''
try:
url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app)...
except NoReverseMatch:
exc_info = sys.exc_info()
if settings.SETTINGS_MODULE:
project_name = settings.SETTINGS_MODULE.split('.')[0]
try:
url = reverse(project_name + '.' + view_name,
Variable | Value |
---|---|
exc_info | (<class 'django.core.urlresolvers.NoReverseMatch'>, NoReverseMatch("Reverse for 'sellers-product-list' with arguments '('',)' and keyword arguments '{}' not found. 2 pattern(s) tried: ['fr/sellers-product/(?P<pk>\\\\d+)/$', 'fr/sellers-product/(?P<pk>\\\\d+)/$']",), <traceback object at 0x7ff678ce5848>) |
self | <django.template.defaulttags.URLNode object at 0x7ff6782a74e0> |
context | [{'None': None, 'True': True, 'False': False}, {}, {}, {'view': <apps.catalogue.reviews.views.CreateProductReview object at 0x7ff6792017b8>, 'form': <ProductReviewForm bound=False, valid=Unknown, fields=(title;score;body;name;email)>, 'basket': <SimpleLazyObject: <Basket: Open panier (propriétaire: None, lignes: 0)>>, 'product': <Product: Carte Cadeau ExactAir>}, {'LANGUAGES': [('fr', 'Français')], 'country_obj': <Country: Canada>, 'LANGUAGE_CODE': 'fr', 'block': <Block Node: layout. Contents: [<Text Node: ' '>, <Text Node: ' '>, <Text Node: ' '>, <django.template.loader_tags.IncludeNode object at 0x7ff678ee5550>, <Text Node: ' <header class="head'>, <django.contrib.staticfiles.templatetags.staticfiles.StaticFilesNode object at 0x7ff678ee55c0>, <Text Node: '" '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f55c0>, <Text Node: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5588>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678ee5cf8>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678ee5b00>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678c6a710>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff678f077b8>, <Text Node: ' '>, <Variable Node: request.basket.num_lines>, <Text Node: '</span></a> '>, <IfNode>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff6782f5550>, <Text Node: '">'>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f5ef0>, <Text Node: '</a> '>, <django.template.defaulttags.URLNode object at 0x7ff678f07f28>, <Text Node: '" method="post"> '>, <django.template.defaulttags.CsrfTokenNode object at 0x7ff6782f5320>, <Text Node: ' '>, <Variable Node: request.get_full_path|slice:'3:'>, <Text Node: '" /> '>, <django.templatetags.i18n.GetCurrentLanguageNode object at 0x7ff678f07be0>, <Text Node: ' '>, <django.templatetags.i18n.GetAvailableLanguagesNode object at 0x7ff6782f5ba8>, <Text Node: ' '>, <django.templatetags.i18n.GetLanguageInfoListNode object at 0x7ff678f07860>, <Text Node: ' '>, <For Node: for language in languages, tail_len: 10>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678f07048>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7ff678d23320>, <Text Node: '"> '>, <Variable Node: search_form.q>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7ff678d239e8>, <Text Node: '"> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4630>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4e48>, <Text Node: '</li> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff6782f4860>, <Text Node: '</li> '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff678d237f0>, <Text Node: '</p> <div cl'>, <Block Node: navbarhide. Contents: [<Text Node: ' <div'>, <IfNode>, <Text Node: '--> '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaf98>, <Text Node: ' '>, <For Node: for state in country_obj.state.all, tail_len: 3>, <Text Node: ' '>, <django.templatetags.i18n.TranslateNode object at 0x7ff678cdaa90>, <Text Node: ' '>, <Block Node: nav_dropdown. Contents: [<Text Node: ' '>, <django.template.base.Library.assignment_tag.<locals>.dec.<locals>.AssignmentNode object at 0x7ff6782d64e0>, <Text Node: ' '>, <django.template.defaulttags.URLN... <trimmed 6800 bytes string> |
project_name | 'settings' |
current_app | None |
args | [''] |
NoReverseMatch | <class 'django.core.urlresolvers.NoReverseMatch'> |
url | '' |
reverse | <function reverse at 0x7ff689940840> |
view_name | 'sellers-product-list' |
kwargs | {} |
/virtualenv/lib/python3.5/site-packages/django/core/urlresolvers.py
in reverse
(key, ':'.join(resolved_path)))
else:
raise NoReverseMatch("%s is not a registered namespace" %
key)
if ns_pattern:
resolver = get_ns_resolver(ns_pattern, resolver)
return force_text(iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs)))...
reverse_lazy = lazy(reverse, six.text_type)
def clear_url_caches():
get_callable.cache_clear()
Variable | Value |
---|---|
urlconf | 'urls' |
current_app | None |
parts | ['sellers-product-list'] |
resolver | <RegexURLResolver 'urls' (None:None) ^/> |
resolved_path | [] |
view | 'sellers-product-list' |
path | [] |
prefix | '/' |
viewname | 'sellers-product-list' |
args | [''] |
kwargs | {} |
ns_pattern | '' |
/virtualenv/lib/python3.5/site-packages/django/core/urlresolvers.py
in _reverse_with_prefix
lookup_view_s = "%s.%s" % (m, n)
else:
lookup_view_s = lookup_view
patterns = [pattern for (possibility, pattern, defaults) in possibilities]
raise NoReverseMatch("Reverse for '%s' with arguments '%s' and keyword "
"arguments '%s' not found. %d pattern(s) tried: %s" %
(lookup_view_s, args, kwargs, len(patterns), patterns))...
class LocaleRegexURLResolver(RegexURLResolver):
"""
A URL resolver that always matches the active language code as URL prefix.
Variable | Value |
---|---|
lookup_view_s | 'sellers-product-list' |
patterns | ['fr/sellers-product/(?P<pk>\\d+)/$', 'fr/sellers-product/(?P<pk>\\d+)/$'] |
n | None |
prefix_args | [] |
self | <RegexURLResolver 'urls' (None:None) ^/> |
args | ('',) |
candidate_subs | {'pk': ''} |
m | None |
kwargs | {} |
defaults | {} |
params | ['pk'] |
prefix_norm | '/' |
possibility | [('fr/sellers-product/%(pk)s/', ['pk'])] |
candidate_pat | '/fr/sellers-product/%(pk)s/' |
pattern | 'fr/sellers-product/(?P<pk>\\d+)/$' |
lookup_view | 'sellers-product-list' |
text_kwargs | {} |
text_args | [''] |
original_lookup | 'sellers-product-list' |
_prefix | '/' |
possibilities | [([('fr/sellers-product/%(pk)s/', ['pk'])], 'fr/sellers-product/(?P<pk>\\d+)/$', {}), ([('fr/sellers-product/%(pk)s/', ['pk'])], 'fr/sellers-product/(?P<pk>\\d+)/$', {})] |
result | 'fr/sellers-product/%(pk)s/' |
Variable | Value |
---|---|
page | '1' |
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_HOST | 'www.monicia.ca' |
SERVER_PORT | '80' |
wsgi.url_scheme | 'https' |
wsgi.file_wrapper | '' |
HTTP_ACCEPT | '*/*' |
wsgi.run_once | False |
HTTP_USER_AGENT | 'claudebot' |
wsgi.errors | <_io.TextIOWrapper name=2 mode='w' encoding='UTF-8'> |
HTTP_X_FORWARDED_HOST | 'www.monicia.ca' |
uwsgi.node | b'5e5db3cf7839' |
QUERY_STRING | 'page=1' |
wsgi.multiprocess | True |
wsgi.multithread | False |
HTTP_X_FORWARDED_FOR | '44.203.219.117' |
REQUEST_URI | '/fr/catalogue/carte-cadeau_6504/reviews/add/?page=1' |
SERVER_PROTOCOL | 'HTTP/1.1' |
HTTP_X_FORWARDED_PORT | '443' |
PATH_INFO | '/fr/catalogue/carte-cadeau_6504/reviews/add/' |
REMOTE_PORT | '65244' |
uwsgi.version | b'2.0.17.1' |
HTTP_X_DIVIO_REQUEST_ID | 'b78e6a2badcf9fbbb9b92a1222134bfe' |
wsgi.version | (1, 0) |
UWSGI_ROUTER | 'http' |
SERVER_NAME | '5e5db3cf7839' |
HTTP_X_FORWARDED_PROTO | 'https' |
wsgi.input | <uwsgi._Input object at 0x7ff67ae25888> |
SCRIPT_NAME | '' |
REMOTE_ADDR | '10.0.1.16' |
CSRF_COOKIE | 'q1CnzS2hDb0TNO4CLI9UYEFJ3RMrrRma' |
CSRF_COOKIE_USED | True |
REQUEST_METHOD | 'GET' |
HTTP_CONNECTION | 'close' |
settings
Setting | Value |
---|---|
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.db.DatabaseCache', 'LOCATION': 'django_dbcache'}} |
OSCAR_HOMEPAGE | <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096588> |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
OSCAR_UPLOAD_ROOT | '/tmp' |
SINGLE_PRODUCT | 'SingleProduct' |
SESSION_COOKIE_NAME | 'sessionid' |
DISABLE_TEMPLATE_CACHE | True |
MONTH_DAY_FORMAT | 'F j' |
OSCAR_ACCOUNTS_REDIRECT_URL | 'customer:profile-view' |
OSCAR_SHOP_TAGLINE | '' |
SILENCED_SYSTEM_CHECKS | [] |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
OSCAR_ORDERS_PER_PAGE | 20 |
ALLOWED_HOSTS | ['localhost', '*', 'www.monicia.ca', '.*', 'monicia.ca'] |
COMPRESS_OUTPUT_DIR | 'CACHE' |
AWS_MEDIA_SECRET_ACCESS_KEY | '********************' |
COMPRESS_VERBOSE | False |
PAGESPEED_ADMIN_USER | None |
COMPRESS_OFFLINE | False |
SESSION_COOKIE_SECURE | False |
DATA_ROOT | '/data' |
SESSION_COOKIE_PATH | '/' |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
BLOG_ENABLE_COMMENTS | True |
CSRF_COOKIE_HTTPONLY | False |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
OSCAR_EMAILS_PER_PAGE | 20 |
COMPRESS_PARSER | 'compressor.parser.AutoSelectParser' |
ABSOLUTE_URL_OVERRIDES | {} |
LIST | 'List' |
FIXTURE_DIRS | [] |
COUNTDOWN | 'Countdown' |
PAYPAL_CANCEL_RETURN | 'https://monicia.ca/accounts/paypal-failed' |
SECURE_PROXY_SSL_HEADER | ('HTTP_X_FORWARDED_PROTO', 'https') |
COMPRESS_STORAGE | 'compressor.storage.CompressorFileStorage' |
PUROLATOR_PRODUCTION_API_PASSWORD | '********************' |
COMPRESS_PRECOMPILERS | () |
OSCAR_INITIAL_LINE_STATUS | 'Attente' |
ALL_LANGUAGES_DICT | {'af': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff692c6bcc0>, 'ar': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff6890b3550>, 'ast': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfd748>, 'az': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfd780>, 'be': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfd7f0>, 'bg': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfd7b8>, 'bn': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfd828>, 'br': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfd860>, 'bs': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfd898>, 'ca': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfd8d0>, 'cs': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfd908>, 'cy': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfd940>, 'da': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfd978>, 'de': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfd9b0>, 'el': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfd9e8>, 'en': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfda20>, 'en-au': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfda58>, 'en-gb': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfda90>, 'eo': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfdb00>, 'es': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfdb70>, 'es-ar': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfdbe0>, 'es-mx': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfdc50>, 'es-ni': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfdcc0>, 'es-ve': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfdd30>, 'et': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfdda0>, 'eu': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfde10>, 'fa': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfde80>, 'fi': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfdef0>, 'fr': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfdf60>, 'fy': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfdfd0>, 'ga': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c080>, 'gl': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c0f0>, 'he': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c160>, 'hi': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c1d0>, 'hr': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c240>, 'hu': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c2b0>, 'ia': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c320>, 'id': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c390>, 'io': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c400>, 'is': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c470>, 'it': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c4e0>, 'ja': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c550>, 'ka': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c5c0>, 'kk': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c630>, 'km': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c6a0>, 'kn': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c710>, 'ko': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c780>, 'lb': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c7f0>, 'lt': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c860>, 'lv': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c8d0>, 'mk': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c940>, 'ml': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c9b0>, 'mn': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8ca20>, 'mr': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8ca90>, 'my': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8cb00>, 'nb': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8cb70>, 'ne': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8cbe0>, 'nl': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8cc50>, 'nn': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8ccc0>, 'os': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8cd30>, 'pa': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8cda0>, 'pl': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8ce10>, 'pt': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8ce80>, 'pt-br': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8cef0>, 'ro': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8cf60>, 'ru': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8cfd0>, 'sk': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f080>, 'sl': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f0f0>, 'sq': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f160>, 'sr': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f1d0>, 'sr-latn': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f240>, 'sv': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f2b0>, 'sw': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f320>, 'ta': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f390>, 'te': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f400>, 'th': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f470>, 'tr': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f4e0>, 'tt': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f550>, 'udm': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f5c0>, 'uk': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f630>, 'ur': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f6a0>, 'vi': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f710>, 'zh-cn': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f780>, 'zh-hans': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f7f0>, 'zh-hant': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f860>, 'zh-tw': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f8d0>} |
AWS_MEDIA_BUCKET_PREFIX | '' |
CSRF_COOKIE_SECURE | False |
FIRST_DAY_OF_WEEK | 0 |
OSCAR_MAX_BASKET_QUANTITY_THRESHOLD | 10000 |
OSCAR_REVIEWS_PER_PAGE | 20 |
USE_I18N | True |
BACKEND_PORT | 8000 |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
PAYPAL_RETURN_URL | 'https://monicia.ca/accounts/paypal-completed' |
ALDRYN_PEOPLE_SEARCH | False |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
STATIC_ROOT | '/app/static_collected' |
ADDON_URLS | ['aldryn_django.urls'] |
EMAIL_USE_TLS | True |
DEBUG | True |
COMPRESS_URL | '/static/' |
COMPRESS_CSS_HASHING_METHOD | 'mtime' |
CMS_TEMPLATES | (('djangocms_blog/post_list.html', 'Blogue'), ('djangocms_blog/post_detail.html', 'Detail')) |
COMPRESS_CSS_FILTERS | ['compressor.filters.css_default.CssAbsoluteFilter'] |
X_PAYPAL_APPLICATION_ID | 'APP-24P24918AA5124346' |
OSCAR_MISSING_IMAGE_URL | 'image_not_found.jpg' |
ENABLE_PAGESPEED | False |
PAYPAL_API_SIGNATURE | '********************' |
THOUSAND_SEPARATOR | ',' |
PAYPAL_CONNECTION_URL | 'svcs.paypal.com' |
PAYPAL_CURRENCY_CODE | 'CAD' |
OSCAR_RECENTLY_VIEWED_COOKIE_LIFETIME | 604800 |
MIGRATION_MODULES | {} |
NGINX_CONF_PATH | '/etc/nginx/nginx.conf' |
OSCAR_BASKET_COOKIE_SECURE | False |
LANGUAGE_COOKIE_AGE | None |
FILER_IMAGE_MODEL | 'filer.Image' |
OSCAR_BASKET_COOKIE_OPEN | 'oscar_open_basket' |
TEMPLATE_STRING_IF_INVALID | '' |
FILE_UPLOAD_TEMP_DIR | None |
COMPRESS_MTIME_DELAY | 10 |
OSCAR_EAGER_ALERTS | True |
ADMINS | [] |
TEMPLATE_CONTEXT_PROCESSORS | ['django.contrib.auth.context_processors.auth', 'django.template.context_processors.debug', 'django.template.context_processors.i18n', 'django.template.context_processors.media', 'django.template.context_processors.static', 'django.template.context_processors.tz', 'django.contrib.messages.context_processors.messages'] |
HAYSTACK_CUSTOM_HIGHLIGHTER | 'apps.es_search.forms.MyHighlighter' |
PAYPAL_API_PASSWORD | '********************' |
OSCAR_LINE_STATUS_PIPELINE | {'Annuler': (), 'Attente': ('Traiter', 'Annuler'), 'Traiter': ('Attente', 'Annuler')} |
OSCAR_DASHBOARD_DEFAULT_ACCESS_FUNCTION | 'apps.dashboard.nav.default_access_fn' |
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'] |
LANGUAGE_CODE | 'fr' |
SITE_ID | 1 |
ALDRYN_HAYSTACK_DEBUG | True |
SESSION_CACHE_ALIAS | 'default' |
EMAIL_HOST_PASSWORD | '********************' |
OSCAR_MAIN_TEMPLATE_DIR | '/virtualenv/lib/python3.5/site-packages/oscar/templates/oscar' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
NGINX_PROCFILE_PATH | '/etc/nginx/nginx.procfile' |
TEMPLATE_DIRS | [] |
BASE_DIR | '/app/' |
DATE_FORMAT | 'N j, Y' |
FIRST_SITE_ADMIN_PAYPAL_ADMIN | 'mgaudreault@monicia.ca' |
EMAIL_PORT | 587 |
THUMBNAIL_OPTIMIZE_COMMAND | {'gif': '/usr/bin/gifsicle --batch --optimize=2 {filename}', 'jpeg': '/usr/bin/jpegoptim --max=90 --overwrite --strip-all ' '--all-progressive {filename}', 'png': '/usr/bin/pngout {filename} {filename}.png -s0 -y -force && mv ' '{filename}.png {filename}'} |
EMAIL_HOST | 'smtp.mandrillapp.com' |
COMPRESS_OFFLINE_TIMEOUT | 31536000 |
STATICFILES_STORAGE | 'aldryn_django.storage.GZippedStaticFilesStorage' |
CACHE_MIDDLEWARE_SECONDS | 600 |
SHORT_DATE_FORMAT | 'm/d/Y' |
CACHE_MIDDLEWARE_ALIAS | 'default' |
DEFAULT_CHARSET | 'utf-8' |
TEST_NON_SERIALIZED_APPS | [] |
COMPRESS_OFFLINE_CONTEXT | {'STATIC_URL': '/static/'} |
TABBED_BLOCK | 'TabbedBlock' |
TIME_ZONE | 'America/Chicago' |
INSTALLED_APPS | ['aldryn_addons', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.admin', 'django.contrib.staticfiles', 'aldryn_django', 'aldryn_sites', 'raven.contrib.django', 'django.contrib.gis', 'django.contrib.humanize', 'django.contrib.flatpages', 'django.contrib.postgres', 'django.contrib.sitemaps', 'django.contrib.redirects', 'compressor', 'widget_tweaks', 'apps.custom_flatpages', 'oscar_accounts', 'apps.home', 'apps.cities', 'apps.users', 'apps.packages', 'apps.contact', 'apps.our_partner', 'apps.giftcards', 'cms', 'menus', 'djangocms_text_ckeditor', 'parler', 'taggit', 'taggit_autosuggest', 'meta', 'meta_mixin', 'apps.blog_icia', 'apps.services', 'apps.news_releases', 'django_social_share', 'apps.forfats', 'ckeditor', 'apps.admanager', 'paypal.standard.ipn', 'apps.sellers_list', 'apps.services.servicereview', 'rest_framework', 'oscarapi', 'apps.restapi', 'apps.visitor', 'apps.contests', 'apps.es_search', 'autoslug', 'apps.dm_link', 'oscar', 'apps.analytics', 'apps.checkout', 'apps.address', 'apps.shipping', 'apps.catalogue', 'apps.catalogue.reviews', 'apps.partner', 'apps.basket', 'apps.payment', 'apps.offer', 'apps.order', 'apps.customer', 'apps.promotions', 'apps.search', 'apps.voucher', 'oscar.apps.wishlists', 'apps.dashboard', 'apps.dashboard.reports', 'apps.dashboard.users', 'apps.dashboard.orders', 'apps.dashboard.promotions', 'apps.dashboard.catalogue', 'apps.dashboard.offers', 'apps.dashboard.partners', 'apps.dashboard.pages', 'apps.dashboard.ranges', 'apps.dashboard.reviews', 'apps.dashboard.vouchers', 'oscar.apps.dashboard.communications', 'oscar.apps.dashboard.shipping', 'haystack', 'treebeard', 'sorl.thumbnail', 'django_tables2'] |
PAYPAL_URL | 'https://www.paypal.com/cgi-bin/webscr?cmd=_ap-payment' |
LANGUAGE_COOKIE_NAME | 'django_language' |
RAVEN_CONFIG | {'dsn': 'https://0e7d5fa9f8084208aba9a0eb767e9df6:6f40127cb0ff4d9f9b617a944f332d47@sentry.io/1461178'} |
RECEIVERLIST_RECEIVER_EMAIL | 'mgaudreault@monicia.ca' |
THUMBNAIL_PADDING_COLOR | '#ffffff' |
DEFAULT_FROM_NAME | 'monicia.ca' |
OSCAR_OFFERS_PER_PAGE | 20 |
COMPRESS_YUI_BINARY | 'java -jar yuicompressor.jar' |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
DISALLOWED_USER_AGENTS | [] |
DOMAIN | 'www.monicia.ca' |
STATIC_HEADERS | [('.*\\.[0-9a-f]{10,16}\\.(eot|ttf|otf|woff)', {'Access-Control-Allow-Origin': '*', 'Cache-Control': 'public, max-age=31536000'}), ('.*\\.[0-9a-f]{10,16}\\.[a-z]+', {'Cache-Control': 'public, max-age=31536000'}), ('.*\\.(eot|ttf|otf|woff)', {'Access-Control-Allow-Origin': '*', 'Cache-Control': 'public, max-age=300'}), ('.*', {'Cache-Control': 'public, max-age=300'})] |
PREFIX_DEFAULT_LANGUAGE | True |
OSCAR_SHOP_NAME | 'Mon ICIA' |
CURRENCYCODE | 'CAD' |
ROOT_URLCONF | 'urls' |
COMPRESS_CLOSURE_COMPILER_BINARY | 'java -jar compiler.jar' |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
CKEDITOR_UPLOAD_PATH | 'uploads/' |
POINT_OF_SERVICE_PRICE | 5 |
CSRF_COOKIE_NAME | 'csrftoken' |
CACHE_URL | 'db://django_dbcache' |
PAYPAL_TEST | False |
CKEDITOR_CONFIGS | {'default': {'width': 740}} |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
LOCALE_PATHS | ['/app/locale'] |
NUMBER_GROUPING | 0 |
EMAIL_SSL_CERTFILE | None |
PUROLATOR_TEST_API_KEY | '********************' |
CSRF_COOKIE_DOMAIN | None |
IGNORABLE_404_URLS | [] |
OSCAR_DEFAULT_CURRENCY | 'CAD' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/app/templates', '/virtualenv/lib/python3.5/site-packages/oscar/templates/oscar', '/virtualenv/lib/python3.5/site-packages/accounts/templates/oscar'], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.core.context_processors.media', 'django.core.context_processors.static', 'django.contrib.messages.context_processors.messages', 'oscar.apps.search.context_processors.search_form', 'oscar.apps.promotions.context_processors.promotions', 'oscar.apps.checkout.context_processors.checkout', 'oscar.apps.customer.notifications.context_processors.notifications', 'oscar.core.context_processors.metadata', 'cms.context_processors.cms_settings']}}] |
DJANGO_WEB_TIMEOUT | 120 |
META_USE_SITES | True |
EMAIL_SSL_KEYFILE | '********************' |
COMPRESS_DATA_URI_MAX_SIZE | 1024 |
BLOG_IMAGE_THUMBNAIL_SIZE | {'crop': False, 'size': '1200x700', 'upscale': True} |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
TEMPLATE_LOADERS | ['django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader'] |
DJANGO_WEB_WORKERS | 3 |
OSCAR_SLUG_MAP | {} |
ADDON_URLS_I18N | ['aldryn_django.i18n_urls'] |
PASSWORD_HASHERS | '********************' |
SECURE_HSTS_SECONDS | 0 |
LANGUAGES | [('fr', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfdf60>)] |
TVQ | 0.09975 |
ALLOWED_INCLUDE_ROOTS | [] |
OSCAR_SLUG_BLACKLIST | [] |
TEMPLATE_DEBUG | False |
BLOG_PAGINATION | 4 |
SECURE_REDIRECT_EXEMPT | [] |
INSTALLED_ADDONS | ['aldryn-django'] |
SESSION_COOKIE_AGE | 1209600 |
MAILCHIMP_API_KEY | '********************' |
OSCAR_DASHBOARD_NAVIGATION | [{'icon': 'icon-th-list', 'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff6890965c0>, 'url_name': 'dashboard:index'}, {'children': [{'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096630>, 'url_name': 'dashboard:catalogue-product-list'}, {'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096668>, 'url_name': 'dashboard:catalogue-class-list'}, {'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff6890966a0>, 'url_name': 'dashboard:catalogue-category-list'}, {'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff6890966d8>, 'url_name': 'dashboard:catalogue-option-group-list'}, {'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096710>, 'url_name': 'dashboard:range-list'}, {'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096780>, 'url_name': 'dashboard:reviews-list'}], 'icon': 'icon-sitemap', 'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff6890965f8>}, {'children': [{'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096860>, 'url_name': 'dashboard:order-list'}, {'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff6890968d0>, 'url_name': 'dashboard:order-stats'}, {'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096940>, 'url_name': 'dashboard:partner-list'}], 'icon': 'icon-shopping-cart', 'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff6890967f0>}, {'children': [{'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096a20>, 'url_name': 'dashboard:users-index'}, {'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096a90>, 'url_name': 'dashboard:user-alert-list'}], 'icon': 'icon-group', 'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff6890969b0>}, {'children': [{'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096b70>, 'url_name': 'dashboard:voucher-list'}], 'icon': 'icon-bullhorn', 'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096b00>}] |
SERVER_EMAIL | 'mcote@d-modules.com' |
COMPRESS_TEMPLATE_FILTER_CONTEXT | {'STATIC_URL': '/static/'} |
OSCAR_ADDRESSES_PER_PAGE | 20 |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.contrib.gis.db.backends.postgis', 'HOST': 'appctl-black-sites-03.cs4nfpul9fcn.us-east-1.rds.amazonaws.com', 'NAME': 'iciaplateforme-live-18da555147c54ff3b972227337f566e3-17dab62', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': 5432, 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': 'America/Chicago', 'USER': 'iciaplateforme-live-18da555147c54ff3b972227337f566e3-2d94f0c'}} |
ENABLE_SYNCING | True |
AWS_MEDIA_ACCESS_KEY_ID | '********************' |
SELLER_RECEIVER_EMAIL | 'mgaudreault@monicia.ca' |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
MEDIA_HEADERS | [] |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
ALDRYN_JOBS_SEARCH | False |
DEBUG_PROPAGATE_EXCEPTIONS | False |
SETTINGS_MODULE | 'settings' |
SESSION_COOKIE_DOMAIN | None |
CSRF_COOKIE_PATH | '/' |
EMAIL_HOST_USER | 'mcote@d-modules.com' |
OSCAR_NOTIFICATIONS_PER_PAGE | 20 |
COMPRESS_YUGLIFY_CSS_ARGUMENTS | '--terminal' |
OSCAR_PROMOTION_MERCHANDISING_BLOCK_TYPES | [('Countdown', 'Vertical list'), ('List', 'Horizontal list'), ('TabbedBlock', 'Tabbed block'), ('SingleProduct', 'Single product')] |
MAILCHIMP_ID | 'b4e710db0a' |
AUTH_USER_MODEL | 'users.User' |
OSCAR_STOCK_ALERTS_PER_PAGE | 20 |
COMPRESS_CLOSURE_COMPILER_ARGUMENTS | '' |
BLOG_USE_PLACEHOLDER | False |
COMPRESS_ENABLED | False |
OSCAR_SLUG_FUNCTION | 'oscar.core.utils.default_slugifier' |
OSCAR_BASKET_COOKIE_LIFETIME | 604800 |
MANAGERS | [] |
ALDRYN_SITES_SET_DOMAIN_NAME | True |
BLOG_IMAGE_FULL_SIZE | {'crop': False, 'size': '1200x700', 'upscale': True} |
COMPRESS_OFFLINE_MANIFEST | 'manifest.json' |
USE_L10N | True |
USE_X_FORWARDED_HOST | False |
LOGGING_CONFIG | 'logging.config.dictConfig' |
BLOG_POSTS_LIST_TRUNCWORDS_COUNT | 40 |
MIGRATION_COMMANDS | ['CACHE_URL="locmem://" python manage.py createcachetable django_dbcache; exit ' '0', 'python manage.py migrate --noinput'] |
COMPRESS_CSS_COMPRESSOR | 'compressor.css.CssCompressor' |
PREPEND_WWW | False |
COMPRESS_CACHE_BACKEND | 'default' |
COMPRESS_YUGLIFY_JS_ARGUMENTS | '--terminal' |
OSCAR_SEARCH_FACETS | {'fields': {'product_class': {'field': 'product_class', 'name': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096be0>}, 'rating': {'field': 'rating', 'name': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096c50>}}, 'queries': {'price_range': {'field': 'price', 'name': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096cc0>, 'queries': [(<django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096d30>, '[0 TO 20]'), (<django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096da0>, '[20 TO 40]'), (<django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096e10>, '[40 TO 60]'), (<django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096e80>, '[60 TO *]')]}}} |
DEFAULT_STORAGE_DSN | '********************' |
COMPRESS_ROOT | '/app/static_collected' |
SECRET_KEY | '********************' |
DATETIME_FORMAT | 'N j, Y, P' |
CKEDITOR_SETTINGS | {'language': '{{ fr }}', 'toolbar': 'full'} |
PAGESPEED_ADMIN_PASSWORD | '********************' |
ALDRYN_DJANGO_ENABLE_GIS | True |
BLOG_PERMALINK_URLS | {'category': '^post/(?P<category>\\w[-\\w]*)/(?P<slug>\\w[-\\w]*)/$', 'full_date': '^(?P<year>\\d{4})/(?P<month>\\d{1,2})/(?P<day>\\d{1,2})/(?P<slug>\\w[-\\w]*)/$', 'short_date': '^(?P<year>\\d{4})/(?P<month>\\d{1,2})/(?P<slug>\\w[-\\w]*)/$', 'slug': '^post/(?P<slug>\\w[-\\w]*)/$'} |
AWS_MEDIA_STORAGE_HOST | 's3.amazonaws.com' |
OSCAR_MODERATE_REVIEWS | False |
ACCOUNTS_TEMPLATE_DIR | '/virtualenv/lib/python3.5/site-packages/accounts/templates/oscar' |
TPS | 0.05 |
COMPRESS_JS_FILTERS | ['compressor.filters.jsmin.JSMinFilter'] |
SESSION_COOKIE_HTTPONLY | False |
OSCAR_ALLOW_ANON_REVIEWS | True |
GEOIP_PATH | '/app//geoip' |
SESSION_FILE_PATH | None |
OSCAR_ALLOW_ANON_CHECKOUT | True |
LANGUAGE_COOKIE_DOMAIN | None |
GOOGLE_GEOCODING_API_KEY | '********************' |
LANGUAGE_COOKIE_PATH | '/' |
OSCAR_RECENTLY_VIEWED_PRODUCTS | 20 |
COMPRESS_CLEAN_CSS_BINARY | 'cleancss' |
ADDONS_DEV_DIR | '/app/addons-dev' |
ADDONS_DIR | '/app/addons' |
BLOG_AUTHOR_DEFAULT | True |
SECURE_BROWSER_XSS_FILTER | False |
FORMAT_MODULE_PATH | None |
LOGOUT_URL | '/accounts/logout/' |
AWS_MEDIA_STORAGE_BUCKET_NAME | 'iciaplateforme-live-18da555147c54ff3b97-98240ee.aldryn-media.io' |
OSCAR_FROM_EMAIL | 'info@monicia.ca' |
COMPRESS_JS_COMPRESSOR | 'compressor.js.JsCompressor' |
OSCAR_INITIAL_ORDER_STATUS | 'Attente' |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
CMS_PLACEHOLDER_CONF | {'feature_about_us_description': {'plugins': ['CMSCkTextPlugin']}, 'feature_image_plugin': {'plugins': ['CMSImageGalleryPlugin']}, 'feature_text': {'plugins': ['TextPlugin']}, 'home_slider_plugin': {'plugins': ['CMSSliderGalleryPlugin']}, 'image_editable_plugin': {'plugins': ['ImageEditPlugin']}, 'image_plugin': {'plugins': ['CMSImageFeatureGalleryPlugin']}, 'logo_editable_plugin': {'plugins': ['LogoEditPlugin']}, 'testimoni_plugin': {'plugins': ['CMSTestimoniPlugin']}, 'textedit_plugin': {'plugins': ['CMSCkTextPlugin']}} |
APPEND_SLASH | True |
STATICFILES_DEFAULT_MAX_AGE | 300 |
WSGI_APPLICATION | 'wsgi.application' |
META_SITE_PROTOCOL | 'http' |
PAGESPEED_ADMIN_HTPASSWD_PATH | '********************' |
OSCAR_IMAGE_FOLDER | 'images/products/%Y/%m/' |
SESSION_SAVE_EVERY_REQUEST | False |
PAYPAL_RECEIVER_EMAIL | 'mgaudreault@monicia.ca' |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'compressor.finders.CompressorFinder'] |
COMPRESS_YUGLIFY_BINARY | 'yuglify' |
PAYPAL_API_USERNAME | '********************' |
ADDON_URLS_I18N_LAST | 'aldryn_django.urls_redirect' |
ENABLE_NGINX | False |
OSCAR_PRODUCT_SEARCH_HANDLER | None |
OSCAR_SETTINGS | {'OSCAR_ACCOUNTS_REDIRECT_URL': 'customer:profile-view', 'OSCAR_ADDRESSES_PER_PAGE': 20, 'OSCAR_ALLOW_ANON_CHECKOUT': True, 'OSCAR_ALLOW_ANON_REVIEWS': True, 'OSCAR_BASKET_COOKIE_LIFETIME': 604800, 'OSCAR_BASKET_COOKIE_OPEN': 'oscar_open_basket', 'OSCAR_BASKET_COOKIE_SECURE': False, 'OSCAR_COOKIES_DELETE_ON_LOGOUT': ['oscar_recently_viewed_products'], 'OSCAR_DASHBOARD_DEFAULT_ACCESS_FUNCTION': 'apps.dashboard.nav.default_access_fn', 'OSCAR_DASHBOARD_ITEMS_PER_PAGE': 20, 'OSCAR_DASHBOARD_NAVIGATION': [{'icon': 'icon-th-list', 'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff6890965c0>, 'url_name': 'dashboard:index'}, {'children': [{'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096630>, 'url_name': 'dashboard:catalogue-product-list'}, {'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096668>, 'url_name': 'dashboard:catalogue-class-list'}, {'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff6890966a0>, 'url_name': 'dashboard:catalogue-category-list'}, {'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff6890966d8>, 'url_name': 'dashboard:catalogue-option-group-list'}, {'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096710>, 'url_name': 'dashboard:range-list'}, {'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096780>, 'url_name': 'dashboard:reviews-list'}], 'icon': 'icon-sitemap', 'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff6890965f8>}, {'children': [{'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096860>, 'url_name': 'dashboard:order-list'}, {'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff6890968d0>, 'url_name': 'dashboard:order-stats'}, {'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096940>, 'url_name': 'dashboard:partner-list'}], 'icon': 'icon-shopping-cart', 'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff6890967f0>}, {'children': [{'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096a20>, 'url_name': 'dashboard:users-index'}, {'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096a90>, 'url_name': 'dashboard:user-alert-list'}], 'icon': 'icon-group', 'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff6890969b0>}, {'children': [{'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096b70>, 'url_name': 'dashboard:voucher-list'}], 'icon': 'icon-bullhorn', 'label': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096b00>}], 'OSCAR_DEFAULT_CURRENCY': 'CAD', 'OSCAR_DELETE_IMAGE_FILES': True, 'OSCAR_EAGER_ALERTS': True, 'OSCAR_EMAILS_PER_PAGE': 20, 'OSCAR_FROM_EMAIL': 'info@monicia.ca', 'OSCAR_HIDDEN_FEATURES': [], 'OSCAR_HOMEPAGE': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096588>, 'OSCAR_IMAGE_FOLDER': 'images/products/%Y/%m/', 'OSCAR_INITIAL_LINE_STATUS': 'Attente', 'OSCAR_INITIAL_ORDER_STATUS': 'Attente', 'OSCAR_LINE_STATUS_PIPELINE': {'Annuler': (), 'Attente': ('Traiter', 'Annuler'), 'Traiter': ('Attente', 'Annuler')}, 'OSCAR_MAX_BASKET_QUANTITY_THRESHOLD': 10000, 'OSCAR_MISSING_IMAGE_URL': 'image_not_found.jpg', 'OSCAR_MODERATE_REVIEWS': False, 'OSCAR_NOTIFICATIONS_PER_PAGE': 20, 'OSCAR_OFFERS_PER_PAGE': 20, 'OSCAR_ORDERS_PER_PAGE': 20, 'OSCAR_ORDER_STATUS_PIPELINE': {'Annuler': (), 'Attente': ('Traiter', 'Annuler'), 'Traiter': ('Attente', 'Annuler')}, 'OSCAR_PRODUCTS_PER_PAGE': 20, 'OSCAR_PRODUCT_SEARCH_HANDLER': None, 'OSCAR_PROMOTION_FOLDER': 'images/promotions/', 'OSCAR_PROMOTION_MERCHANDISING_BLOCK_TYPES': (('Countdown', 'Vertical list'), ('List', 'Horizontal list'), ('TabbedBlock', 'Tabbed block'), ('SingleProduct', 'Single product')), 'OSCAR_PROMOTION_POSITIONS': (('page', 'Page'), ('right', 'Right-hand sidebar'), ('left', 'Left-hand sidebar')), 'OSCAR_RECENTLY_VIEWED_COOKIE_LIFETIME': 604800, 'OSCAR_RECENTLY_VIEWED_COOKIE_NAME': 'oscar_history', 'OSCAR_RECENTLY_VIEWED_COOKIE_SECURE': False, 'OSCAR_RECENTLY_VIEWED_PRODUCTS': 20, 'OSCAR_REQUIRED_ADDRESS_FIELDS': ('first_name', 'last_name', 'line1', 'state', 'line4', 'postcode', 'country'), 'OSCAR_REVIEWS_PER_PAGE': 20, 'OSCAR_SEARCH_FACETS': {'fields': {'product_class': {'field': 'product_class', 'name': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096be0>}, 'rating': {'field': 'rating', 'name': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096c50>}}, 'queries': {'price_range': {'field': 'price', 'name': <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096cc0>, 'queries': [(<django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096d30>, '[0 TO 20]'), (<django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096da0>, '[20 TO 40]'), (<django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096e10>, '[40 TO 60]'), (<django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff689096e80>, '[60 TO ' '*]')]}}}, 'OSCAR_SEND_REGISTRATION_EMAIL': True, 'OSCAR_SHOP_NAME': 'Mon ICIA', 'OSCAR_SHOP_TAGLINE': '', 'OSCAR_SLUG_BLACKLIST': [], 'OSCAR_SLUG_FUNCTION': 'oscar.core.utils.default_slugifier', 'OSCAR_SLUG_MAP': {}, 'OSCAR_STOCK_ALERTS_PER_PAGE': 20, 'OSCAR_UPLOAD_ROOT': '/tmp'} |
COMPRESS_CACHEABLE_PRECOMPILERS | () |
OSCAR_SEND_REGISTRATION_EMAIL | True |
COMPRESS_YUI_CSS_ARGUMENTS | '' |
LOGIN_URL | '/accounts/login/' |
DEFAULT_FILE_STORAGE | 'aldryn_django.storage.S3MediaStorage' |
USE_TZ | False |
COMPRESS_CLEAN_CSS_ARGUMENTS | '' |
OSCAR_COOKIES_DELETE_ON_LOGOUT | ['oscar_recently_viewed_products'] |
DEFAULT_INDEX_TABLESPACE | '' |
ALL_LANGUAGES | [('af', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff692c6bcc0>), ('ar', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff6890b3550>), ('ast', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfd748>), ('az', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfd780>), ('bg', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfd7b8>), ('be', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfd7f0>), ('bn', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfd828>), ('br', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfd860>), ('bs', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfd898>), ('ca', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfd8d0>), ('cs', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfd908>), ('cy', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfd940>), ('da', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfd978>), ('de', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfd9b0>), ('el', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfd9e8>), ('en', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfda20>), ('en-au', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfda58>), ('en-gb', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfda90>), ('eo', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfdb00>), ('es', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfdb70>), ('es-ar', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfdbe0>), ('es-mx', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfdc50>), ('es-ni', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfdcc0>), ('es-ve', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfdd30>), ('et', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfdda0>), ('eu', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfde10>), ('fa', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfde80>), ('fi', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfdef0>), ('fr', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfdf60>), ('fy', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688cfdfd0>), ('ga', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c080>), ('gl', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c0f0>), ('he', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c160>), ('hi', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c1d0>), ('hr', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c240>), ('hu', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c2b0>), ('ia', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c320>), ('id', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c390>), ('io', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c400>), ('is', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c470>), ('it', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c4e0>), ('ja', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c550>), ('ka', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c5c0>), ('kk', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c630>), ('km', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c6a0>), ('kn', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c710>), ('ko', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c780>), ('lb', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c7f0>), ('lt', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c860>), ('lv', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c8d0>), ('mk', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c940>), ('ml', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8c9b0>), ('mn', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8ca20>), ('mr', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8ca90>), ('my', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8cb00>), ('nb', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8cb70>), ('ne', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8cbe0>), ('nl', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8cc50>), ('nn', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8ccc0>), ('os', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8cd30>), ('pa', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8cda0>), ('pl', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8ce10>), ('pt', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8ce80>), ('pt-br', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8cef0>), ('ro', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8cf60>), ('ru', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8cfd0>), ('sk', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f080>), ('sl', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f0f0>), ('sq', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f160>), ('sr', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f1d0>), ('sr-latn', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f240>), ('sv', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f2b0>), ('sw', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f320>), ('ta', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f390>), ('te', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f400>), ('th', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f470>), ('tr', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f4e0>), ('tt', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f550>), ('udm', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f5c0>), ('uk', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f630>), ('ur', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f6a0>), ('vi', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f710>), ('zh-cn', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f780>), ('zh-hans', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f7f0>), ('zh-hant', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f860>), ('zh-tw', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7ff688c8f8d0>)] |
INTERNAL_IPS | [] |
OSCAR_PROMOTION_POSITIONS | [('page', 'Page'), ('right', 'Right-hand sidebar'), ('left', 'Left-hand sidebar')] |
RANDOM_COMMENT_EXCLUDED_VIEWS | set() |
MEDIA_URL_IS_ON_OTHER_DOMAIN | True |
STATIC_URL | '/static/' |
HAYSTACK_CONNECTIONS | {'default': {'BATCH_SIZE': 100, 'ENGINE': 'haystack.backends.solr_backend.SolrEngine', 'TIMEOUT': 100, 'URL': 'https://aws-virginia-solr4-10.opensolr.com/solr/haystack'}} |
DECIMAL_SEPARATOR | '.' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
OSCAR_ORDER_STATUS_PIPELINE | {'Annuler': (), 'Attente': ('Traiter', 'Annuler'), 'Traiter': ('Attente', 'Annuler')} |
USE_THOUSAND_SEPARATOR | False |
COMPRESS_CACHE_KEY_FUNCTION | '********************' |
SECURE_SSL_HOST | None |
OSCAR_PROMOTION_FOLDER | 'images/promotions/' |
CSRF_COOKIE_AGE | 31449600 |
STATIC_URL_IS_ON_OTHER_DOMAIN | '' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SOUTH_MIGRATION_MODULES | {'easy_thumbnails': 'easy_thumbnails.south_migrations', 'taggit': 'taggit.south_migrations'} |
MEDIA_ROOT | '/data/media' |
COMPRESS_YUI_JS_ARGUMENTS | '' |
STATICFILES_DIRS | ['/app/static'] |
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'] |
LOGGING | {'disable_existing_loggers': False, 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}}, 'handlers': {'mail_admins': {'class': 'django.utils.log.AdminEmailHandler', 'filters': ['require_debug_false'], 'level': 'ERROR'}}, 'loggers': {'django.request': {'handlers': ['mail_admins'], 'level': 'ERROR', 'propagate': True}}, 'version': 1} |
USE_ETAGS | False |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
THUMBNAIL_PROCESSORS | ('easy_thumbnails.processors.colorspace', 'easy_thumbnails.processors.autocrop', 'filer.thumbnail_processors.scale_and_crop_with_subject_location', 'easy_thumbnails.processors.filters') |
BLOG_LATEST_POSTS | 1 |
MIDDLEWARE_CLASSES | ['raven.contrib.django.middleware.DjangoRestFrameworkCompatMiddleware', 'raven.contrib.django.middleware.SentryMiddleware', 'django.middleware.gzip.GZipMiddleware', 'debreach.middleware.RandomCommentMiddleware', 'aldryn_django.middleware.RandomCommentExclusionMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'debreach.middleware.CSRFCryptMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.contrib.sites.middleware.CurrentSiteMiddleware', 'aldryn_sites.middleware.SiteMiddleware', 'django.middleware.security.SecurityMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.security.SecurityMiddleware', 'apps.basket.middleware.BasketMiddleware', 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware', 'cms.middleware.user.CurrentUserMiddleware', 'cms.middleware.page.CurrentPageMiddleware', 'cms.middleware.toolbar.ToolbarMiddleware', 'cms.middleware.language.LanguageCookieMiddleware', 'apps.visitor.middleware.VisitorMiddleware', 'debug_toolbar.middleware.DebugToolbarMiddleware', 'django.contrib.redirects.middleware.RedirectFallbackMiddleware'] |
COMPRESS_JINJA2_GET_ENVIRONMENT | <function CompressorConf.JINJA2_GET_ENVIRONMENT at 0x7ff67b6d2c80> |
DJANGO_WEB_MAX_REQUESTS | 500 |
COMPRESS_REBUILD_TIMEOUT | 2592000 |
AWS_MEDIA_DOMAIN | 'iciaplateforme-live-18da555147c54ff3b97-98240ee.aldryn-media.io' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
OSCAR_DASHBOARD_ITEMS_PER_PAGE | 20 |
ALDRYN_SITES_DOMAINS | {1: {'aliases': ['.*'], 'domain': 'www.monicia.ca', 'name': 'ICIA - Plateforme', 'redirects': ['monicia.ca']}} |
OSCAR_HIDDEN_FEATURES | [] |
COMPRESS_MINT_DELAY | 30 |
SECURE_SSL_REDIRECT | True |
EMAIL_USE_SSL | False |
CKEDITOR_JQUERY_URL | '/static/js/jquery/jquery-1.9.1.min.js' |
DEFAULT_TABLESPACE | '' |
OSCAR_RECENTLY_VIEWED_COOKIE_SECURE | False |
ALDRYN_SITES_AUTO_CONFIGURE_ALLOWED_HOSTS | True |
OSCAR_PRODUCTS_PER_PAGE | 20 |
COMPRESS_DEBUG_TOGGLE | None |
DEFAULT_CONTENT_TYPE | 'text/html' |
YEAR_MONTH_FORMAT | 'F Y' |
BLOG_USE_ABSTRACT | False |
FILE_CHARSET | 'utf-8' |
DATABASE_URL | '********************' |
OSCAR_DELETE_IMAGE_FILES | True |
DATABASE_ROUTERS | [] |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
FILE_UPLOAD_PERMISSIONS | None |
MEDIA_URL | 'https://iciaplateforme-live-18da555147c54ff3b97-98240ee.aldryn-media.io/' |
SECURE_CONTENT_TYPE_NOSNIFF | False |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
OSCAR_REQUIRED_ADDRESS_FIELDS | ['first_name', 'last_name', 'line1', 'state', 'line4', 'postcode', 'country'] |
PORT | 80 |
FORCE_SCRIPT_NAME | None |
ALDRYN_SITES_REDIRECT_PERMANENT | False |
AUTHENTICATION_BACKENDS | ('oscar.apps.customer.auth_backends.EmailBackend', 'django.contrib.auth.backends.ModelBackend') |
OSCAR_RECENTLY_VIEWED_COOKIE_NAME | 'oscar_history' |
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.