Reverse for 'list_page' with arguments '('',)' not found. 1 pattern(s) tried: ['products/(?P<slug>[\\w-]+)/$']
Request Method: | GET |
---|---|
Request URL: | http://shubhampharma.com/product-detail/avastine/ |
Django Version: | 2.2.6 |
Exception Type: | NoReverseMatch |
Exception Value: | Reverse for 'list_page' with arguments '('',)' not found. 1 pattern(s) tried: ['products/(?P<slug>[\\w-]+)/$'] |
Exception Location: | /usr/local/lib/python3.6/site-packages/django/urls/resolvers.py in _reverse_with_prefix, line 673 |
Python Executable: | /usr/local/bin/python |
Python Version: | 3.6.13 |
Python Path: | ['/app', '/usr/local/lib/python36.zip', '/usr/local/lib/python3.6', '/usr/local/lib/python3.6/lib-dynload', '/usr/local/lib/python3.6/site-packages', '/var/www/html/shubhampharma'] |
Server time: | Fri, 29 Mar 2024 11:37:48 +0530 |
In template /app/templates/layout/main.html
, error at line 0
1 | {% load static %} |
---|---|
2 | <!DOCTYPE html> |
3 | <html lang="en"> |
4 | <head> |
5 | |
6 | <meta charset="utf-8"> |
7 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
8 | <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
9 | <link rel="shortcut icon" href="/favicon.ico" > |
10 | {% block title %} |
/usr/local/lib/python3.6/site-packages/django/core/handlers/exception.py
in inner
This decorator is automatically applied to all middleware to ensure that
no middleware leaks an exception and that the next middleware in the stack
can rely on getting a response instead of an exception.
"""
@wraps(get_response)
def inner(request):
try:
response = get_response(request)…
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | NoReverseMatch("Reverse for 'list_page' with arguments '('',)' not found. 1 pattern(s) tried: ['products/(?P<slug>[\\\\w-]+)/$']",) |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f5fc2dd1748>> |
request | <WSGIRequest: GET '/product-detail/avastine/'> |
/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py
in _get_response
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)
except Exception as e:
response = self.process_exception_by_middleware(e, request)…
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
view_name = callback.__name__
else: # CBV
Variable | Value |
---|---|
callback | <function DetailPage at 0x7f5fc187f2f0> |
callback_args | () |
callback_kwargs | {'slug': 'avastine'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f5fc089bef0>> |
request | <WSGIRequest: GET '/product-detail/avastine/'> |
resolver | <URLResolver 'shubhampharma.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=app.views.DetailPage, args=(), kwargs={'slug': 'avastine'}, url_name=detail_page, app_names=[], namespaces=[], route=^product-detail/(?P<slug>[\w-]+)/$) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f5fc2dd1748> |
wrapped_callback | <function DetailPage at 0x7f5fc187f2f0> |
/usr/local/lib/python3.6/site-packages/django/core/handlers/base.py
in _get_response
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)…
except Exception as e:
response = self.process_exception_by_middleware(e, request)
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
Variable | Value |
---|---|
callback | <function DetailPage at 0x7f5fc187f2f0> |
callback_args | () |
callback_kwargs | {'slug': 'avastine'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f5fc089bef0>> |
request | <WSGIRequest: GET '/product-detail/avastine/'> |
resolver | <URLResolver 'shubhampharma.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=app.views.DetailPage, args=(), kwargs={'slug': 'avastine'}, url_name=detail_page, app_names=[], namespaces=[], route=^product-detail/(?P<slug>[\w-]+)/$) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f5fc2dd1748> |
wrapped_callback | <function DetailPage at 0x7f5fc187f2f0> |
/app/app/views.py
in DetailPage
if product.aka_product:
aka_products= [product.aka_product]
if Product.objects.filter(aka_product=product).exists():
aka_products = Product.objects.filter(aka_product=product).all()
context = {'product':product,'cat':cat,'related_product':related_product,'aka_products':aka_products,'most_viewed':get_most_viewed()}
context['faqs']=product.faqs.all()
return render(request, 'app/detail.html', context)…
def get_most_viewed():
products=Product.objects.filter(url__in=['lenalidomide-lenalid','pomalidomide-pomalid','sorafenib-sorafenat','abiraterone-acetate-xbira','bendamustine-bendit','erlonat','bicalutamide-cassotide','everolimus-evertor','ledipasvir-sofosbuvir-hepcinat-lp','exemestane-xtane','sofosbuvir-velpatasvir-velpanat','geftinat','bortezomib-bortenat','tenofovir-tenvir','glatiramer-glatimer'])
return products
def Blogs(request):
Variable | Value |
---|---|
aka_products | None |
cat | None |
context | {'aka_products': None, 'cat': None, 'faqs': <QuerySet []>, 'most_viewed': <QuerySet [<Product: Abiraterone Acetate-Xbira(158)>, <Product: Bendamustine-Bendit(30)>, <Product: Bicalutamide-Cassotide(162)>, <Product: Bortezomib-Bortenat(16)>, <Product: Erlonat(6)>, <Product: Everolimus-Evertor(19)>, <Product: Exemestane-Xtane(179)>, <Product: Geftinat(9)>, <Product: Glatiramer Acetate-Glatimer(182)>, <Product: Ledipasvir & Sofosbuvir-Hepcinat LP(185)>, <Product: Lenalidomide-Lenalid(13)>, <Product: Pomalidomide-Pomalid(46)>, <Product: Sofosbuvir & Velpatasvir-Velpanat(26)>, <Product: Sorafenib-Sorafenat(22)>, <Product: Tenofovir-Tenvir(210)>]>, 'product': <Product: AVASTINE(62)>, 'related_product': <QuerySet [<Product: ANASTRONAT(59)>, <Product: AVASTINE(62)>]>} |
product | <Product: AVASTINE(62)> |
related_product | <QuerySet [<Product: ANASTRONAT(59)>, <Product: AVASTINE(62)>]> |
request | <WSGIRequest: GET '/product-detail/avastine/'> |
slug | 'avastine' |
/usr/local/lib/python3.6/site-packages/django/shortcuts.py
in render
def render(request, template_name, context=None, content_type=None, status=None, using=None):
"""
Return a HttpResponse whose content is filled with the result of calling
django.template.loader.render_to_string() with the passed arguments.
"""
content = loader.render_to_string(template_name, context, request, using=using)…
return HttpResponse(content, content_type, status)
def redirect(to, *args, permanent=False, **kwargs):
"""
Return an HttpResponseRedirect to the appropriate URL for the arguments
Variable | Value |
---|---|
content_type | None |
context | {'aka_products': None, 'cat': None, 'faqs': <QuerySet []>, 'most_viewed': <QuerySet [<Product: Abiraterone Acetate-Xbira(158)>, <Product: Bendamustine-Bendit(30)>, <Product: Bicalutamide-Cassotide(162)>, <Product: Bortezomib-Bortenat(16)>, <Product: Erlonat(6)>, <Product: Everolimus-Evertor(19)>, <Product: Exemestane-Xtane(179)>, <Product: Geftinat(9)>, <Product: Glatiramer Acetate-Glatimer(182)>, <Product: Ledipasvir & Sofosbuvir-Hepcinat LP(185)>, <Product: Lenalidomide-Lenalid(13)>, <Product: Pomalidomide-Pomalid(46)>, <Product: Sofosbuvir & Velpatasvir-Velpanat(26)>, <Product: Sorafenib-Sorafenat(22)>, <Product: Tenofovir-Tenvir(210)>]>, 'product': <Product: AVASTINE(62)>, 'related_product': <QuerySet [<Product: ANASTRONAT(59)>, <Product: AVASTINE(62)>]>} |
request | <WSGIRequest: GET '/product-detail/avastine/'> |
status | None |
template_name | 'app/detail.html' |
using | None |
/usr/local/lib/python3.6/site-packages/django/template/loader.py
in render_to_string
template_name may be a string or a list of strings.
"""
if isinstance(template_name, (list, tuple)):
template = select_template(template_name, using=using)
else:
template = get_template(template_name, using=using)
return template.render(context, request)…
def _engine_list(using=None):
return engines.all() if using is None else [engines[using]]
Variable | Value |
---|---|
context | {'aka_products': None, 'cat': None, 'faqs': <QuerySet []>, 'most_viewed': <QuerySet [<Product: Abiraterone Acetate-Xbira(158)>, <Product: Bendamustine-Bendit(30)>, <Product: Bicalutamide-Cassotide(162)>, <Product: Bortezomib-Bortenat(16)>, <Product: Erlonat(6)>, <Product: Everolimus-Evertor(19)>, <Product: Exemestane-Xtane(179)>, <Product: Geftinat(9)>, <Product: Glatiramer Acetate-Glatimer(182)>, <Product: Ledipasvir & Sofosbuvir-Hepcinat LP(185)>, <Product: Lenalidomide-Lenalid(13)>, <Product: Pomalidomide-Pomalid(46)>, <Product: Sofosbuvir & Velpatasvir-Velpanat(26)>, <Product: Sorafenib-Sorafenat(22)>, <Product: Tenofovir-Tenvir(210)>]>, 'product': <Product: AVASTINE(62)>, 'related_product': <QuerySet [<Product: ANASTRONAT(59)>, <Product: AVASTINE(62)>]>} |
request | <WSGIRequest: GET '/product-detail/avastine/'> |
template | <django.template.backends.django.Template object at 0x7f5fc4157f60> |
template_name | 'app/detail.html' |
using | None |
/usr/local/lib/python3.6/site-packages/django/template/backends/django.py
in render
@property
def origin(self):
return self.template.origin
def render(self, context=None, request=None):
context = make_context(context, request, autoescape=self.backend.engine.autoescape)
try:
return self.template.render(context)…
except TemplateDoesNotExist as exc:
reraise(exc, self.backend)
def copy_exception(exc, backend=None):
"""
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'product': <Product: AVASTINE(62)>, 'cat': None, 'related_product': <QuerySet [<Product: ANASTRONAT(59)>, <Product: AVASTINE(62)>]>, 'aka_products': None, 'most_viewed': <QuerySet [<Product: Abiraterone Acetate-Xbira(158)>, <Product: Bendamustine-Bendit(30)>, <Product: Bicalutamide-Cassotide(162)>, <Product: Bortezomib-Bortenat(16)>, <Product: Erlonat(6)>, <Product: Everolimus-Evertor(19)>, <Product: Exemestane-Xtane(179)>, <Product: Geftinat(9)>, <Product: Glatiramer Acetate-Glatimer(182)>, <Product: Ledipasvir & Sofosbuvir-Hepcinat LP(185)>, <Product: Lenalidomide-Lenalid(13)>, <Product: Pomalidomide-Pomalid(46)>, <Product: Sofosbuvir & Velpatasvir-Velpanat(26)>, <Product: Sorafenib-Sorafenat(22)>, <Product: Tenofovir-Tenvir(210)>]>, 'faqs': <QuerySet []>}] |
request | <WSGIRequest: GET '/product-detail/avastine/'> |
self | <django.template.backends.django.Template object at 0x7f5fc4157f60> |
/usr/local/lib/python3.6/site-packages/django/template/base.py
in render
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
context.template_name = self.name
return self._render(context)…
else:
return self._render(context)
def compile_nodelist(self):
"""
Parse and compile the template source into a nodelist. If debug
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'product': <Product: AVASTINE(62)>, 'cat': None, 'related_product': <QuerySet [<Product: ANASTRONAT(59)>, <Product: AVASTINE(62)>]>, 'aka_products': None, 'most_viewed': <QuerySet [<Product: Abiraterone Acetate-Xbira(158)>, <Product: Bendamustine-Bendit(30)>, <Product: Bicalutamide-Cassotide(162)>, <Product: Bortezomib-Bortenat(16)>, <Product: Erlonat(6)>, <Product: Everolimus-Evertor(19)>, <Product: Exemestane-Xtane(179)>, <Product: Geftinat(9)>, <Product: Glatiramer Acetate-Glatimer(182)>, <Product: Ledipasvir & Sofosbuvir-Hepcinat LP(185)>, <Product: Lenalidomide-Lenalid(13)>, <Product: Pomalidomide-Pomalid(46)>, <Product: Sofosbuvir & Velpatasvir-Velpanat(26)>, <Product: Sorafenib-Sorafenat(22)>, <Product: Tenofovir-Tenvir(210)>]>, 'faqs': <QuerySet []>}] |
self | <django.template.base.Template object at 0x7f5fc069bac8> |
/usr/local/lib/python3.6/site-packages/django/template/base.py
in _render
self.nodelist = self.compile_nodelist()
def __iter__(self):
for node in self.nodelist:
yield from node
def _render(self, context):
return self.nodelist.render(context)…
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'product': <Product: AVASTINE(62)>, 'cat': None, 'related_product': <QuerySet [<Product: ANASTRONAT(59)>, <Product: AVASTINE(62)>]>, 'aka_products': None, 'most_viewed': <QuerySet [<Product: Abiraterone Acetate-Xbira(158)>, <Product: Bendamustine-Bendit(30)>, <Product: Bicalutamide-Cassotide(162)>, <Product: Bortezomib-Bortenat(16)>, <Product: Erlonat(6)>, <Product: Everolimus-Evertor(19)>, <Product: Exemestane-Xtane(179)>, <Product: Geftinat(9)>, <Product: Glatiramer Acetate-Glatimer(182)>, <Product: Ledipasvir & Sofosbuvir-Hepcinat LP(185)>, <Product: Lenalidomide-Lenalid(13)>, <Product: Pomalidomide-Pomalid(46)>, <Product: Sofosbuvir & Velpatasvir-Velpanat(26)>, <Product: Sorafenib-Sorafenat(22)>, <Product: Tenofovir-Tenvir(210)>]>, 'faqs': <QuerySet []>}] |
self | <django.template.base.Template object at 0x7f5fc069bac8> |
/usr/local/lib/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bits | [] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'product': <Product: AVASTINE(62)>, 'cat': None, 'related_product': <QuerySet [<Product: ANASTRONAT(59)>, <Product: AVASTINE(62)>]>, 'aka_products': None, 'most_viewed': <QuerySet [<Product: Abiraterone Acetate-Xbira(158)>, <Product: Bendamustine-Bendit(30)>, <Product: Bicalutamide-Cassotide(162)>, <Product: Bortezomib-Bortenat(16)>, <Product: Erlonat(6)>, <Product: Everolimus-Evertor(19)>, <Product: Exemestane-Xtane(179)>, <Product: Geftinat(9)>, <Product: Glatiramer Acetate-Glatimer(182)>, <Product: Ledipasvir & Sofosbuvir-Hepcinat LP(185)>, <Product: Lenalidomide-Lenalid(13)>, <Product: Pomalidomide-Pomalid(46)>, <Product: Sofosbuvir & Velpatasvir-Velpanat(26)>, <Product: Sorafenib-Sorafenat(22)>, <Product: Tenofovir-Tenvir(210)>]>, 'faqs': <QuerySet []>}] |
node | <ExtendsNode: extends 'layout/main.html'> |
self | [<ExtendsNode: extends 'layout/main.html'>] |
/usr/local/lib/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'product': <Product: AVASTINE(62)>, 'cat': None, 'related_product': <QuerySet [<Product: ANASTRONAT(59)>, <Product: AVASTINE(62)>]>, 'aka_products': None, 'most_viewed': <QuerySet [<Product: Abiraterone Acetate-Xbira(158)>, <Product: Bendamustine-Bendit(30)>, <Product: Bicalutamide-Cassotide(162)>, <Product: Bortezomib-Bortenat(16)>, <Product: Erlonat(6)>, <Product: Everolimus-Evertor(19)>, <Product: Exemestane-Xtane(179)>, <Product: Geftinat(9)>, <Product: Glatiramer Acetate-Glatimer(182)>, <Product: Ledipasvir & Sofosbuvir-Hepcinat LP(185)>, <Product: Lenalidomide-Lenalid(13)>, <Product: Pomalidomide-Pomalid(46)>, <Product: Sofosbuvir & Velpatasvir-Velpanat(26)>, <Product: Sorafenib-Sorafenat(22)>, <Product: Tenofovir-Tenvir(210)>]>, 'faqs': <QuerySet []>}] |
self | <ExtendsNode: extends 'layout/main.html'> |
/usr/local/lib/python3.6/site-packages/django/template/loader_tags.py
in render
compiled_parent.nodelist.get_nodes_by_type(BlockNode)}
block_context.add_blocks(blocks)
break
# Call Template._render explicitly so the parser context stays
# the same.
with context.render_context.push_state(compiled_parent, isolated_context=False):
return compiled_parent._render(context)…
class IncludeNode(Node):
context_key = '__include_context'
def __init__(self, template, *args, extra_context=None, isolated_context=False, **kwargs):
Variable | Value |
---|---|
block_context | <django.template.loader_tags.BlockContext object at 0x7f5fc036f7b8> |
blocks | {'content': <Block Node: content. Contents: [<TextNode: '\n '>]>, 'meta': <Block Node: meta. Contents: [<TextNode: '\n '>]>, 'title': <Block Node: title. Contents: [<TextNode: '\n '>]>} |
compiled_parent | <django.template.base.Template object at 0x7f5fc02572b0> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'product': <Product: AVASTINE(62)>, 'cat': None, 'related_product': <QuerySet [<Product: ANASTRONAT(59)>, <Product: AVASTINE(62)>]>, 'aka_products': None, 'most_viewed': <QuerySet [<Product: Abiraterone Acetate-Xbira(158)>, <Product: Bendamustine-Bendit(30)>, <Product: Bicalutamide-Cassotide(162)>, <Product: Bortezomib-Bortenat(16)>, <Product: Erlonat(6)>, <Product: Everolimus-Evertor(19)>, <Product: Exemestane-Xtane(179)>, <Product: Geftinat(9)>, <Product: Glatiramer Acetate-Glatimer(182)>, <Product: Ledipasvir & Sofosbuvir-Hepcinat LP(185)>, <Product: Lenalidomide-Lenalid(13)>, <Product: Pomalidomide-Pomalid(46)>, <Product: Sofosbuvir & Velpatasvir-Velpanat(26)>, <Product: Sorafenib-Sorafenat(22)>, <Product: Tenofovir-Tenvir(210)>]>, 'faqs': <QuerySet []>}] |
node | <django.template.defaulttags.LoadNode object at 0x7f5fc0373390> |
self | <ExtendsNode: extends 'layout/main.html'> |
/usr/local/lib/python3.6/site-packages/django/template/base.py
in _render
self.nodelist = self.compile_nodelist()
def __iter__(self):
for node in self.nodelist:
yield from node
def _render(self, context):
return self.nodelist.render(context)…
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'product': <Product: AVASTINE(62)>, 'cat': None, 'related_product': <QuerySet [<Product: ANASTRONAT(59)>, <Product: AVASTINE(62)>]>, 'aka_products': None, 'most_viewed': <QuerySet [<Product: Abiraterone Acetate-Xbira(158)>, <Product: Bendamustine-Bendit(30)>, <Product: Bicalutamide-Cassotide(162)>, <Product: Bortezomib-Bortenat(16)>, <Product: Erlonat(6)>, <Product: Everolimus-Evertor(19)>, <Product: Exemestane-Xtane(179)>, <Product: Geftinat(9)>, <Product: Glatiramer Acetate-Glatimer(182)>, <Product: Ledipasvir & Sofosbuvir-Hepcinat LP(185)>, <Product: Lenalidomide-Lenalid(13)>, <Product: Pomalidomide-Pomalid(46)>, <Product: Sofosbuvir & Velpatasvir-Velpanat(26)>, <Product: Sorafenib-Sorafenat(22)>, <Product: Tenofovir-Tenvir(210)>]>, 'faqs': <QuerySet []>}] |
self | <django.template.base.Template object at 0x7f5fc02572b0> |
/usr/local/lib/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n ' |
bits | ['', '\n' '<!DOCTYPE html>\n' '<html lang="en">\n' ' <head>\n' '\n' ' <meta charset="utf-8">\n' ' <meta name="viewport" content="width=device-width, initial-scale=1.0">\n' ' <meta http-equiv="X-UA-Compatible" content="IE=edge" />\n' ' <link rel="shortcut icon" href="/favicon.ico" >\n' ' ', '\n' '<title> AVASTINE(100 mg per 4 mL Vial\r\n' '400 mg per 16 mL Vial): Price in India, Drug Uses, Side Effects, Warnings - ' 'ShubhamPharma </title>\n', '\n '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'product': <Product: AVASTINE(62)>, 'cat': None, 'related_product': <QuerySet [<Product: ANASTRONAT(59)>, <Product: AVASTINE(62)>]>, 'aka_products': None, 'most_viewed': <QuerySet [<Product: Abiraterone Acetate-Xbira(158)>, <Product: Bendamustine-Bendit(30)>, <Product: Bicalutamide-Cassotide(162)>, <Product: Bortezomib-Bortenat(16)>, <Product: Erlonat(6)>, <Product: Everolimus-Evertor(19)>, <Product: Exemestane-Xtane(179)>, <Product: Geftinat(9)>, <Product: Glatiramer Acetate-Glatimer(182)>, <Product: Ledipasvir & Sofosbuvir-Hepcinat LP(185)>, <Product: Lenalidomide-Lenalid(13)>, <Product: Pomalidomide-Pomalid(46)>, <Product: Sofosbuvir & Velpatasvir-Velpanat(26)>, <Product: Sorafenib-Sorafenat(22)>, <Product: Tenofovir-Tenvir(210)>]>, 'faqs': <QuerySet []>}] |
node | <Block Node: meta. Contents: [<TextNode: '\n '>]> |
self | [<django.template.defaulttags.LoadNode object at 0x7f5fc0373390>, <TextNode: '\n<!DOCTYPE html>\n<html la'>, <Block Node: title. Contents: [<TextNode: '\n '>]>, <TextNode: '\n '>, <Block Node: meta. Contents: [<TextNode: '\n '>]>, <TextNode: '\n <meta name="author" '>, <django.templatetags.static.StaticNode object at 0x7f5fc01dc198>, <TextNode: '" rel="stylesheet">\n \n'>, <django.templatetags.static.StaticNode object at 0x7f5fc01dcbe0>, <TextNode: ' " rel="stylesheet">\n '>, <django.templatetags.static.StaticNode object at 0x7f5fc01fb080>, <TextNode: '" rel="stylesheet">\n \n'>, <django.templatetags.static.StaticNode object at 0x7f5fc01fb128>, <TextNode: '" rel="stylesheet">\n <'>, <django.templatetags.static.StaticNode object at 0x7f5fc01fb208>, <TextNode: '" width="230">\n '>, <ForNode: for disease in diseases|slice:":12", tail_len: 9>, <TextNode: '\n '>, <Block Node: content. Contents: [<TextNode: '\n '>]>, <TextNode: '\n <!-- ======== @Regio'>, <ForNode: for disease in diseases|slice:":6", tail_len: 5>, <TextNode: '\n </div>\n '>, <django.templatetags.static.StaticNode object at 0x7f5fc02767f0>, <TextNode: '" width="286">\n '>, <django.template.defaulttags.NowNode object at 0x7f5fc01fbd68>, <TextNode: ' Shubham Pharmaceutical. '>, <django.template.defaulttags.CsrfTokenNode object at 0x7f5fc0276438>, <TextNode: '\n\n <!-- /.modal -->\n'>, <django.templatetags.static.StaticNode object at 0x7f5fc01dd550>, <TextNode: '"></script>\n <!--AppSt'>, <django.templatetags.static.StaticNode object at 0x7f5fc01dd5c0>, <TextNode: '"></script>\n\n <script '>, <django.templatetags.static.StaticNode object at 0x7f5fc01dd668>, <TextNode: '"></script>\n <script t'>] |
/usr/local/lib/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'product': <Product: AVASTINE(62)>, 'cat': None, 'related_product': <QuerySet [<Product: ANASTRONAT(59)>, <Product: AVASTINE(62)>]>, 'aka_products': None, 'most_viewed': <QuerySet [<Product: Abiraterone Acetate-Xbira(158)>, <Product: Bendamustine-Bendit(30)>, <Product: Bicalutamide-Cassotide(162)>, <Product: Bortezomib-Bortenat(16)>, <Product: Erlonat(6)>, <Product: Everolimus-Evertor(19)>, <Product: Exemestane-Xtane(179)>, <Product: Geftinat(9)>, <Product: Glatiramer Acetate-Glatimer(182)>, <Product: Ledipasvir & Sofosbuvir-Hepcinat LP(185)>, <Product: Lenalidomide-Lenalid(13)>, <Product: Pomalidomide-Pomalid(46)>, <Product: Sofosbuvir & Velpatasvir-Velpanat(26)>, <Product: Sorafenib-Sorafenat(22)>, <Product: Tenofovir-Tenvir(210)>]>, 'faqs': <QuerySet []>}] |
self | <Block Node: meta. Contents: [<TextNode: '\n '>]> |
/usr/local/lib/python3.6/site-packages/django/template/loader_tags.py
in render
push = block = block_context.pop(self.name)
if block is None:
block = self
# Create new block so we can store context without thread-safety issues.
block = type(self)(block.name, block.nodelist)
block.context = context
context['block'] = block
result = block.nodelist.render(context)…
if push is not None:
block_context.push(self.name, push)
return result
def super(self):
if not hasattr(self, 'context'):
Variable | Value |
---|---|
block | <Block Node: meta. Contents: [<TextNode: '\n<meta name="description"'>, <IfNode>, <TextNode: '">\n<meta property="og:tit'>, <IfNode>, <TextNode: '"/>\n<meta property="og:de'>, <IfNode>, <TextNode: '"/>\n<meta name="keywords"'>, <Variable Node: product.name>, <TextNode: ', '>, <Variable Node: product.name>, <TextNode: ' '>, <Variable Node: product.strength|safe>, <TextNode: ', '>, <Variable Node: product.name>, <TextNode: ' price">\n<meta property="'>, <django.template.defaulttags.URLNode object at 0x7f5fc0641d30>, <TextNode: '"/>\n<link rel="canonical"'>, <django.template.defaulttags.URLNode object at 0x7f5fc0641ac8>, <TextNode: '">\n<meta property="og:ima'>, <django.template.defaulttags.URLNode object at 0x7f5fc0682f98>, <TextNode: '" hreflang="en" />\n'>, <IfNode>, <TextNode: '\n<link rel="alternate" hr'>, <django.template.defaulttags.URLNode object at 0x7f5fc0682710>, <TextNode: '" hreflang="x-default" />'>, <IfNode>, <TextNode: '",\n "image": ["'>, <IfNode>, <TextNode: '"],\n "description": "'>, <IfNode>, <TextNode: '",\n "sku": "'>, <Variable Node: product.id>, <TextNode: '",\n "mpn": "'>, <Variable Node: product.id>, <TextNode: '",\n "url":"https://www.s'>, <django.template.defaulttags.URLNode object at 0x7f5fc0438e80>, <TextNode: '",\n "brand": {\n "@typ'>, <Variable Node: product.manufactured_by>, <TextNode: '"\n }\n},\n{\n "@context"'>, <django.template.defaulttags.URLNode object at 0x7f5fc0365438>, <TextNode: '",\n "primaryImageOfPag'>, <IfNode>, <TextNode: '",\n "name": "'>, <Variable Node: product.name>, <TextNode: '"\n },\n "name": "'>, <IfNode>, <TextNode: '",\n "description": "'>, <IfNode>, <TextNode: '",\n "publisher": {\n '>, <django.template.defaulttags.URLNode object at 0x7f5fc06c1f28>, <TextNode: '",\n "name": "'>, <Variable Node: cat.name>, <TextNode: '"\n }\n },\n {\n "@typ'>, <django.template.defaulttags.URLNode object at 0x7f5fc0271128>, <TextNode: '",\n "name": "'>, <Variable Node: product.formattedName>, <TextNode: '"\n }\n }\n ]\n},\n{\n '>, <Variable Node: product.formattedName>, <TextNode: '",\n "description": "'>, <IfNode>, <TextNode: '",\n "url":"https://www'>, <django.template.defaulttags.URLNode object at 0x7f5fc06c1b70>, <TextNode: '",\n "primaryImageOfPag'>, <IfNode>, <TextNode: '",\n "name": "'>, <Variable Node: product.name>, <TextNode: '"\n },\n "about": {\n '>, <Variable Node: product.formattedName>, <TextNode: '"\n }\n},\n{\n "@contex'>, <IfNode>, <TextNode: '\n'>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f5fc036f7b8> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'product': <Product: AVASTINE(62)>, 'cat': None, 'related_product': <QuerySet [<Product: ANASTRONAT(59)>, <Product: AVASTINE(62)>]>, 'aka_products': None, 'most_viewed': <QuerySet [<Product: Abiraterone Acetate-Xbira(158)>, <Product: Bendamustine-Bendit(30)>, <Product: Bicalutamide-Cassotide(162)>, <Product: Bortezomib-Bortenat(16)>, <Product: Erlonat(6)>, <Product: Everolimus-Evertor(19)>, <Product: Exemestane-Xtane(179)>, <Product: Geftinat(9)>, <Product: Glatiramer Acetate-Glatimer(182)>, <Product: Ledipasvir & Sofosbuvir-Hepcinat LP(185)>, <Product: Lenalidomide-Lenalid(13)>, <Product: Pomalidomide-Pomalid(46)>, <Product: Sofosbuvir & Velpatasvir-Velpanat(26)>, <Product: Sorafenib-Sorafenat(22)>, <Product: Tenofovir-Tenvir(210)>]>, 'faqs': <QuerySet []>}] |
push | <Block Node: meta. Contents: [<TextNode: '\n<meta name="description"'>, <IfNode>, <TextNode: '">\n<meta property="og:tit'>, <IfNode>, <TextNode: '"/>\n<meta property="og:de'>, <IfNode>, <TextNode: '"/>\n<meta name="keywords"'>, <Variable Node: product.name>, <TextNode: ', '>, <Variable Node: product.name>, <TextNode: ' '>, <Variable Node: product.strength|safe>, <TextNode: ', '>, <Variable Node: product.name>, <TextNode: ' price">\n<meta property="'>, <django.template.defaulttags.URLNode object at 0x7f5fc0641d30>, <TextNode: '"/>\n<link rel="canonical"'>, <django.template.defaulttags.URLNode object at 0x7f5fc0641ac8>, <TextNode: '">\n<meta property="og:ima'>, <django.template.defaulttags.URLNode object at 0x7f5fc0682f98>, <TextNode: '" hreflang="en" />\n'>, <IfNode>, <TextNode: '\n<link rel="alternate" hr'>, <django.template.defaulttags.URLNode object at 0x7f5fc0682710>, <TextNode: '" hreflang="x-default" />'>, <IfNode>, <TextNode: '",\n "image": ["'>, <IfNode>, <TextNode: '"],\n "description": "'>, <IfNode>, <TextNode: '",\n "sku": "'>, <Variable Node: product.id>, <TextNode: '",\n "mpn": "'>, <Variable Node: product.id>, <TextNode: '",\n "url":"https://www.s'>, <django.template.defaulttags.URLNode object at 0x7f5fc0438e80>, <TextNode: '",\n "brand": {\n "@typ'>, <Variable Node: product.manufactured_by>, <TextNode: '"\n }\n},\n{\n "@context"'>, <django.template.defaulttags.URLNode object at 0x7f5fc0365438>, <TextNode: '",\n "primaryImageOfPag'>, <IfNode>, <TextNode: '",\n "name": "'>, <Variable Node: product.name>, <TextNode: '"\n },\n "name": "'>, <IfNode>, <TextNode: '",\n "description": "'>, <IfNode>, <TextNode: '",\n "publisher": {\n '>, <django.template.defaulttags.URLNode object at 0x7f5fc06c1f28>, <TextNode: '",\n "name": "'>, <Variable Node: cat.name>, <TextNode: '"\n }\n },\n {\n "@typ'>, <django.template.defaulttags.URLNode object at 0x7f5fc0271128>, <TextNode: '",\n "name": "'>, <Variable Node: product.formattedName>, <TextNode: '"\n }\n }\n ]\n},\n{\n '>, <Variable Node: product.formattedName>, <TextNode: '",\n "description": "'>, <IfNode>, <TextNode: '",\n "url":"https://www'>, <django.template.defaulttags.URLNode object at 0x7f5fc06c1b70>, <TextNode: '",\n "primaryImageOfPag'>, <IfNode>, <TextNode: '",\n "name": "'>, <Variable Node: product.name>, <TextNode: '"\n },\n "about": {\n '>, <Variable Node: product.formattedName>, <TextNode: '"\n }\n},\n{\n "@contex'>, <IfNode>, <TextNode: '\n'>]> |
self | <Block Node: meta. Contents: [<TextNode: '\n '>]> |
/usr/local/lib/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | ('",\n' ' "publisher": {\n' ' "@type": "Organization",\n' ' "name": "Shubham Pharmaceutical"\n' ' }\n' '},\n' '{\n' ' "@context": "http://schema.org",\n' ' "@type": "BreadcrumbList",\n' ' "itemListElement":\n' ' [\n' ' {\n' ' "@type": "ListItem",\n' ' "position": 1,\n' ' "item":\n' ' {\n' ' "@id": "https://www.shubhampharma.com/",\n' ' "name": "Home"\n' ' }\n' ' },\n' ' {\n' ' "@type": "ListItem",\n' ' "position": 2,\n' ' "item":\n' ' {\n' ' "@id": "') |
bits | ['\n<meta name="description"\n content="', ' AVASTINE (100 mg per 4 mL Vial\r\n' '400 mg per 16 mL Vial): Check details AVASTINE drug description, price in ' 'India, brand name, medicine uses, side effects, interactions, warnings, ' 'precaution & specifications including strength, storage, packing, pictures ' 'and more. Buy Drug Online at Best Price', '">\n<meta property="og:title"\n content="', 'AVASTINE 100 mg per 4 mL Vial\r\n' '400 mg per 16 mL Vial: Price in India, Drug Uses, Side Effects, Warnings - ' 'ShubhamPharma', '"/>\n<meta property="og:description"\n content="', ' AVASTINE 100 mg per 4 mL Vial\r\n' '400 mg per 16 mL Vial: Check details AVASTINE drug description, price in ' 'India, brand name, medicine uses, side effects, interactions, warnings, ' 'precaution & specifications including strength, storage, packing, pictures ' 'and more. Buy Drug Online at Best Price ', '"/>\n<meta name="keywords"\n content="', 'AVASTINE', ', ', 'AVASTINE', ' ', '100 mg per 4 mL Vial\r\n400 mg per 16 mL Vial', ', ', 'AVASTINE', ' price">\n' '<meta property="og:type" content="website"/>\n' '<meta property="og:url" content="https://www.shubhampharma.com', '/product-detail/avastine/', '"/>\n<link rel="canonical" href="https://www.shubhampharma.com', '/product-detail/avastine/', '">\n' '<meta property="og:image" ' 'content="https://www.shubhampharma.com/static/images/logo.png"/>\n' '<meta property="og:site_name" content="ShubhamPharmaceutical"/>\n' '\n' '<link rel="alternate" href="https://www.shubhampharma.com', '/product-detail/avastine/', '" hreflang="en" />\n', '', '\n<link rel="alternate" href="https://www.shubhampharma.com', '/product-detail/avastine/', '" hreflang="x-default" />\n' '\n' '\n' ' <script type="application/ld+json">\n' '[{\n' ' "@context": "https://schema.org/",\n' ' "@type": "Product",\n' ' "name": "', ' AVASTINE(100 mg per 4 mL Vial\r\n' '400 mg per 16 mL Vial): Price in India, Drug Uses, Side Effects, Warnings - ' 'ShubhamPharma ', '",\n "image": ["', 'https://ik.imagekit.io/ep43lhzvdu/uploads/018-AVASTIN_jtMdMGY.jpg', '"],\n "description": "', ' AVASTINE (100 mg per 4 mL Vial\r\n' '400 mg per 16 mL Vial): Check details AVASTINE drug description, price in ' 'India, brand name, medicine uses, side effects, interactions, warnings, ' 'precaution & specifications including strength, storage, packing, pictures ' 'and more. Buy Drug Online at Best Price', '",\n "sku": "', '62', '",\n "mpn": "', '62', '",\n "url":"https://www.shubhampharma.com', '/product-detail/avastine/', '",\n "brand": {\n "@type": "thing",\n "name": "', 'Roche', '"\n' ' }\n' '},\n' '{\n' ' "@context": "http://schema.org",\n' ' "@type": "WebPage",\n' ' "url":"https://www.shubhampharma.com', '/product-detail/avastine/', '",\n' ' "primaryImageOfPage":{\n' ' "@context": "https://schema.org",\n' ' "@type": "ImageObject",\n' ' "contentUrl": "', 'https://ik.imagekit.io/ep43lhzvdu/uploads/018-AVASTIN_jtMdMGY.jpg', '",\n "name": "', 'AVASTINE', '"\n },\n "name": "', ' AVASTINE(100 mg per 4 mL Vial\r\n' '400 mg per 16 mL Vial): Price in India, Drug Uses, Side Effects, Warnings - ' 'ShubhamPharma ', '",\n "description": "', ' AVASTINE (100 mg per 4 mL Vial\r\n' '400 mg per 16 mL Vial): Check details AVASTINE drug description, price in ' 'India, brand name, medicine uses, side effects, interactions, warnings, ' 'precaution & specifications including strength, storage, packing, pictures ' 'and more. Buy Drug Online at Best Price', '",\n' ' "publisher": {\n' ' "@type": "Organization",\n' ' "name": "Shubham Pharmaceutical"\n' ' }\n' '},\n' '{\n' ' "@context": "http://schema.org",\n' ' "@type": "BreadcrumbList",\n' ' "itemListElement":\n' ' [\n' ' {\n' ' "@type": "ListItem",\n' ' "position": 1,\n' ' "item":\n' ' {\n' ' "@id": "https://www.shubhampharma.com/",\n' ' "name": "Home"\n' ' }\n' ' },\n' ' {\n' ' "@type":… <trimmed 4176 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'product': <Product: AVASTINE(62)>, 'cat': None, 'related_product': <QuerySet [<Product: ANASTRONAT(59)>, <Product: AVASTINE(62)>]>, 'aka_products': None, 'most_viewed': <QuerySet [<Product: Abiraterone Acetate-Xbira(158)>, <Product: Bendamustine-Bendit(30)>, <Product: Bicalutamide-Cassotide(162)>, <Product: Bortezomib-Bortenat(16)>, <Product: Erlonat(6)>, <Product: Everolimus-Evertor(19)>, <Product: Exemestane-Xtane(179)>, <Product: Geftinat(9)>, <Product: Glatiramer Acetate-Glatimer(182)>, <Product: Ledipasvir & Sofosbuvir-Hepcinat LP(185)>, <Product: Lenalidomide-Lenalid(13)>, <Product: Pomalidomide-Pomalid(46)>, <Product: Sofosbuvir & Velpatasvir-Velpanat(26)>, <Product: Sorafenib-Sorafenat(22)>, <Product: Tenofovir-Tenvir(210)>]>, 'faqs': <QuerySet []>}] |
node | <django.template.defaulttags.URLNode object at 0x7f5fc06c1f28> |
self | [<TextNode: '\n<meta name="description"'>, <IfNode>, <TextNode: '">\n<meta property="og:tit'>, <IfNode>, <TextNode: '"/>\n<meta property="og:de'>, <IfNode>, <TextNode: '"/>\n<meta name="keywords"'>, <Variable Node: product.name>, <TextNode: ', '>, <Variable Node: product.name>, <TextNode: ' '>, <Variable Node: product.strength|safe>, <TextNode: ', '>, <Variable Node: product.name>, <TextNode: ' price">\n<meta property="'>, <django.template.defaulttags.URLNode object at 0x7f5fc0641d30>, <TextNode: '"/>\n<link rel="canonical"'>, <django.template.defaulttags.URLNode object at 0x7f5fc0641ac8>, <TextNode: '">\n<meta property="og:ima'>, <django.template.defaulttags.URLNode object at 0x7f5fc0682f98>, <TextNode: '" hreflang="en" />\n'>, <IfNode>, <TextNode: '\n<link rel="alternate" hr'>, <django.template.defaulttags.URLNode object at 0x7f5fc0682710>, <TextNode: '" hreflang="x-default" />'>, <IfNode>, <TextNode: '",\n "image": ["'>, <IfNode>, <TextNode: '"],\n "description": "'>, <IfNode>, <TextNode: '",\n "sku": "'>, <Variable Node: product.id>, <TextNode: '",\n "mpn": "'>, <Variable Node: product.id>, <TextNode: '",\n "url":"https://www.s'>, <django.template.defaulttags.URLNode object at 0x7f5fc0438e80>, <TextNode: '",\n "brand": {\n "@typ'>, <Variable Node: product.manufactured_by>, <TextNode: '"\n }\n},\n{\n "@context"'>, <django.template.defaulttags.URLNode object at 0x7f5fc0365438>, <TextNode: '",\n "primaryImageOfPag'>, <IfNode>, <TextNode: '",\n "name": "'>, <Variable Node: product.name>, <TextNode: '"\n },\n "name": "'>, <IfNode>, <TextNode: '",\n "description": "'>, <IfNode>, <TextNode: '",\n "publisher": {\n '>, <django.template.defaulttags.URLNode object at 0x7f5fc06c1f28>, <TextNode: '",\n "name": "'>, <Variable Node: cat.name>, <TextNode: '"\n }\n },\n {\n "@typ'>, <django.template.defaulttags.URLNode object at 0x7f5fc0271128>, <TextNode: '",\n "name": "'>, <Variable Node: product.formattedName>, <TextNode: '"\n }\n }\n ]\n},\n{\n '>, <Variable Node: product.formattedName>, <TextNode: '",\n "description": "'>, <IfNode>, <TextNode: '",\n "url":"https://www'>, <django.template.defaulttags.URLNode object at 0x7f5fc06c1b70>, <TextNode: '",\n "primaryImageOfPag'>, <IfNode>, <TextNode: '",\n "name": "'>, <Variable Node: product.name>, <TextNode: '"\n },\n "about": {\n '>, <Variable Node: product.formattedName>, <TextNode: '"\n }\n},\n{\n "@contex'>, <IfNode>, <TextNode: '\n'>] |
/usr/local/lib/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)…
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'product': <Product: AVASTINE(62)>, 'cat': None, 'related_product': <QuerySet [<Product: ANASTRONAT(59)>, <Product: AVASTINE(62)>]>, 'aka_products': None, 'most_viewed': <QuerySet [<Product: Abiraterone Acetate-Xbira(158)>, <Product: Bendamustine-Bendit(30)>, <Product: Bicalutamide-Cassotide(162)>, <Product: Bortezomib-Bortenat(16)>, <Product: Erlonat(6)>, <Product: Everolimus-Evertor(19)>, <Product: Exemestane-Xtane(179)>, <Product: Geftinat(9)>, <Product: Glatiramer Acetate-Glatimer(182)>, <Product: Ledipasvir & Sofosbuvir-Hepcinat LP(185)>, <Product: Lenalidomide-Lenalid(13)>, <Product: Pomalidomide-Pomalid(46)>, <Product: Sofosbuvir & Velpatasvir-Velpanat(26)>, <Product: Sorafenib-Sorafenat(22)>, <Product: Tenofovir-Tenvir(210)>]>, 'faqs': <QuerySet []>}] |
self | <django.template.defaulttags.URLNode object at 0x7f5fc06c1f28> |
/usr/local/lib/python3.6/site-packages/django/template/defaulttags.py
in render
current_app = context.request.resolver_match.namespace
except AttributeError:
current_app = None
# Try to look up the URL. If it fails, raise NoReverseMatch unless the
# {% url ... as var %} construct is used, in which case return nothing.
url = ''
try:
url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app)…
except NoReverseMatch:
if self.asvar is None:
raise
if self.asvar:
context[self.asvar] = url
Variable | Value |
---|---|
NoReverseMatch | <class 'django.urls.exceptions.NoReverseMatch'> |
args | [''] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'product': <Product: AVASTINE(62)>, 'cat': None, 'related_product': <QuerySet [<Product: ANASTRONAT(59)>, <Product: AVASTINE(62)>]>, 'aka_products': None, 'most_viewed': <QuerySet [<Product: Abiraterone Acetate-Xbira(158)>, <Product: Bendamustine-Bendit(30)>, <Product: Bicalutamide-Cassotide(162)>, <Product: Bortezomib-Bortenat(16)>, <Product: Erlonat(6)>, <Product: Everolimus-Evertor(19)>, <Product: Exemestane-Xtane(179)>, <Product: Geftinat(9)>, <Product: Glatiramer Acetate-Glatimer(182)>, <Product: Ledipasvir & Sofosbuvir-Hepcinat LP(185)>, <Product: Lenalidomide-Lenalid(13)>, <Product: Pomalidomide-Pomalid(46)>, <Product: Sofosbuvir & Velpatasvir-Velpanat(26)>, <Product: Sorafenib-Sorafenat(22)>, <Product: Tenofovir-Tenvir(210)>]>, 'faqs': <QuerySet []>}] |
current_app | '' |
kwargs | {} |
reverse | <function reverse at 0x7f5fc2f4bb70> |
self | <django.template.defaulttags.URLNode object at 0x7f5fc06c1f28> |
url | '' |
view_name | 'list_page' |
/usr/local/lib/python3.6/site-packages/django/urls/base.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, tuple(ns_converters.items()))
return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs))…
reverse_lazy = lazy(reverse, str)
def clear_url_caches():
Variable | Value |
---|---|
args | [''] |
current_app | '' |
current_path | None |
kwargs | {} |
ns_converters | {} |
ns_pattern | '' |
parts | ['list_page'] |
path | [] |
prefix | '/' |
resolved_path | [] |
resolver | <URLResolver 'shubhampharma.urls' (None:None) '^/'> |
urlconf | 'shubhampharma.urls' |
view | 'list_page' |
viewname | 'list_page' |
/usr/local/lib/python3.6/site-packages/django/urls/resolvers.py
in _reverse_with_prefix
(lookup_view_s, arg_msg, len(patterns), patterns)
)
else:
msg = (
"Reverse for '%(view)s' not found. '%(view)s' is not "
"a valid view function or pattern name." % {'view': lookup_view_s}
)
raise NoReverseMatch(msg)…
Variable | Value |
---|---|
_prefix | '/' |
arg_msg | "arguments '('',)'" |
args | ('',) |
candidate_pat | '/products/%(slug)s/' |
candidate_subs | {'slug': ''} |
converters | {} |
defaults | {} |
k | 'slug' |
kwargs | {} |
lookup_view | 'list_page' |
lookup_view_s | 'list_page' |
m | None |
msg | ("Reverse for 'list_page' with arguments '('',)' not found. 1 pattern(s) " "tried: ['products/(?P<slug>[\\\\w-]+)/$']") |
n | None |
params | ['slug'] |
pattern | 'products/(?P<slug>[\\w-]+)/$' |
patterns | ['products/(?P<slug>[\\w-]+)/$'] |
possibilities | [([('products/%(slug)s/', ['slug'])], 'products/(?P<slug>[\\w-]+)/$', {}, {})] |
possibility | [('products/%(slug)s/', ['slug'])] |
result | 'products/%(slug)s/' |
self | <URLResolver 'shubhampharma.urls' (None:None) '^/'> |
text_candidate_subs | {'slug': ''} |
v | '' |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CONTENT_LENGTH | '' |
CONTENT_TYPE | 'text/plain' |
DEBIAN_FRONTEND | 'noninteractive' |
DJANGO_SETTINGS_MODULE | 'shubhampharma.settings' |
GATEWAY_INTERFACE | 'CGI/1.1' |
GPG_KEY | '0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D' |
HOME | '/root' |
HOSTNAME | '8e268a7b94a4' |
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'upgrade' |
HTTP_HOST | 'shubhampharma.com' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '10.0.0.2' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_REAL_IP | '10.0.0.2' |
LANG | 'C.UTF-8' |
PATH | '/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' |
PATH_INFO | '/product-detail/avastine/' |
PYTHONUNBUFFERED | '1' |
PYTHON_GET_PIP_SHA256 | 'c3b81e5d06371e135fb3156dc7d8fd6270735088428c4a9a5ec1f342e2024565' |
PYTHON_GET_PIP_URL | 'https://github.com/pypa/get-pip/raw/b60e2320d9e8d02348525bd74e871e466afdf77c/get-pip.py' |
PYTHON_PIP_VERSION | '21.0.1' |
PYTHON_VERSION | '3.6.13' |
QUERY_STRING | '' |
REMOTE_ADDR | '10.0.1.13' |
REMOTE_HOST | '' |
REQUEST_METHOD | 'GET' |
RUN_MAIN | 'true' |
SCRIPT_NAME | '' |
SERVER_NAME | '8e268a7b94a4' |
SERVER_PORT | '8000' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SOFTWARE | 'WSGIServer/0.2' |
TZ | 'Asia/Kolkata' |
asdfasdf | '1' |
wsgi.errors | <_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'> |
wsgi.file_wrapper | '' |
wsgi.input | <django.core.handlers.wsgi.LimitedStream object at 0x7f5fc0767a90> |
wsgi.multiprocess | False |
wsgi.multithread | True |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
shubhampharma.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['shubhampharma.in', 'www.shubhampharma.com', 'shubhampharma.com', '148.72.208.82', 'localhost', 'localhost:8002'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/app' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CKEDITOR_BASEPATH | '/static/ckeditor/ckeditor/' |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SAMESITE | 'Lax' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.mysql', 'HOST': 'mariadb', 'NAME': 'spharma', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'root'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATETIME_FORMAT | 'N j, Y, P' |
DATETIME_INPUT_FORMATS | ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y'] |
DATE_FORMAT | 'N j, Y' |
DATE_INPUT_FORMATS | ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_CONTENT_TYPE | 'text/html' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'smtp.gmail.com' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'shubhamrxtech@gmail.com' |
EMAIL_PORT | 587 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | True |
FILE_CHARSET | 'utf-8' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
FROM_EMAIL | 'shubhamrxtech@gmail.com' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'django.contrib.flatpages', 'ckeditor', 'app'] |
INTERNAL_IPS | [] |
LANGUAGES | [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('hy', 'Armenian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmål'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
LANGUAGE_CODE | 'en-us' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '/app/uploads' |
MEDIA_URL | 'https://ik.imagekit.io/ep43lhzvdu/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
ROOT_URLCONF | 'shubhampharma.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | False |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'root@localhost' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | 'sessionid' |
SESSION_COOKIE_PATH | '/' |
SESSION_COOKIE_SAMESITE | 'Lax' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'shubhampharma.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITE_ID | 1 |
STATICFILES_DIRS | ['/app/assets', 'assets'] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | 'static' |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/app/templates'], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'app.context_processors.instance']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'Asia/Kolkata' |
TO_EMAIL | 'info@shubhampharma.com' |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'shubhampharma.wsgi.application' |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
YEAR_MONTH_FORMAT | 'F Y' |
You're seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard page generated by the handler for this status code.