Reverse for 'podcast_episode' with arguments '('kannada-pusthaka-parichaya', '')' not found. 1 pattern(s) tried: ['podcasts/(?P<slug_podcast>[-a-zA-Z0-9_]+)/(?P<slug_episode>[-a-zA-Z0-9_]+)/$']
Request Method: | GET |
---|---|
Request URL: | https://broadcasts.com/podcast/kannada-pusthaka-parichaya/ |
Django Version: | 3.2 |
Exception Type: | NoReverseMatch |
Exception Value: | Reverse for 'podcast_episode' with arguments '('kannada-pusthaka-parichaya', '')' not found. 1 pattern(s) tried: ['podcasts/(?P<slug_podcast>[-a-zA-Z0-9_]+)/(?P<slug_episode>[-a-zA-Z0-9_]+)/$'] |
Exception Location: | /var/django/radiosdbenv/lib/python3.9/site-packages/django/urls/resolvers.py, line 694, in _reverse_with_prefix |
Python Executable: | /var/django/radiosdbenv/bin/python3 |
Python Version: | 3.9.2 |
Python Path: | ['/var/django/radiosdbenv/radiosdbevo', '/var/django/radiosdbenv/radiosdbevo', '/var/django/radiosdbenv/bin', '/usr/lib/python39.zip', '/usr/lib/python3.9', '/usr/lib/python3.9/lib-dynload', '/var/django/radiosdbenv/lib/python3.9/site-packages'] |
Server time: | Thu, 28 Mar 2024 08:39:24 +0000 |
In template /var/django/radiosdbenv/radiosdbevo/radiosdb/apps/evoradio/templates/base.html
, error at line 0
1 | {% load static %} |
---|---|
2 | |
3 | <!DOCTYPE html> |
4 | <html lang="en"> |
5 | |
6 | <head> |
7 | <meta charset="utf-8"> |
8 | <title>{% block title %}Broadcasts.com{% endblock %}</title> |
9 | |
10 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
/var/django/radiosdbenv/lib/python3.9/site-packages/django/core/handlers/exception.py
, line 47, in inner
response = await sync_to_async(response_for_exception, thread_sensitive=False)(request, exc)
return response
return inner
else:
@wraps(get_response)
def inner(request):
try:
response = get_response(request)…
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | NoReverseMatch("Reverse for 'podcast_episode' with arguments '('kannada-pusthaka-parichaya', '')' not found. 1 pattern(s) tried: ['podcasts/(?P<slug_podcast>[-a-zA-Z0-9_]+)/(?P<slug_episode>[-a-zA-Z0-9_]+)/$']") |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f1841430c10>> |
request | <WSGIRequest: GET '/podcast/kannada-pusthaka-parichaya/'> |
/var/django/radiosdbenv/lib/python3.9/site-packages/django/core/handlers/base.py
, line 181, in _get_response
if response is None:
wrapped_callback = self.make_view_atomic(callback)
# If it is an asynchronous view, run it in a subthread.
if asyncio.iscoroutinefunction(wrapped_callback):
wrapped_callback = async_to_sync(wrapped_callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)…
except Exception as e:
response = self.process_exception_by_middleware(e, request)
if response is None:
raise
# Complain if the view returned None (a common error).
Variable | Value |
---|---|
callback | <function podcast at 0x7f1841025dc0> |
callback_args | () |
callback_kwargs | {'slug': 'kannada-pusthaka-parichaya'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7f1841383a30>> |
request | <WSGIRequest: GET '/podcast/kannada-pusthaka-parichaya/'> |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f1841430c10> |
wrapped_callback | <function podcast at 0x7f1841025dc0> |
/var/django/radiosdbenv/radiosdbevo/radiosdb/apps/podcasts/views.py
, line 116, in podcast
if category is not None and category.is_top:
subcategs = get_category_children(category)
if not subcategs:
othercategs = get_category_other(category)
return render(request, 'podcast.html', {…
'categ': category,
'podcast': podcast,
'episodes': episodes,
'subcategs': subcategs,
'othercategs': othercategs,
'crumbs': crumbs,
Variable | Value |
---|---|
category | <AudioCategory: Arts> |
crumbs | [{'name': 'Arts', 'slug': 'arts'}] |
episodes | <QuerySet [<PodcastEpisode: PodcastEpisode object (37672648)>, <PodcastEpisode: PodcastEpisode object (37672649)>, <PodcastEpisode: PodcastEpisode object (37672650)>, <PodcastEpisode: PodcastEpisode object (37672651)>, <PodcastEpisode: PodcastEpisode object (37672652)>, <PodcastEpisode: PodcastEpisode object (37672653)>, <PodcastEpisode: PodcastEpisode object (37672654)>, <PodcastEpisode: PodcastEpisode object (37672655)>, <PodcastEpisode: PodcastEpisode object (37672656)>, <PodcastEpisode: PodcastEpisode object (37672657)>, <PodcastEpisode: PodcastEpisode object (37672658)>, <PodcastEpisode: PodcastEpisode object (37672659)>, <PodcastEpisode: PodcastEpisode object (37672660)>, <PodcastEpisode: PodcastEpisode object (37672661)>, <PodcastEpisode: PodcastEpisode object (37672662)>, <PodcastEpisode: PodcastEpisode object (37672663)>, <PodcastEpisode: PodcastEpisode object (37672664)>, <PodcastEpisode: PodcastEpisode object (37672665)>, <PodcastEpisode: PodcastEpisode object (37672666)>, <PodcastEpisode: PodcastEpisode object (37672667)>, '...(remaining elements truncated)...']> |
othercategs | [] |
podcast | <Podcast: Kannada Pusthaka Parichaya | ಕನ್ನಡ ಪುಸ್ತಕ ಪರಿಚಯ (https://anchor.fm/s/2b6acd74/podcast/rss)> |
request | <WSGIRequest: GET '/podcast/kannada-pusthaka-parichaya/'> |
slug | 'kannada-pusthaka-parichaya' |
subcategs | <QuerySet [<AudioCategory: Design>, <AudioCategory: Food>, <AudioCategory: Books>, <AudioCategory: Performing Arts>, <AudioCategory: Fashion & Beauty>, <AudioCategory: Visual Arts>]> |
/var/django/radiosdbenv/lib/python3.9/site-packages/django/shortcuts.py
, line 19, 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 | {'categ': <AudioCategory: Arts>, 'crumbs': [{'name': 'Arts', 'slug': 'arts'}], 'episodes': <QuerySet [<PodcastEpisode: PodcastEpisode object (37672648)>, <PodcastEpisode: PodcastEpisode object (37672649)>, <PodcastEpisode: PodcastEpisode object (37672650)>, <PodcastEpisode: PodcastEpisode object (37672651)>, <PodcastEpisode: PodcastEpisode object (37672652)>, <PodcastEpisode: PodcastEpisode object (37672653)>, <PodcastEpisode: PodcastEpisode object (37672654)>, <PodcastEpisode: PodcastEpisode object (37672655)>, <PodcastEpisode: PodcastEpisode object (37672656)>, <PodcastEpisode: PodcastEpisode object (37672657)>, <PodcastEpisode: PodcastEpisode object (37672658)>, <PodcastEpisode: PodcastEpisode object (37672659)>, <PodcastEpisode: PodcastEpisode object (37672660)>, <PodcastEpisode: PodcastEpisode object (37672661)>, <PodcastEpisode: PodcastEpisode object (37672662)>, <PodcastEpisode: PodcastEpisode object (37672663)>, <PodcastEpisode: PodcastEpisode object (37672664)>, <PodcastEpisode: PodcastEpisode object (37672665)>, <PodcastEpisode: PodcastEpisode object (37672666)>, <PodcastEpisode: PodcastEpisode object (37672667)>, '...(remaining elements truncated)...']>, 'othercategs': [], 'podcast': <Podcast: Kannada Pusthaka Parichaya | ಕನ್ನಡ ಪುಸ್ತಕ ಪರಿಚಯ (https://anchor.fm/s/2b6acd74/podcast/rss)>, 'subcategs': <QuerySet [<AudioCategory: Design>, <AudioCategory: Food>, <AudioCategory: Books>, <AudioCategory: Performing Arts>, <AudioCategory: Fashion & Beauty>, <AudioCategory: Visual Arts>]>} |
request | <WSGIRequest: GET '/podcast/kannada-pusthaka-parichaya/'> |
status | None |
template_name | 'podcast.html' |
using | None |
/var/django/radiosdbenv/lib/python3.9/site-packages/django/template/loader.py
, line 62, in render_to_string
template_name may be a string or a list of strings.
"""
if isinstance(template_name, (list, tuple)):
template = select_template(template_name, using=using)
else:
template = get_template(template_name, using=using)
return template.render(context, request)…
def _engine_list(using=None):
return engines.all() if using is None else [engines[using]]
Variable | Value |
---|---|
context | {'categ': <AudioCategory: Arts>, 'crumbs': [{'name': 'Arts', 'slug': 'arts'}], 'episodes': <QuerySet [<PodcastEpisode: PodcastEpisode object (37672648)>, <PodcastEpisode: PodcastEpisode object (37672649)>, <PodcastEpisode: PodcastEpisode object (37672650)>, <PodcastEpisode: PodcastEpisode object (37672651)>, <PodcastEpisode: PodcastEpisode object (37672652)>, <PodcastEpisode: PodcastEpisode object (37672653)>, <PodcastEpisode: PodcastEpisode object (37672654)>, <PodcastEpisode: PodcastEpisode object (37672655)>, <PodcastEpisode: PodcastEpisode object (37672656)>, <PodcastEpisode: PodcastEpisode object (37672657)>, <PodcastEpisode: PodcastEpisode object (37672658)>, <PodcastEpisode: PodcastEpisode object (37672659)>, <PodcastEpisode: PodcastEpisode object (37672660)>, <PodcastEpisode: PodcastEpisode object (37672661)>, <PodcastEpisode: PodcastEpisode object (37672662)>, <PodcastEpisode: PodcastEpisode object (37672663)>, <PodcastEpisode: PodcastEpisode object (37672664)>, <PodcastEpisode: PodcastEpisode object (37672665)>, <PodcastEpisode: PodcastEpisode object (37672666)>, <PodcastEpisode: PodcastEpisode object (37672667)>, '...(remaining elements truncated)...']>, 'othercategs': [], 'podcast': <Podcast: Kannada Pusthaka Parichaya | ಕನ್ನಡ ಪುಸ್ತಕ ಪರಿಚಯ (https://anchor.fm/s/2b6acd74/podcast/rss)>, 'subcategs': <QuerySet [<AudioCategory: Design>, <AudioCategory: Food>, <AudioCategory: Books>, <AudioCategory: Performing Arts>, <AudioCategory: Fashion & Beauty>, <AudioCategory: Visual Arts>]>} |
request | <WSGIRequest: GET '/podcast/kannada-pusthaka-parichaya/'> |
template | <django.template.backends.django.Template object at 0x7f1840404430> |
template_name | 'podcast.html' |
using | None |
/var/django/radiosdbenv/lib/python3.9/site-packages/django/template/backends/django.py
, line 61, 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}, {}, {}, {'categ': <AudioCategory: Arts>, 'podcast': <Podcast: Kannada Pusthaka Parichaya | ಕನ್ನಡ ಪುಸ್ತಕ ಪರಿಚಯ (https://anchor.fm/s/2b6acd74/podcast/rss)>, 'episodes': <QuerySet [<PodcastEpisode: PodcastEpisode object (37672648)>, <PodcastEpisode: PodcastEpisode object (37672649)>, <PodcastEpisode: PodcastEpisode object (37672650)>, <PodcastEpisode: PodcastEpisode object (37672651)>, <PodcastEpisode: PodcastEpisode object (37672652)>, <PodcastEpisode: PodcastEpisode object (37672653)>, <PodcastEpisode: PodcastEpisode object (37672654)>, <PodcastEpisode: PodcastEpisode object (37672655)>, <PodcastEpisode: PodcastEpisode object (37672656)>, <PodcastEpisode: PodcastEpisode object (37672657)>, <PodcastEpisode: PodcastEpisode object (37672658)>, <PodcastEpisode: PodcastEpisode object (37672659)>, <PodcastEpisode: PodcastEpisode object (37672660)>, <PodcastEpisode: PodcastEpisode object (37672661)>, <PodcastEpisode: PodcastEpisode object (37672662)>, <PodcastEpisode: PodcastEpisode object (37672663)>, <PodcastEpisode: PodcastEpisode object (37672664)>, <PodcastEpisode: PodcastEpisode object (37672665)>, <PodcastEpisode: PodcastEpisode object (37672666)>, <PodcastEpisode: PodcastEpisode object (37672667)>, '...(remaining elements truncated)...']>, 'subcategs': <QuerySet [<AudioCategory: Design>, <AudioCategory: Food>, <AudioCategory: Books>, <AudioCategory: Performing Arts>, <AudioCategory: Fashion & Beauty>, <AudioCategory: Visual Arts>]>, 'othercategs': [], 'crumbs': [{'name': 'Arts', 'slug': 'arts'}]}] |
request | <WSGIRequest: GET '/podcast/kannada-pusthaka-parichaya/'> |
self | <django.template.backends.django.Template object at 0x7f1840404430> |
/var/django/radiosdbenv/lib/python3.9/site-packages/django/template/base.py
, line 170, 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}, {}, {}, {'categ': <AudioCategory: Arts>, 'podcast': <Podcast: Kannada Pusthaka Parichaya | ಕನ್ನಡ ಪುಸ್ತಕ ಪರಿಚಯ (https://anchor.fm/s/2b6acd74/podcast/rss)>, 'episodes': <QuerySet [<PodcastEpisode: PodcastEpisode object (37672648)>, <PodcastEpisode: PodcastEpisode object (37672649)>, <PodcastEpisode: PodcastEpisode object (37672650)>, <PodcastEpisode: PodcastEpisode object (37672651)>, <PodcastEpisode: PodcastEpisode object (37672652)>, <PodcastEpisode: PodcastEpisode object (37672653)>, <PodcastEpisode: PodcastEpisode object (37672654)>, <PodcastEpisode: PodcastEpisode object (37672655)>, <PodcastEpisode: PodcastEpisode object (37672656)>, <PodcastEpisode: PodcastEpisode object (37672657)>, <PodcastEpisode: PodcastEpisode object (37672658)>, <PodcastEpisode: PodcastEpisode object (37672659)>, <PodcastEpisode: PodcastEpisode object (37672660)>, <PodcastEpisode: PodcastEpisode object (37672661)>, <PodcastEpisode: PodcastEpisode object (37672662)>, <PodcastEpisode: PodcastEpisode object (37672663)>, <PodcastEpisode: PodcastEpisode object (37672664)>, <PodcastEpisode: PodcastEpisode object (37672665)>, <PodcastEpisode: PodcastEpisode object (37672666)>, <PodcastEpisode: PodcastEpisode object (37672667)>, '...(remaining elements truncated)...']>, 'subcategs': <QuerySet [<AudioCategory: Design>, <AudioCategory: Food>, <AudioCategory: Books>, <AudioCategory: Performing Arts>, <AudioCategory: Fashion & Beauty>, <AudioCategory: Visual Arts>]>, 'othercategs': [], 'crumbs': [{'name': 'Arts', 'slug': 'arts'}]}] |
self | <django.template.base.Template object at 0x7f18404046d0> |
/var/django/radiosdbenv/lib/python3.9/site-packages/django/template/base.py
, line 162, 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}, {}, {}, {'categ': <AudioCategory: Arts>, 'podcast': <Podcast: Kannada Pusthaka Parichaya | ಕನ್ನಡ ಪುಸ್ತಕ ಪರಿಚಯ (https://anchor.fm/s/2b6acd74/podcast/rss)>, 'episodes': <QuerySet [<PodcastEpisode: PodcastEpisode object (37672648)>, <PodcastEpisode: PodcastEpisode object (37672649)>, <PodcastEpisode: PodcastEpisode object (37672650)>, <PodcastEpisode: PodcastEpisode object (37672651)>, <PodcastEpisode: PodcastEpisode object (37672652)>, <PodcastEpisode: PodcastEpisode object (37672653)>, <PodcastEpisode: PodcastEpisode object (37672654)>, <PodcastEpisode: PodcastEpisode object (37672655)>, <PodcastEpisode: PodcastEpisode object (37672656)>, <PodcastEpisode: PodcastEpisode object (37672657)>, <PodcastEpisode: PodcastEpisode object (37672658)>, <PodcastEpisode: PodcastEpisode object (37672659)>, <PodcastEpisode: PodcastEpisode object (37672660)>, <PodcastEpisode: PodcastEpisode object (37672661)>, <PodcastEpisode: PodcastEpisode object (37672662)>, <PodcastEpisode: PodcastEpisode object (37672663)>, <PodcastEpisode: PodcastEpisode object (37672664)>, <PodcastEpisode: PodcastEpisode object (37672665)>, <PodcastEpisode: PodcastEpisode object (37672666)>, <PodcastEpisode: PodcastEpisode object (37672667)>, '...(remaining elements truncated)...']>, 'subcategs': <QuerySet [<AudioCategory: Design>, <AudioCategory: Food>, <AudioCategory: Books>, <AudioCategory: Performing Arts>, <AudioCategory: Fashion & Beauty>, <AudioCategory: Visual Arts>]>, 'othercategs': [], 'crumbs': [{'name': 'Arts', 'slug': 'arts'}]}] |
self | <django.template.base.Template object at 0x7f18404046d0> |
/var/django/radiosdbenv/lib/python3.9/site-packages/django/template/base.py
, line 938, 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}, {}, {}, {'categ': <AudioCategory: Arts>, 'podcast': <Podcast: Kannada Pusthaka Parichaya | ಕನ್ನಡ ಪುಸ್ತಕ ಪರಿಚಯ (https://anchor.fm/s/2b6acd74/podcast/rss)>, 'episodes': <QuerySet [<PodcastEpisode: PodcastEpisode object (37672648)>, <PodcastEpisode: PodcastEpisode object (37672649)>, <PodcastEpisode: PodcastEpisode object (37672650)>, <PodcastEpisode: PodcastEpisode object (37672651)>, <PodcastEpisode: PodcastEpisode object (37672652)>, <PodcastEpisode: PodcastEpisode object (37672653)>, <PodcastEpisode: PodcastEpisode object (37672654)>, <PodcastEpisode: PodcastEpisode object (37672655)>, <PodcastEpisode: PodcastEpisode object (37672656)>, <PodcastEpisode: PodcastEpisode object (37672657)>, <PodcastEpisode: PodcastEpisode object (37672658)>, <PodcastEpisode: PodcastEpisode object (37672659)>, <PodcastEpisode: PodcastEpisode object (37672660)>, <PodcastEpisode: PodcastEpisode object (37672661)>, <PodcastEpisode: PodcastEpisode object (37672662)>, <PodcastEpisode: PodcastEpisode object (37672663)>, <PodcastEpisode: PodcastEpisode object (37672664)>, <PodcastEpisode: PodcastEpisode object (37672665)>, <PodcastEpisode: PodcastEpisode object (37672666)>, <PodcastEpisode: PodcastEpisode object (37672667)>, '...(remaining elements truncated)...']>, 'subcategs': <QuerySet [<AudioCategory: Design>, <AudioCategory: Food>, <AudioCategory: Books>, <AudioCategory: Performing Arts>, <AudioCategory: Fashion & Beauty>, <AudioCategory: Visual Arts>]>, 'othercategs': [], 'crumbs': [{'name': 'Arts', 'slug': 'arts'}]}] |
node | <ExtendsNode: extends 'base.html'> |
self | [<ExtendsNode: extends 'base.html'>] |
/var/django/radiosdbenv/lib/python3.9/site-packages/django/template/base.py
, line 905, 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}, {}, {}, {'categ': <AudioCategory: Arts>, 'podcast': <Podcast: Kannada Pusthaka Parichaya | ಕನ್ನಡ ಪುಸ್ತಕ ಪರಿಚಯ (https://anchor.fm/s/2b6acd74/podcast/rss)>, 'episodes': <QuerySet [<PodcastEpisode: PodcastEpisode object (37672648)>, <PodcastEpisode: PodcastEpisode object (37672649)>, <PodcastEpisode: PodcastEpisode object (37672650)>, <PodcastEpisode: PodcastEpisode object (37672651)>, <PodcastEpisode: PodcastEpisode object (37672652)>, <PodcastEpisode: PodcastEpisode object (37672653)>, <PodcastEpisode: PodcastEpisode object (37672654)>, <PodcastEpisode: PodcastEpisode object (37672655)>, <PodcastEpisode: PodcastEpisode object (37672656)>, <PodcastEpisode: PodcastEpisode object (37672657)>, <PodcastEpisode: PodcastEpisode object (37672658)>, <PodcastEpisode: PodcastEpisode object (37672659)>, <PodcastEpisode: PodcastEpisode object (37672660)>, <PodcastEpisode: PodcastEpisode object (37672661)>, <PodcastEpisode: PodcastEpisode object (37672662)>, <PodcastEpisode: PodcastEpisode object (37672663)>, <PodcastEpisode: PodcastEpisode object (37672664)>, <PodcastEpisode: PodcastEpisode object (37672665)>, <PodcastEpisode: PodcastEpisode object (37672666)>, <PodcastEpisode: PodcastEpisode object (37672667)>, '...(remaining elements truncated)...']>, 'subcategs': <QuerySet [<AudioCategory: Design>, <AudioCategory: Food>, <AudioCategory: Books>, <AudioCategory: Performing Arts>, <AudioCategory: Fashion & Beauty>, <AudioCategory: Visual Arts>]>, 'othercategs': [], 'crumbs': [{'name': 'Arts', 'slug': 'arts'}]}] |
self | <ExtendsNode: extends 'base.html'> |
/var/django/radiosdbenv/lib/python3.9/site-packages/django/template/loader_tags.py
, line 150, 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 0x7f18401c3040> |
blocks | {'content': <Block Node: content. Contents: [<TextNode: '\n\n'>]>, 'css': <Block Node: css. Contents: [<TextNode: '\t\n\n\t\t'>]>, 'extra_script': <Block Node: extra_script. Contents: [<TextNode: '\n\n'>]>, 'footer': <Block Node: footer. Contents: [<TextNode: '\n <!-- Footer\n ===='>, <django.templatetags.static.StaticNode object at 0x7f1840316700>, <TextNode: '"></script>\n <script src'>]>, 'nav': <Block Node: nav. Contents: [<TextNode: ' '>]>, 'title': <Block Node: title. Contents: [<TextNode: 'Broadcasts.com'>]>} |
compiled_parent | <django.template.base.Template object at 0x7f18401e0100> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'categ': <AudioCategory: Arts>, 'podcast': <Podcast: Kannada Pusthaka Parichaya | ಕನ್ನಡ ಪುಸ್ತಕ ಪರಿಚಯ (https://anchor.fm/s/2b6acd74/podcast/rss)>, 'episodes': <QuerySet [<PodcastEpisode: PodcastEpisode object (37672648)>, <PodcastEpisode: PodcastEpisode object (37672649)>, <PodcastEpisode: PodcastEpisode object (37672650)>, <PodcastEpisode: PodcastEpisode object (37672651)>, <PodcastEpisode: PodcastEpisode object (37672652)>, <PodcastEpisode: PodcastEpisode object (37672653)>, <PodcastEpisode: PodcastEpisode object (37672654)>, <PodcastEpisode: PodcastEpisode object (37672655)>, <PodcastEpisode: PodcastEpisode object (37672656)>, <PodcastEpisode: PodcastEpisode object (37672657)>, <PodcastEpisode: PodcastEpisode object (37672658)>, <PodcastEpisode: PodcastEpisode object (37672659)>, <PodcastEpisode: PodcastEpisode object (37672660)>, <PodcastEpisode: PodcastEpisode object (37672661)>, <PodcastEpisode: PodcastEpisode object (37672662)>, <PodcastEpisode: PodcastEpisode object (37672663)>, <PodcastEpisode: PodcastEpisode object (37672664)>, <PodcastEpisode: PodcastEpisode object (37672665)>, <PodcastEpisode: PodcastEpisode object (37672666)>, <PodcastEpisode: PodcastEpisode object (37672667)>, '...(remaining elements truncated)...']>, 'subcategs': <QuerySet [<AudioCategory: Design>, <AudioCategory: Food>, <AudioCategory: Books>, <AudioCategory: Performing Arts>, <AudioCategory: Fashion & Beauty>, <AudioCategory: Visual Arts>]>, 'othercategs': [], 'crumbs': [{'name': 'Arts', 'slug': 'arts'}]}] |
node | <django.template.defaulttags.LoadNode object at 0x7f1840391760> |
self | <ExtendsNode: extends 'base.html'> |
/var/django/radiosdbenv/lib/python3.9/site-packages/django/template/base.py
, line 162, 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}, {}, {}, {'categ': <AudioCategory: Arts>, 'podcast': <Podcast: Kannada Pusthaka Parichaya | ಕನ್ನಡ ಪುಸ್ತಕ ಪರಿಚಯ (https://anchor.fm/s/2b6acd74/podcast/rss)>, 'episodes': <QuerySet [<PodcastEpisode: PodcastEpisode object (37672648)>, <PodcastEpisode: PodcastEpisode object (37672649)>, <PodcastEpisode: PodcastEpisode object (37672650)>, <PodcastEpisode: PodcastEpisode object (37672651)>, <PodcastEpisode: PodcastEpisode object (37672652)>, <PodcastEpisode: PodcastEpisode object (37672653)>, <PodcastEpisode: PodcastEpisode object (37672654)>, <PodcastEpisode: PodcastEpisode object (37672655)>, <PodcastEpisode: PodcastEpisode object (37672656)>, <PodcastEpisode: PodcastEpisode object (37672657)>, <PodcastEpisode: PodcastEpisode object (37672658)>, <PodcastEpisode: PodcastEpisode object (37672659)>, <PodcastEpisode: PodcastEpisode object (37672660)>, <PodcastEpisode: PodcastEpisode object (37672661)>, <PodcastEpisode: PodcastEpisode object (37672662)>, <PodcastEpisode: PodcastEpisode object (37672663)>, <PodcastEpisode: PodcastEpisode object (37672664)>, <PodcastEpisode: PodcastEpisode object (37672665)>, <PodcastEpisode: PodcastEpisode object (37672666)>, <PodcastEpisode: PodcastEpisode object (37672667)>, '...(remaining elements truncated)...']>, 'subcategs': <QuerySet [<AudioCategory: Design>, <AudioCategory: Food>, <AudioCategory: Books>, <AudioCategory: Performing Arts>, <AudioCategory: Fashion & Beauty>, <AudioCategory: Visual Arts>]>, 'othercategs': [], 'crumbs': [{'name': 'Arts', 'slug': 'arts'}]}] |
self | <django.template.base.Template object at 0x7f18401e0100> |
/var/django/radiosdbenv/lib/python3.9/site-packages/django/template/base.py
, line 938, 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 | ('" title="Top Audio Genres">Radio Genres</a>\n' ' <ul class="dropdown-menu">\n' ' <li><a ' 'href="/genres/pop/">Pop</a></li>\n' ' <li><a ' 'href="/genres/jazz/">Jazz</a></li>\n' ' <li><a ' 'href="/genres/folk/">Folk</a></li>\n' ' <li><a ' 'href="/genres/rock/">Rock</a></li>\n' ' </ul> \n' ' \n' ' ' '</li> \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n' ' </ul>\n' ' </nav>\n' ' </div>\n' ' </div>\n' ' <!-- end menu -->\n' ' </div>\n' '\n' ' </div>\n' ' </div>\n' ' </div>\n' ' </div>\n' '</header>\n' '\n' '<div class="header-space"></div>\n' '\n' '\t\t\n') |
bits | ['', '\n' '\n' '<!DOCTYPE html>\n' '<html lang="en">\n' '\n' '<head>\n' ' <meta charset="utf-8">\n' ' <title>', 'Broadcast.com - browse "Arts" podcasts', '</title>\n' '\n' ' <meta name="viewport" content="width=device-width, initial-scale=1.0" ' '/>\n' ' <meta name="description" content="Discover the new world of radio ' 'stations and podcasts" />\n' '\t\t\n' ' <meta name="keywords" content="Discover, radio, podcasts, Video, latest, ' 'headlines, Newspaper, Investigative journalism, journalist, media, Global ' 'News, Archives, Business, Politics, Sports, Music, Entertainment, Film, ' 'Photos, International Headlines, Radio Sport, Live Sport, fm Radio ' 'Worldwide, WN radio, Current Events, Industry, Finance, Economy, Markets, ' 'Money, Oil, Energy, Shipping, Offshore, Broadcasts, Audio, Global Issues, ' 'Farming, Health, Knowledge, Cities, Technology, Languages, Environment, War, ' 'Reports, Geography, Breaking Headlines, podcasts Archive" />\n' '\n' ' <meta name="author" content="ula@wn.com" />\n' '\t\t\n' ' <!-- styles -->\t\t\n' '\n' ' <link href="', '/static/assets/css/bootstrap.css', '" rel="stylesheet" />\n <link href="', '/static/assets/css/bootstrap-responsive.css', '" rel="stylesheet" />\n <link href="', '/static/assets/css/docs.css', '" rel="stylesheet" />\n\n <link href="', '/static/assets/css/font-awesome.css', '" rel="stylesheet" />\n\n <link href="', '/static/assets/css/animate.css', '" rel="stylesheet" />\n' ' <link ' 'href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,400,600,700" ' 'rel="stylesheet" />\n' '\t\t\n' '\t\t', '\t\n\n\t\t', '\t\n\t\t\n <link href="', '/static/assets/css/style04.css', '" rel="stylesheet" />\n <link href="', '/static/assets/color/default.css', '" rel="stylesheet" />\n' '\n' ' <!-- fav and touch icons -->\n' ' <link rel="shortcut icon" ' 'href="https://cdn.wn.com/st/favicon-20131209.ico">\n' '\t\n' '\t <link rel="stylesheet" href="//cdn.wn.com/or/assets/mw.css" ' 'nopack="1"/>\n' ' \t<style>\n' '\t\t\t.mwcss{ font-size: 15px !important; padding: 20px !important; ' 'line-height: 1.8em !important; color: #222222; }\n' '\t\t\t.mwcss a { color: #0645ad !important; }\n' ' \t.mwcss .toc td { padding: 10px !important; }\n' '\t\t\t.mwcss .navbox{ display: none; }\n' ' </style>\n' '\n' '\n' '\n' '</head>\n' '\n' '<body>\n' '\n' '<header>\n' '\n' ' <!-- Navbar\n' ' ================================================== -->\n' ' <div class="cbp-af-header">\n' ' <div class=" cbp-af-inner">\n' ' <div class="container">\n' ' <div class="row">\n' '\n' ' <div class="span6">\n' ' <!-- logo -->\n' ' <div class="logo">\n' ' ' '<h1>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a ' 'href="https://broadcasts.com/">BROADCASTS.com</a>\n' ' </h1>\n' ' </div>\n' ' <!-- end logo -->\n' ' </div>\n' '\n' ' <div class="span6">\n' ' <!-- top menu -->\n' ' <div class="navbar">\n' ' <div class="navbar-inner">\n' ' <nav>\n' ' <ul class="nav topnav">\n' ' <li>\n' ' <a class="home" ' 'href="/">Home</a>\n' ' </li>\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t', ' \n' ' ', '\n' ' <li>\n' ' <a ' 'href="/podcasts/fiction/">Podcasts</a>\n' ' </li>\n' ' <li>\n'… <trimmed 5554 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'categ': <AudioCategory: Arts>, 'podcast': <Podcast: Kannada Pusthaka Parichaya | ಕನ್ನಡ ಪುಸ್ತಕ ಪರಿಚಯ (https://anchor.fm/s/2b6acd74/podcast/rss)>, 'episodes': <QuerySet [<PodcastEpisode: PodcastEpisode object (37672648)>, <PodcastEpisode: PodcastEpisode object (37672649)>, <PodcastEpisode: PodcastEpisode object (37672650)>, <PodcastEpisode: PodcastEpisode object (37672651)>, <PodcastEpisode: PodcastEpisode object (37672652)>, <PodcastEpisode: PodcastEpisode object (37672653)>, <PodcastEpisode: PodcastEpisode object (37672654)>, <PodcastEpisode: PodcastEpisode object (37672655)>, <PodcastEpisode: PodcastEpisode object (37672656)>, <PodcastEpisode: PodcastEpisode object (37672657)>, <PodcastEpisode: PodcastEpisode object (37672658)>, <PodcastEpisode: PodcastEpisode object (37672659)>, <PodcastEpisode: PodcastEpisode object (37672660)>, <PodcastEpisode: PodcastEpisode object (37672661)>, <PodcastEpisode: PodcastEpisode object (37672662)>, <PodcastEpisode: PodcastEpisode object (37672663)>, <PodcastEpisode: PodcastEpisode object (37672664)>, <PodcastEpisode: PodcastEpisode object (37672665)>, <PodcastEpisode: PodcastEpisode object (37672666)>, <PodcastEpisode: PodcastEpisode object (37672667)>, '...(remaining elements truncated)...']>, 'subcategs': <QuerySet [<AudioCategory: Design>, <AudioCategory: Food>, <AudioCategory: Books>, <AudioCategory: Performing Arts>, <AudioCategory: Fashion & Beauty>, <AudioCategory: Visual Arts>]>, 'othercategs': [], 'crumbs': [{'name': 'Arts', 'slug': 'arts'}]}] |
node | <Block Node: content. Contents: [<TextNode: '\n\n'>]> |
self | [<django.template.defaulttags.LoadNode object at 0x7f1840391760>, <TextNode: '\n\n<!DOCTYPE html>\n<html l'>, <Block Node: title. Contents: [<TextNode: 'Broadcasts.com'>]>, <TextNode: '</title>\n\n <meta name='>, <django.templatetags.static.StaticNode object at 0x7f18403919a0>, <TextNode: '" rel="stylesheet" />\n '>, <django.templatetags.static.StaticNode object at 0x7f1840391ac0>, <TextNode: '" rel="stylesheet" />\n '>, <django.templatetags.static.StaticNode object at 0x7f1840391c10>, <TextNode: '" rel="stylesheet" />\n\n '>, <django.templatetags.static.StaticNode object at 0x7f1840391d30>, <TextNode: '" rel="stylesheet" />\n\n '>, <django.templatetags.static.StaticNode object at 0x7f1840391e50>, <TextNode: '" rel="stylesheet" />\n '>, <Block Node: css. Contents: [<TextNode: '\t\n\n\t\t'>]>, <TextNode: '\t\n\t\t\n <link href="'>, <django.templatetags.static.StaticNode object at 0x7f18403160a0>, <TextNode: '" rel="stylesheet" />\n '>, <django.templatetags.static.StaticNode object at 0x7f18403161c0>, <TextNode: '" rel="stylesheet" />\n\n '>, <Block Node: nav. Contents: [<TextNode: ' '>]>, <TextNode: '\n '>, <django.template.defaulttags.URLNode object at 0x7f18403163d0>, <TextNode: '">Audiobooks</a>\n '>, <django.template.defaulttags.URLNode object at 0x7f1840316460>, <TextNode: '" title="Top Audio Genres'>, <Block Node: content. Contents: [<TextNode: '\n\n'>]>, <TextNode: '\n\n'>, <Block Node: footer. Contents: [<TextNode: '\n <!-- Footer\n ===='>, <django.templatetags.static.StaticNode object at 0x7f1840316700>, <TextNode: '"></script>\n <script src'>]>, <TextNode: '\n\n'>, <Block Node: extra_script. Contents: [<TextNode: '\n\n'>]>, <TextNode: '\n</body>\n\n</html>\n'>] |
/var/django/radiosdbenv/lib/python3.9/site-packages/django/template/base.py
, line 905, 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}, {}, {}, {'categ': <AudioCategory: Arts>, 'podcast': <Podcast: Kannada Pusthaka Parichaya | ಕನ್ನಡ ಪುಸ್ತಕ ಪರಿಚಯ (https://anchor.fm/s/2b6acd74/podcast/rss)>, 'episodes': <QuerySet [<PodcastEpisode: PodcastEpisode object (37672648)>, <PodcastEpisode: PodcastEpisode object (37672649)>, <PodcastEpisode: PodcastEpisode object (37672650)>, <PodcastEpisode: PodcastEpisode object (37672651)>, <PodcastEpisode: PodcastEpisode object (37672652)>, <PodcastEpisode: PodcastEpisode object (37672653)>, <PodcastEpisode: PodcastEpisode object (37672654)>, <PodcastEpisode: PodcastEpisode object (37672655)>, <PodcastEpisode: PodcastEpisode object (37672656)>, <PodcastEpisode: PodcastEpisode object (37672657)>, <PodcastEpisode: PodcastEpisode object (37672658)>, <PodcastEpisode: PodcastEpisode object (37672659)>, <PodcastEpisode: PodcastEpisode object (37672660)>, <PodcastEpisode: PodcastEpisode object (37672661)>, <PodcastEpisode: PodcastEpisode object (37672662)>, <PodcastEpisode: PodcastEpisode object (37672663)>, <PodcastEpisode: PodcastEpisode object (37672664)>, <PodcastEpisode: PodcastEpisode object (37672665)>, <PodcastEpisode: PodcastEpisode object (37672666)>, <PodcastEpisode: PodcastEpisode object (37672667)>, '...(remaining elements truncated)...']>, 'subcategs': <QuerySet [<AudioCategory: Design>, <AudioCategory: Food>, <AudioCategory: Books>, <AudioCategory: Performing Arts>, <AudioCategory: Fashion & Beauty>, <AudioCategory: Visual Arts>]>, 'othercategs': [], 'crumbs': [{'name': 'Arts', 'slug': 'arts'}]}] |
self | <Block Node: content. Contents: [<TextNode: '\n\n'>]> |
/var/django/radiosdbenv/lib/python3.9/site-packages/django/template/loader_tags.py
, line 62, in render
push = block = block_context.pop(self.name)
if block is None:
block = self
# Create new block so we can store context without thread-safety issues.
block = type(self)(block.name, block.nodelist)
block.context = context
context['block'] = block
result = block.nodelist.render(context)…
if push is not None:
block_context.push(self.name, push)
return result
def super(self):
if not hasattr(self, 'context'):
Variable | Value |
---|---|
block | <Block Node: content. Contents: [<TextNode: '\n\n <section id="genre"'>, <IfNode>, <TextNode: '\n <li>'>, <django.template.defaulttags.URLNode object at 0x7f1840103730>, <TextNode: '">'>, <Variable Node: categ.name>, <TextNode: '</a>\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n </ul>\n '>, <IfNode>, <TextNode: '\n\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<div c'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t\t\t<h4><a href="'>, <django.template.defaulttags.URLNode object at 0x7f1840224eb0>, <TextNode: '">'>, <Variable Node: podcast.name>, <TextNode: '</a></h4>\t\t\t \t\t\t\t\t\t\t\t\t\t\t'>, <django.template.defaulttags.URLNode object at 0x7f18404c4ee0>, <TextNode: '"><span class="btn btn-co'>, <Variable Node: podcast.episode_count>, <TextNode: ' episodes</span></a></p>\n'>, <django.template.defaulttags.AutoEscapeControlNode object at 0x7f18404c4cd0>, <TextNode: '\n\t\t\t\t\t\t\t\t</div>\t\t\t\t\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\t\t\n \n\t\t\t\t\t'>, <ForNode: for episode in episodes, tail_len: 19>, <TextNode: '\n\n <!-'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t\t\t\t\t '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n \t\t\t</ul>\n'>, <IfNode>, <TextNode: '\n\n </div>\n\n\n '>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f18401c3040> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'categ': <AudioCategory: Arts>, 'podcast': <Podcast: Kannada Pusthaka Parichaya | ಕನ್ನಡ ಪುಸ್ತಕ ಪರಿಚಯ (https://anchor.fm/s/2b6acd74/podcast/rss)>, 'episodes': <QuerySet [<PodcastEpisode: PodcastEpisode object (37672648)>, <PodcastEpisode: PodcastEpisode object (37672649)>, <PodcastEpisode: PodcastEpisode object (37672650)>, <PodcastEpisode: PodcastEpisode object (37672651)>, <PodcastEpisode: PodcastEpisode object (37672652)>, <PodcastEpisode: PodcastEpisode object (37672653)>, <PodcastEpisode: PodcastEpisode object (37672654)>, <PodcastEpisode: PodcastEpisode object (37672655)>, <PodcastEpisode: PodcastEpisode object (37672656)>, <PodcastEpisode: PodcastEpisode object (37672657)>, <PodcastEpisode: PodcastEpisode object (37672658)>, <PodcastEpisode: PodcastEpisode object (37672659)>, <PodcastEpisode: PodcastEpisode object (37672660)>, <PodcastEpisode: PodcastEpisode object (37672661)>, <PodcastEpisode: PodcastEpisode object (37672662)>, <PodcastEpisode: PodcastEpisode object (37672663)>, <PodcastEpisode: PodcastEpisode object (37672664)>, <PodcastEpisode: PodcastEpisode object (37672665)>, <PodcastEpisode: PodcastEpisode object (37672666)>, <PodcastEpisode: PodcastEpisode object (37672667)>, '...(remaining elements truncated)...']>, 'subcategs': <QuerySet [<AudioCategory: Design>, <AudioCategory: Food>, <AudioCategory: Books>, <AudioCategory: Performing Arts>, <AudioCategory: Fashion & Beauty>, <AudioCategory: Visual Arts>]>, 'othercategs': [], 'crumbs': [{'name': 'Arts', 'slug': 'arts'}]}] |
push | <Block Node: content. Contents: [<TextNode: '\n\n <section id="genre"'>, <IfNode>, <TextNode: '\n <li>'>, <django.template.defaulttags.URLNode object at 0x7f1840103730>, <TextNode: '">'>, <Variable Node: categ.name>, <TextNode: '</a>\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n </ul>\n '>, <IfNode>, <TextNode: '\n\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<div c'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t\t\t<h4><a href="'>, <django.template.defaulttags.URLNode object at 0x7f1840224eb0>, <TextNode: '">'>, <Variable Node: podcast.name>, <TextNode: '</a></h4>\t\t\t \t\t\t\t\t\t\t\t\t\t\t'>, <django.template.defaulttags.URLNode object at 0x7f18404c4ee0>, <TextNode: '"><span class="btn btn-co'>, <Variable Node: podcast.episode_count>, <TextNode: ' episodes</span></a></p>\n'>, <django.template.defaulttags.AutoEscapeControlNode object at 0x7f18404c4cd0>, <TextNode: '\n\t\t\t\t\t\t\t\t</div>\t\t\t\t\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\t\t\n \n\t\t\t\t\t'>, <ForNode: for episode in episodes, tail_len: 19>, <TextNode: '\n\n <!-'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t\t\t\t\t '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n \t\t\t</ul>\n'>, <IfNode>, <TextNode: '\n\n </div>\n\n\n '>]> |
self | <Block Node: content. Contents: [<TextNode: '\n\n'>]> |
/var/django/radiosdbenv/lib/python3.9/site-packages/django/template/base.py
, line 938, 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 | '\t\t\n \n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t' |
bits | ['\n' '\n' ' <section id="genre">\n' ' <div class="row">\n' ' <div class="span2 leftPanel">\n' ' <ul class="genre-list">\n' ' ', '', '\n <li>\n <a href="', '/podcasts/arts/', '">', 'Arts', '</a>\n </li>\n ', '\n' ' <li>RELATED\n' '\t\t\t\t\t\t\t\t\t\t\t\t<u;>\n' ' \n' ' <li>\n' ' <a href="/podcasts/design/"><i ' 'class="glyphicon glyphicon-arrow-right"></i> Design</a>\n' ' </li>\n' ' \n' ' <li>\n' ' <a href="/podcasts/food/"><i ' 'class="glyphicon glyphicon-arrow-right"></i> Food</a>\n' ' </li>\n' ' \n' ' <li>\n' ' <a href="/podcasts/books/"><i ' 'class="glyphicon glyphicon-arrow-right"></i> Books</a>\n' ' </li>\n' ' \n' ' <li>\n' ' <a href="/podcasts/performing-arts/"><i ' 'class="glyphicon glyphicon-arrow-right"></i> Performing Arts</a>\n' ' </li>\n' ' \n' ' <li>\n' ' <a href="/podcasts/fashion-beauty/"><i ' 'class="glyphicon glyphicon-arrow-right"></i> Fashion & Beauty</a>\n' ' </li>\n' ' \n' ' <li>\n' ' <a href="/podcasts/visual-arts/"><i ' 'class="glyphicon glyphicon-arrow-right"></i> Visual Arts</a>\n' ' </li>\n' ' \n' '\t\t\t\t\t\t\t\t\t\t\t\t</ul></li>\n' ' ', '\n ', '', '\n' ' </ul>\n' ' </div>\n' '\t\t\t\t\t\t<!-- span2 - leftPanel -->\n' '\n' ' <div class="span9">\n' '\t\t\t\t\t\t\n' ' <!-- Search form -->\n' ' <div class="form">\n' ' <form action="https://broadcasts.com/search" ' 'id="searchform"> \n' ' <input class="form-control" type="text" ' 'placeholder="Search for ..." name="q" />\n' ' <div class="searchButton"><i ' 'class="icon-search"></i></div> \n' ' </form>\n' ' </div>\n' '\t\t\t\t\t\t\t\t\n' '\t\t\t\t\t\t\t\t', '\n' '\t\t\t\t\t\t\t\t<div class="breadcrumb flat">\n' '\t\t\t\t\t\t\t\t\t\t<a href="/podcasts/">Podcasts</a>\n' ' \n' '\t\t\t\t\t\t\t\t\t\t<a href="/podcasts/arts/">Arts</a>\n' ' \n' '\n' ' <span>Kannada Pusthaka Parichaya | ಕನ್ನಡ ' 'ಪುಸ್ತಕ ಪರಿಚಯ</span>\n' '\t\t\t\t\t\t\t\t</div>\n' '\t\t\t \t\t\t', '\n' '\n' '\t\t\t\t\t\t\t\t\n' '\t\t\t\t\t\t\t\t<div class="episode">\t\n' '\t\t\t\t\t\t\t\t', '\n' '\t\t\t\t\t\t\t\t<div class="fav-img-sm left">\n' ' <img ' 'src="https://d3t3ozftmdmh3i.cloudfront.net/staging/podcast_uploaded_nologo/7184197/7184197-1704523532007-884dd0519387c.jpg" ' 'alt="Kannada Pusthaka Parichaya | ಕನ್ನಡ ಪುಸ್ತಕ ಪರಿಚಯ" />\n' '\t\t\t\t\t\t\t\t</div>\n' ' ', '\n\t\t\t\t\t\t\t\t<h4><a href="', '/podcast/kannada-pusthaka-parichaya/', '">', 'Kannada Pusthaka Parichaya | ಕನ್ನಡ ಪುಸ್ತಕ ಪರಿಚಯ', '</a></h4>\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<p><a href="', '/podcast/kannada-pusthaka-parichaya/', '"><span class="btn btn-color btn-rounded">', '56', ' episodes</span></a></p>\n\t\t\t\t\t\t\t\t\t', 'Here we bring you reviews about Kannada novels, short stories, dramas, ' 'kavana samkalana, poetry and other books from\n' ' voracious readers; bookworms; upcoming writers.\n' '\n' 'ಕನ್ನ… <trimmed 5055 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'categ': <AudioCategory: Arts>, 'podcast': <Podcast: Kannada Pusthaka Parichaya | ಕನ್ನಡ ಪುಸ್ತಕ ಪರಿಚಯ (https://anchor.fm/s/2b6acd74/podcast/rss)>, 'episodes': <QuerySet [<PodcastEpisode: PodcastEpisode object (37672648)>, <PodcastEpisode: PodcastEpisode object (37672649)>, <PodcastEpisode: PodcastEpisode object (37672650)>, <PodcastEpisode: PodcastEpisode object (37672651)>, <PodcastEpisode: PodcastEpisode object (37672652)>, <PodcastEpisode: PodcastEpisode object (37672653)>, <PodcastEpisode: PodcastEpisode object (37672654)>, <PodcastEpisode: PodcastEpisode object (37672655)>, <PodcastEpisode: PodcastEpisode object (37672656)>, <PodcastEpisode: PodcastEpisode object (37672657)>, <PodcastEpisode: PodcastEpisode object (37672658)>, <PodcastEpisode: PodcastEpisode object (37672659)>, <PodcastEpisode: PodcastEpisode object (37672660)>, <PodcastEpisode: PodcastEpisode object (37672661)>, <PodcastEpisode: PodcastEpisode object (37672662)>, <PodcastEpisode: PodcastEpisode object (37672663)>, <PodcastEpisode: PodcastEpisode object (37672664)>, <PodcastEpisode: PodcastEpisode object (37672665)>, <PodcastEpisode: PodcastEpisode object (37672666)>, <PodcastEpisode: PodcastEpisode object (37672667)>, '...(remaining elements truncated)...']>, 'subcategs': <QuerySet [<AudioCategory: Design>, <AudioCategory: Food>, <AudioCategory: Books>, <AudioCategory: Performing Arts>, <AudioCategory: Fashion & Beauty>, <AudioCategory: Visual Arts>]>, 'othercategs': [], 'crumbs': [{'name': 'Arts', 'slug': 'arts'}]}] |
node | <ForNode: for episode in episodes, tail_len: 19> |
self | [<TextNode: '\n\n <section id="genre"'>, <IfNode>, <TextNode: '\n <li>'>, <django.template.defaulttags.URLNode object at 0x7f1840103730>, <TextNode: '">'>, <Variable Node: categ.name>, <TextNode: '</a>\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n </ul>\n '>, <IfNode>, <TextNode: '\n\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<div c'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t\t\t<h4><a href="'>, <django.template.defaulttags.URLNode object at 0x7f1840224eb0>, <TextNode: '">'>, <Variable Node: podcast.name>, <TextNode: '</a></h4>\t\t\t \t\t\t\t\t\t\t\t\t\t\t'>, <django.template.defaulttags.URLNode object at 0x7f18404c4ee0>, <TextNode: '"><span class="btn btn-co'>, <Variable Node: podcast.episode_count>, <TextNode: ' episodes</span></a></p>\n'>, <django.template.defaulttags.AutoEscapeControlNode object at 0x7f18404c4cd0>, <TextNode: '\n\t\t\t\t\t\t\t\t</div>\t\t\t\t\n\t\t\t\t\t'>, <IfNode>, <TextNode: '\t\t\n \n\t\t\t\t\t'>, <ForNode: for episode in episodes, tail_len: 19>, <TextNode: '\n\n <!-'>, <IfNode>, <TextNode: '\n\t\t\t\t\t\t\t\t\t\t '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n \t\t\t</ul>\n'>, <IfNode>, <TextNode: '\n\n </div>\n\n\n '>] |
/var/django/radiosdbenv/lib/python3.9/site-packages/django/template/base.py
, line 905, 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}, {}, {}, {'categ': <AudioCategory: Arts>, 'podcast': <Podcast: Kannada Pusthaka Parichaya | ಕನ್ನಡ ಪುಸ್ತಕ ಪರಿಚಯ (https://anchor.fm/s/2b6acd74/podcast/rss)>, 'episodes': <QuerySet [<PodcastEpisode: PodcastEpisode object (37672648)>, <PodcastEpisode: PodcastEpisode object (37672649)>, <PodcastEpisode: PodcastEpisode object (37672650)>, <PodcastEpisode: PodcastEpisode object (37672651)>, <PodcastEpisode: PodcastEpisode object (37672652)>, <PodcastEpisode: PodcastEpisode object (37672653)>, <PodcastEpisode: PodcastEpisode object (37672654)>, <PodcastEpisode: PodcastEpisode object (37672655)>, <PodcastEpisode: PodcastEpisode object (37672656)>, <PodcastEpisode: PodcastEpisode object (37672657)>, <PodcastEpisode: PodcastEpisode object (37672658)>, <PodcastEpisode: PodcastEpisode object (37672659)>, <PodcastEpisode: PodcastEpisode object (37672660)>, <PodcastEpisode: PodcastEpisode object (37672661)>, <PodcastEpisode: PodcastEpisode object (37672662)>, <PodcastEpisode: PodcastEpisode object (37672663)>, <PodcastEpisode: PodcastEpisode object (37672664)>, <PodcastEpisode: PodcastEpisode object (37672665)>, <PodcastEpisode: PodcastEpisode object (37672666)>, <PodcastEpisode: PodcastEpisode object (37672667)>, '...(remaining elements truncated)...']>, 'subcategs': <QuerySet [<AudioCategory: Design>, <AudioCategory: Food>, <AudioCategory: Books>, <AudioCategory: Performing Arts>, <AudioCategory: Fashion & Beauty>, <AudioCategory: Visual Arts>]>, 'othercategs': [], 'crumbs': [{'name': 'Arts', 'slug': 'arts'}]}] |
self | <ForNode: for episode in episodes, tail_len: 19> |
/var/django/radiosdbenv/lib/python3.9/site-packages/django/template/defaulttags.py
, line 211, in render
unpacked_vars = dict(zip(self.loopvars, item))
pop_context = True
context.update(unpacked_vars)
else:
context[self.loopvars[0]] = item
for node in self.nodelist_loop:
nodelist.append(node.render_annotated(context))…
if pop_context:
# Pop the loop variables pushed on to the context to avoid
# the context ending up in an inconsistent state when other
# tags (e.g., include and with) push data to context.
context.pop()
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'categ': <AudioCategory: Arts>, 'podcast': <Podcast: Kannada Pusthaka Parichaya | ಕನ್ನಡ ಪುಸ್ತಕ ಪರಿಚಯ (https://anchor.fm/s/2b6acd74/podcast/rss)>, 'episodes': <QuerySet [<PodcastEpisode: PodcastEpisode object (37672648)>, <PodcastEpisode: PodcastEpisode object (37672649)>, <PodcastEpisode: PodcastEpisode object (37672650)>, <PodcastEpisode: PodcastEpisode object (37672651)>, <PodcastEpisode: PodcastEpisode object (37672652)>, <PodcastEpisode: PodcastEpisode object (37672653)>, <PodcastEpisode: PodcastEpisode object (37672654)>, <PodcastEpisode: PodcastEpisode object (37672655)>, <PodcastEpisode: PodcastEpisode object (37672656)>, <PodcastEpisode: PodcastEpisode object (37672657)>, <PodcastEpisode: PodcastEpisode object (37672658)>, <PodcastEpisode: PodcastEpisode object (37672659)>, <PodcastEpisode: PodcastEpisode object (37672660)>, <PodcastEpisode: PodcastEpisode object (37672661)>, <PodcastEpisode: PodcastEpisode object (37672662)>, <PodcastEpisode: PodcastEpisode object (37672663)>, <PodcastEpisode: PodcastEpisode object (37672664)>, <PodcastEpisode: PodcastEpisode object (37672665)>, <PodcastEpisode: PodcastEpisode object (37672666)>, <PodcastEpisode: PodcastEpisode object (37672667)>, '...(remaining elements truncated)...']>, 'subcategs': <QuerySet [<AudioCategory: Design>, <AudioCategory: Food>, <AudioCategory: Books>, <AudioCategory: Performing Arts>, <AudioCategory: Fashion & Beauty>, <AudioCategory: Visual Arts>]>, 'othercategs': [], 'crumbs': [{'name': 'Arts', 'slug': 'arts'}]}] |
i | 227 |
item | <PodcastEpisode: PodcastEpisode object (5126086)> |
len_values | 268 |
loop_dict | {'counter': 228, 'counter0': 227, 'first': False, 'last': False, 'parentloop': {}, 'revcounter': 41, 'revcounter0': 40} |
node | <django.template.defaulttags.URLNode object at 0x7f183ff8eee0> |
nodelist | ['\n' ' <div class="episode grid">\t\t\t\t\t\t\t\t\t\t\n' ' <div class="icon playaudio"\n' ' onclick="playAudio(\'', '/podcastfeed/37672648/', '\', this)">\n' ' <i class="icon-bg-dark icon-circled ' 'icon-play-sign icon-1x"></i>\n' ' </div>\n' ' <div>\n' ' \n' ' <h4 class="nomarginTop"><a href="', '/podcasts/kannada-pusthaka-parichaya/se05/', '" title="', '', '">', 'SE05 ' - .. - '', '</a></h4>\n <span>Published: ', 'Jan. 5, 2024, 6:42 p.m.', '</span><br />\n <span>Duration: ', '3 minutes 50 seconds', '</span>\n\n <!-- ', '\n' ' ' "<p>b'<p>\\'\\\\u0cb8\\\\u0cb0\\\\u0ca3\\\\u0cbf " '\\\\u0cb5\\\\u0cbf\\\\u0cb6\\\\u0cc7\\\\u0cb7 - ' '\\\\u0ca4.\\\\u0cb0\\\\u0cbe.\\\\u0cb8\\\\u0cc1 \\\\u0cb0\\\\u0cb5\\\\u0cb0 ' '- ' '\\\\u0c9a\\\\u0cbf\\\\u0ca4\\\\u0ccd\\\\u0cb0\\\\u0ca6\\\\u0cc1\\\\u0cb0\\\\u0ccd\\\\u0c97\\\\u0ca6 ' "\\\\u0cb8\\\\u0cb0\\\\u0ca3\\\\u0cbf\\'\\\\xa0\\\\u0cb8\\\\u0cb0\\\\u0ca3\\\\u0cbf " '\\\\u0c95\\\\u0cc1\\\\u0cb0\\\\u0cbf\\\\u0ca4\\\\u0cc1 ' '\\\\u0c95\\\\u0cc7\\\\u0cb3\\\\u0cbf\\\\xa0\\\\u0cb8\\\\u0cbf\\\\u0c82\\\\u0ca7\\\\u0cc1 ' '\\\\u0c9c\\\\u0c97\\\\u0ca8\\\\u0ccd\\\\u0ca8\\\\u0cbe\\\\u0ca5\\\\u0ccd\\\\xa0\\\\u0c85\\\\u0cb5\\\\u0cb0 ' '\\\\u0c85\\\\u0cad\\\\u0cbf\\\\u0caa\\\\u0ccd\\\\u0cb0\\\\u0cbe\\\\u0caf\\\\u0cb5\\\\u0ca8\\\\u0ccd\\\\u0ca8\\\\u0cc1 ' '\\\\u0caf\\\\u0ca8\\\\u0ccd\\\\u0ca8\\\\u0cc1 ' '\\\\u0cb8\\\\u0cbf\\\\u0c82\\\\u0ca7\\\\u0cc1 ' '\\\\u0c9c\\\\u0c97\\\\u0ca8\\\\u0ccd\\\\u0ca8\\\\u0cbe\\\\u0ca5\\\\u0ccd ' '\\\\u0cb0\\\\u0cb5\\\\u0cb0 ' '\\\\u0ca7\\\\u0ccd\\\\u0cb5\\\\u0ca8\\\\u0cbf\\\\u0caf\\\\u0cb2\\\\u0ccd\\\\u0cb2\\\\u0cbf.</p>\\\\n<p>Listen ' "to Sindhu Jagannath\\'s opinion on the series \\'Special Series - Ta.Ra.Su. " "- Chitradurga Series\\' in Sindhu Jagannath\\'s voice.</p>\\\\n<p><br " '/></p>\\\\n<p>Podcast also available on\\\\xa0<a ' 'href="https://www.youtube.com/channel/UCNjrYGqzK6BkxjV4cucYl9Q">\\\\u2060Youtube\\\\u2060</a></p>\\\\n<p><br ' '/></p>\\\\n<p>Write to ' 'us:\\\\xa0parichayaloka@gmail.com</p>\\\\n<p>Co-sponsored by: Prathama Srsti ' '- Buy authentic, hand picked GI TAG products of India and support local art ' 'and artists. To know more visit\\\\xa0<a ' 'href="https://www.prathamasrsti.com/">\\\\u2060https://www.PrathamaSrsti.com\\\\u2060</a></p>\\\\n<p><br ' '/></p>\\\\n<p>Parichaya Loka presents a new Android app for travellers. Gear ' 'up for the weekend! Download "Tour Hoysala" app from the ' 'Playstore.\\\\xa0<a ' 'href="https://tinyurl.com/tourhoysala">\\\\u2060https://tinyurl.com/tourhoysala\\\\u2060</a></p>\\\\n<p><br ' '/></p>\\\\n<p>Parichaya Loka presents Android app for travellers. Gear up ' 'for the weekend! Download "Tour Bengaluru" app from the ' 'Playstore.\\\\xa0<a ' 'href="https://tinyurl.com/tourBengaluru">\\\\u2060https://tinyurl.com/tourBengaluru\\\\u2060</a></p>\\\\n<p><br ' '/></p>\\\\n<p>Parichaya Loka presents Android app for travellers. Gear up ' 'for the weekend! Download "Tour Mysuru" app from the ' 'Playstore.\\\\xa0\\\\xa0<a ' 'href="https://tinyurl.com/tourmysore">\\\\u2060https://tinyurl.com/tourmysore\\\\u2060</a></p>\\\\n<p><br ' '/></p>\\\\n<p>Leave your comments, feedback, ratings and share it with your ' 'friends.</p>\\\\n\\\\n--- \\\\n\\\\nSupport this podcast: <a ' 'href="https://podcasters.spotify.com/pod/show/vasistha-jagannath/support" ' 'rel="payment">https://podcasters.spotify.com/pod/show/vasistha-jagannath/support</a>\'</p>\n' ' ', ' -->\n' '\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n' ' <p>Listed in: <a href="', '/podcasts/arts/', '">', 'Arts', '</a></p>\n' ' </div>\n' ' </div>\n' ' <!-- blan… <trimmed 822514 bytes string> |
num_loopvars | 1 |
parentloop | {} |
pop_context | False |
self | <ForNode: for episode in episodes, tail_len: 19> |
unpack | False |
values | <QuerySet [<PodcastEpisode: PodcastEpisode object (37672648)>, <PodcastEpisode: PodcastEpisode object (37672649)>, <PodcastEpisode: PodcastEpisode object (37672650)>, <PodcastEpisode: PodcastEpisode object (37672651)>, <PodcastEpisode: PodcastEpisode object (37672652)>, <PodcastEpisode: PodcastEpisode object (37672653)>, <PodcastEpisode: PodcastEpisode object (37672654)>, <PodcastEpisode: PodcastEpisode object (37672655)>, <PodcastEpisode: PodcastEpisode object (37672656)>, <PodcastEpisode: PodcastEpisode object (37672657)>, <PodcastEpisode: PodcastEpisode object (37672658)>, <PodcastEpisode: PodcastEpisode object (37672659)>, <PodcastEpisode: PodcastEpisode object (37672660)>, <PodcastEpisode: PodcastEpisode object (37672661)>, <PodcastEpisode: PodcastEpisode object (37672662)>, <PodcastEpisode: PodcastEpisode object (37672663)>, <PodcastEpisode: PodcastEpisode object (37672664)>, <PodcastEpisode: PodcastEpisode object (37672665)>, <PodcastEpisode: PodcastEpisode object (37672666)>, <PodcastEpisode: PodcastEpisode object (37672667)>, '...(remaining elements truncated)...']> |
/var/django/radiosdbenv/lib/python3.9/site-packages/django/template/base.py
, line 905, 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}, {}, {}, {'categ': <AudioCategory: Arts>, 'podcast': <Podcast: Kannada Pusthaka Parichaya | ಕನ್ನಡ ಪುಸ್ತಕ ಪರಿಚಯ (https://anchor.fm/s/2b6acd74/podcast/rss)>, 'episodes': <QuerySet [<PodcastEpisode: PodcastEpisode object (37672648)>, <PodcastEpisode: PodcastEpisode object (37672649)>, <PodcastEpisode: PodcastEpisode object (37672650)>, <PodcastEpisode: PodcastEpisode object (37672651)>, <PodcastEpisode: PodcastEpisode object (37672652)>, <PodcastEpisode: PodcastEpisode object (37672653)>, <PodcastEpisode: PodcastEpisode object (37672654)>, <PodcastEpisode: PodcastEpisode object (37672655)>, <PodcastEpisode: PodcastEpisode object (37672656)>, <PodcastEpisode: PodcastEpisode object (37672657)>, <PodcastEpisode: PodcastEpisode object (37672658)>, <PodcastEpisode: PodcastEpisode object (37672659)>, <PodcastEpisode: PodcastEpisode object (37672660)>, <PodcastEpisode: PodcastEpisode object (37672661)>, <PodcastEpisode: PodcastEpisode object (37672662)>, <PodcastEpisode: PodcastEpisode object (37672663)>, <PodcastEpisode: PodcastEpisode object (37672664)>, <PodcastEpisode: PodcastEpisode object (37672665)>, <PodcastEpisode: PodcastEpisode object (37672666)>, <PodcastEpisode: PodcastEpisode object (37672667)>, '...(remaining elements truncated)...']>, 'subcategs': <QuerySet [<AudioCategory: Design>, <AudioCategory: Food>, <AudioCategory: Books>, <AudioCategory: Performing Arts>, <AudioCategory: Fashion & Beauty>, <AudioCategory: Visual Arts>]>, 'othercategs': [], 'crumbs': [{'name': 'Arts', 'slug': 'arts'}]}] |
self | <django.template.defaulttags.URLNode object at 0x7f183ff8eee0> |
/var/django/radiosdbenv/lib/python3.9/site-packages/django/template/defaulttags.py
, line 446, 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 | ['kannada-pusthaka-parichaya', ''] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'categ': <AudioCategory: Arts>, 'podcast': <Podcast: Kannada Pusthaka Parichaya | ಕನ್ನಡ ಪುಸ್ತಕ ಪರಿಚಯ (https://anchor.fm/s/2b6acd74/podcast/rss)>, 'episodes': <QuerySet [<PodcastEpisode: PodcastEpisode object (37672648)>, <PodcastEpisode: PodcastEpisode object (37672649)>, <PodcastEpisode: PodcastEpisode object (37672650)>, <PodcastEpisode: PodcastEpisode object (37672651)>, <PodcastEpisode: PodcastEpisode object (37672652)>, <PodcastEpisode: PodcastEpisode object (37672653)>, <PodcastEpisode: PodcastEpisode object (37672654)>, <PodcastEpisode: PodcastEpisode object (37672655)>, <PodcastEpisode: PodcastEpisode object (37672656)>, <PodcastEpisode: PodcastEpisode object (37672657)>, <PodcastEpisode: PodcastEpisode object (37672658)>, <PodcastEpisode: PodcastEpisode object (37672659)>, <PodcastEpisode: PodcastEpisode object (37672660)>, <PodcastEpisode: PodcastEpisode object (37672661)>, <PodcastEpisode: PodcastEpisode object (37672662)>, <PodcastEpisode: PodcastEpisode object (37672663)>, <PodcastEpisode: PodcastEpisode object (37672664)>, <PodcastEpisode: PodcastEpisode object (37672665)>, <PodcastEpisode: PodcastEpisode object (37672666)>, <PodcastEpisode: PodcastEpisode object (37672667)>, '...(remaining elements truncated)...']>, 'subcategs': <QuerySet [<AudioCategory: Design>, <AudioCategory: Food>, <AudioCategory: Books>, <AudioCategory: Performing Arts>, <AudioCategory: Fashion & Beauty>, <AudioCategory: Visual Arts>]>, 'othercategs': [], 'crumbs': [{'name': 'Arts', 'slug': 'arts'}]}] |
current_app | '' |
kwargs | {} |
reverse | <function reverse at 0x7f1841956700> |
self | <django.template.defaulttags.URLNode object at 0x7f183ff8eee0> |
url | '' |
view_name | 'podcast_episode' |
/var/django/radiosdbenv/lib/python3.9/site-packages/django/urls/base.py
, line 86, 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 resolver._reverse_with_prefix(view, prefix, *args, **kwargs)…
reverse_lazy = lazy(reverse, str)
def clear_url_caches():
Variable | Value |
---|---|
args | ['kannada-pusthaka-parichaya', ''] |
current_app | '' |
current_path | None |
kwargs | {} |
ns_converters | {} |
ns_pattern | '' |
path | [] |
prefix | '/' |
resolved_path | [] |
resolver | <URLResolver 'radiosdb.urls' (None:None) '^/'> |
urlconf | 'radiosdb.urls' |
view | 'podcast_episode' |
viewname | 'podcast_episode' |
/var/django/radiosdbenv/lib/python3.9/site-packages/django/urls/resolvers.py
, line 694, 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 '('kannada-pusthaka-parichaya', '')'" |
args | ('kannada-pusthaka-parichaya', '') |
candidate_pat | '/podcasts/%(slug_podcast)s/%(slug_episode)s/' |
candidate_subs | {'slug_episode': '', 'slug_podcast': 'kannada-pusthaka-parichaya'} |
converters | {'slug_episode': <django.urls.converters.SlugConverter object at 0x7f1841949fd0>, 'slug_podcast': <django.urls.converters.SlugConverter object at 0x7f1841949fd0>} |
defaults | {} |
k | 'slug_episode' |
kwargs | {} |
lookup_view | 'podcast_episode' |
lookup_view_s | 'podcast_episode' |
m | None |
match | True |
msg | ("Reverse for 'podcast_episode' with arguments '('kannada-pusthaka-parichaya', " "'')' not found. 1 pattern(s) tried: " "['podcasts/(?P<slug_podcast>[-a-zA-Z0-9_]+)/(?P<slug_episode>[-a-zA-Z0-9_]+)/$']") |
n | None |
params | ['slug_podcast', 'slug_episode'] |
pattern | 'podcasts/(?P<slug_podcast>[-a-zA-Z0-9_]+)/(?P<slug_episode>[-a-zA-Z0-9_]+)/$' |
patterns | ['podcasts/(?P<slug_podcast>[-a-zA-Z0-9_]+)/(?P<slug_episode>[-a-zA-Z0-9_]+)/$'] |
possibilities | [([('podcasts/%(slug_podcast)s/%(slug_episode)s/', ['slug_podcast', 'slug_episode'])], 'podcasts/(?P<slug_podcast>[-a-zA-Z0-9_]+)/(?P<slug_episode>[-a-zA-Z0-9_]+)/$', {}, {'slug_episode': <django.urls.converters.SlugConverter object at 0x7f1841949fd0>, 'slug_podcast': <django.urls.converters.SlugConverter object at 0x7f1841949fd0>})] |
possibility | [('podcasts/%(slug_podcast)s/%(slug_episode)s/', ['slug_podcast', 'slug_episode'])] |
result | 'podcasts/%(slug_podcast)s/%(slug_episode)s/' |
self | <URLResolver 'radiosdb.urls' (None:None) '^/'> |
text_candidate_subs | {'slug_episode': '', 'slug_podcast': 'kannada-pusthaka-parichaya'} |
v | '' |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'broadcasts.com' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '3.88.16.192' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_REAL_IP | '3.88.16.192' |
PATH_INFO | '/podcast/kannada-pusthaka-parichaya/' |
QUERY_STRING | '' |
RAW_URI | '/podcast/kannada-pusthaka-parichaya/' |
REMOTE_ADDR | '' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | 'broadcasts.com' |
SERVER_PORT | '443' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'gunicorn/20.0.4' |
gunicorn.socket | <socket.socket fd=3, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0, laddr=/var/django/radiosdbenv/radiosdbevo/myproject.sock> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f184015d400> |
wsgi.file_wrapper | <class 'gunicorn.http.wsgi.FileWrapper'> |
wsgi.input | <gunicorn.http.body.Body object at 0x7f183ff52820> |
wsgi.input_terminated | True |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
radiosdb.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['192.168.30.199', 'acoustic.wn.com', 'localhost', 'radiown.com', 'broadcasts.com', 'www.broadcasts.com', '195.149.84.120'] |
APPEND_SLASH | True |
APP_HOSTNAME | 'https://broadcasts.com' |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/var/django/radiosdbenv/radiosdbevo' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_HOST | 'localhost' |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CACHE_PORT | 11211 |
CELERY_ACCEPT_CONTENT | ['application/json'] |
CELERY_BROKER_URL | 'redis://localhost:6379/1' |
CELERY_RESULT_BACKEND | 'redis://localhost:6379/1' |
CELERY_RESULT_SERIALIZER | 'json' |
CELERY_TASK_SERIALIZER | 'json' |
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': '127.0.0.1', 'NAME': 'radiosdb', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'root'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 10240 |
DATETIME_FORMAT | 'N j, Y, P' |
DATETIME_INPUT_FORMATS | ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M'] |
DATE_FORMAT | 'N j, Y' |
DATE_INPUT_FORMATS | ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_AUTO_FIELD | 'django.db.models.AutoField' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_EXCEPTION_REPORTER | 'django.views.debug.ExceptionReporter' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
DEFAULT_HASHING_ALGORITHM | 'sha256' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'smtp.mandrillapp.com' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | 'WN' |
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_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | 420 |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
HAYSTACK_CONNECTIONS | {'default': {'ENGINE': 'haystack.backends.elasticsearch2_backend.Elasticsearch2SearchEngine', 'INDEX_NAME': 'radiohaystack', 'URL': 'http://192.168.30.161:9200/'}} |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'radiosdb.apps.radio', 'radiosdb.apps.evoradio', 'radiosdb.apps.audio', 'radiosdb.apps.podcasts', 'radiosdb.apps.audiobooks', 'radiosdb.apps.videos', 'radiosdb.apps.users', 'haystack'] |
INTERNAL_IPS | [] |
LANGUAGES | [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ar-dz', 'Algerian Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('hy', 'Armenian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('ig', 'Igbo'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('ky', 'Kyrgyz'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmål'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('tg', 'Tajik'), ('th', 'Thai'), ('tk', 'Turkmen'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('uz', 'Uzbek'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] |
LANGUAGES_BIDI | ['he', 'ar', 'ar-dz', 'fa', 'ur'] |
LANGUAGE_CODE | 'en-us' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_HTTPONLY | False |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LANGUAGE_COOKIE_SAMESITE | None |
LANGUAGE_COOKIE_SECURE | False |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '/var/django/radiosdbenv/radiosdbevo/media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
REDIS_STR | 'redis://:@localhost:/0' |
ROOT_URLCONF | 'radiosdb.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | True |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_REFERRER_POLICY | 'same-origin' |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'root@localhost' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | 'sessionid' |
SESSION_COOKIE_PATH | '/' |
SESSION_COOKIE_SAMESITE | 'Lax' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'radiosdb.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
STATICFILES_DIRS | [] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/var/django/radiosdbenv/radiosdbevo/static' |
STATIC_URL | '/static/' |
STATS_KEY | '********************' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'UTC' |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'radiosdb.wsgi.application' |
X_FRAME_OPTIONS | 'DENY' |
YEAR_MONTH_FORMAT | 'F Y' |
You’re seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard page generated by the handler for this status code.