Reverse for 'categories-detail' with arguments '('',)' not found. 3 pattern(s) tried: ['usluge/(?P<slug>[-a-zA-Z0-9_]+)/$', 'api/categories/(?P<pk>[^/.]+)\\.(?P<format>[a-z0-9]+)/?$', 'api/categories/(?P<pk>[^/.]+)/$']
Request Method: | GET |
---|---|
Request URL: | https://euromedic.rs/usluga/specijalisticki-pregled-kardiologa/ |
Django Version: | 2.2.4 |
Exception Type: | NoReverseMatch |
Exception Value: | Reverse for 'categories-detail' with arguments '('',)' not found. 3 pattern(s) tried: ['usluge/(?P<slug>[-a-zA-Z0-9_]+)/$', 'api/categories/(?P<pk>[^/.]+)\\.(?P<format>[a-z0-9]+)/?$', 'api/categories/(?P<pk>[^/.]+)/$'] |
Exception Location: | /home/euromk/euromedik/env/lib/python3.7/site-packages/django/urls/resolvers.py in _reverse_with_prefix, line 668 |
Python Executable: | /home/euromk/euromedik/env/bin/python3 |
Python Version: | 3.7.3 |
Python Path: | ['/home/euromk/euromedik', '/home/euromk/euromedik/env/bin', '/home/euromk/euromedik/env/lib/python37.zip', '/home/euromk/euromedik/env/lib/python3.7', '/home/euromk/euromedik/env/lib/python3.7/lib-dynload', '/usr/lib/python3.7', '/home/euromk/euromedik/env/lib/python3.7/site-packages'] |
Server time: | pet., 29 Mar. 2024 10:34:55 +0000 |
In template /home/euromk/euromedik/templates/base.html
, error at line 0
1 | {% load static %} |
---|---|
2 | {% load i18n %} |
3 | |
4 | {% load compress %} |
5 | <html> |
6 | <head> |
7 | {% block title %} |
8 | {% endblock %} |
9 | <meta charset="utf-8"> |
10 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
/home/euromk/euromedik/env/lib/python3.7/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 'categories-detail' with arguments '('',)' not found. 3 pattern(s) tried: ['usluge/(?P<slug>[-a-zA-Z0-9_]+)/$', 'api/categories/(?P<pk>[^/.]+)\\\\.(?P<format>[a-z0-9]+)/?$', 'api/categories/(?P<pk>[^/.]+)/$']") |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f5af28d9588>> |
request | <WSGIRequest: GET '/usluga/specijalisticki-pregled-kardiologa/'> |
/home/euromk/euromedik/env/lib/python3.7/site-packages/django/core/handlers/base.py
in _get_response
"HttpResponse object. It returned None instead."
% (middleware_method.__self__.__class__.__name__)
)
try:
response = response.render()
except Exception as e:
response = self.process_exception_by_middleware(e, request)…
return response
def process_exception_by_middleware(self, exception, request):
"""
Pass the exception to the exception middleware. If no middleware
Variable | Value |
---|---|
callback | <function ServiceView at 0x7f5af111e7b8> |
callback_args | () |
callback_kwargs | {'slug': 'specijalisticki-pregled-kardiologa'} |
middleware_method | <bound method CorsMiddleware.process_view of <corsheaders.middleware.CorsMiddleware object at 0x7f5af14bf780>> |
request | <WSGIRequest: GET '/usluga/specijalisticki-pregled-kardiologa/'> |
resolver | <URLResolver 'euromedic.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=core.frontend.ServiceView, args=(), kwargs={'slug': 'specijalisticki-pregled-kardiologa'}, url_name=services-detail, app_names=[], namespaces=[], route=usluga/<slug:slug>/) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f5af28d9588> |
wrapped_callback | <function ServiceView at 0x7f5af111e7b8> |
/home/euromk/euromedik/env/lib/python3.7/site-packages/django/core/handlers/base.py
in _get_response
raise ValueError(
"%s.process_template_response didn't return an "
"HttpResponse object. It returned None instead."
% (middleware_method.__self__.__class__.__name__)
)
try:
response = response.render()…
except Exception as e:
response = self.process_exception_by_middleware(e, request)
return response
def process_exception_by_middleware(self, exception, request):
Variable | Value |
---|---|
callback | <function ServiceView at 0x7f5af111e7b8> |
callback_args | () |
callback_kwargs | {'slug': 'specijalisticki-pregled-kardiologa'} |
middleware_method | <bound method CorsMiddleware.process_view of <corsheaders.middleware.CorsMiddleware object at 0x7f5af14bf780>> |
request | <WSGIRequest: GET '/usluga/specijalisticki-pregled-kardiologa/'> |
resolver | <URLResolver 'euromedic.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=core.frontend.ServiceView, args=(), kwargs={'slug': 'specijalisticki-pregled-kardiologa'}, url_name=services-detail, app_names=[], namespaces=[], route=usluga/<slug:slug>/) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f5af28d9588> |
wrapped_callback | <function ServiceView at 0x7f5af111e7b8> |
/home/euromk/euromedik/env/lib/python3.7/site-packages/django/template/response.py
in render
If the content has already been rendered, this is a no-op.
Return the baked response instance.
"""
retval = self
if not self._is_rendered:
self.content = self.rendered_content…
for post_callback in self._post_render_callbacks:
newretval = post_callback(retval)
if newretval is not None:
retval = newretval
return retval
Variable | Value |
---|---|
retval | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
/home/euromk/euromedik/env/lib/python3.7/site-packages/django/template/response.py
in rendered_content
This *does not* set the final content of the response. To set the
response content, you must either call render(), or set the
content explicitly using the value of this property.
"""
template = self.resolve_template(self.template_name)
context = self.resolve_context(self.context_data)
content = template.render(context, self._request)…
return content
def add_post_render_callback(self, callback):
"""Add a new post-rendering callback.
If the response has already been rendered,
Variable | Value |
---|---|
context | {'object': None, 'view': <core.frontend.ServiceView object at 0x7f5aefd464e0>} |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
template | <django.template.backends.django.Template object at 0x7f5aefd46ac8> |
/home/euromk/euromedik/env/lib/python3.7/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}, {}, {}, {'object': None, 'view': <core.frontend.ServiceView object at 0x7f5aefd464e0>, 'compressed': {'name': None}}] |
request | <WSGIRequest: GET '/usluga/specijalisticki-pregled-kardiologa/'> |
self | <django.template.backends.django.Template object at 0x7f5aefd46ac8> |
/home/euromk/euromedik/env/lib/python3.7/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}, {}, {}, {'object': None, 'view': <core.frontend.ServiceView object at 0x7f5aefd464e0>, 'compressed': {'name': None}}] |
self | <django.template.base.Template object at 0x7f5aefd46320> |
/home/euromk/euromedik/env/lib/python3.7/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}, {}, {}, {'object': None, 'view': <core.frontend.ServiceView object at 0x7f5aefd464e0>, 'compressed': {'name': None}}] |
self | <django.template.base.Template object at 0x7f5aefd46320> |
/home/euromk/euromedik/env/lib/python3.7/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}, {}, {}, {'object': None, 'view': <core.frontend.ServiceView object at 0x7f5aefd464e0>, 'compressed': {'name': None}}] |
node | <ExtendsNode: extends 'base.html'> |
self | [<ExtendsNode: extends 'base.html'>] |
/home/euromk/euromedik/env/lib/python3.7/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}, {}, {}, {'object': None, 'view': <core.frontend.ServiceView object at 0x7f5aefd464e0>, 'compressed': {'name': None}}] |
self | <ExtendsNode: extends 'base.html'> |
/home/euromk/euromedik/env/lib/python3.7/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 0x7f5aefd46f28> |
blocks | {'content': <Block Node: content. Contents: [<TextNode: '\n'>]>, 'title': <Block Node: title. Contents: [<TextNode: '\n '>]>, 'user_scripts': <Block Node: user_scripts. Contents: [<TextNode: '\n'>]>} |
compiled_parent | <django.template.base.Template object at 0x7f5af0dad630> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': None, 'view': <core.frontend.ServiceView object at 0x7f5aefd464e0>, 'compressed': {'name': None}}] |
node | <django.template.defaulttags.LoadNode object at 0x7f5af0425ac8> |
self | <ExtendsNode: extends 'base.html'> |
/home/euromk/euromedik/env/lib/python3.7/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}, {}, {}, {'object': None, 'view': <core.frontend.ServiceView object at 0x7f5aefd464e0>, 'compressed': {'name': None}}] |
self | <django.template.base.Template object at 0x7f5af0dad630> |
/home/euromk/euromedik/env/lib/python3.7/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\n' |
bits | ['', '\n', '', '\n\n', '', '\n<html>\n<head>\n ', '\n <title>Euromedik | Usluga - </title>\n', '\n' ' <meta charset="utf-8">\n' ' <meta http-equiv="X-UA-Compatible" content="IE=edge">\n' ' <meta name="viewport" content="width=device-width, initial-scale=1, ' 'shrink-to-fit=no">\n' ' <link rel="shortcut icon" href="', '/static/img/favicon.png', '" />\n' '\n' ' <link rel="stylesheet"\n' ' href="https://use.fontawesome.com/releases/v5.8.2/css/all.css"\n' ' ' 'integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay"\n' ' crossorigin="anonymous">\n' ' <link rel="stylesheet" href="', '/static/styles/font-awesome.min.css', '">\n <link rel="stylesheet" href="', '/static/styles/zdra-vendors.min.css', '">\n' ' <link rel="stylesheet"\n' ' href="https://unpkg.com/flickity@2/dist/flickity.min.css">\n' ' ', '', '\n <link rel="stylesheet" href="', '/static/styles/main.min.css', '">\n' ' <!-- Google Tag Manager -->\n' " <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n" " new Date().getTime(),event:'gtm.js'});var " 'f=d.getElementsByTagName(s)[0],\n' " j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n" ' ' "'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n" " })(window,document,'script','dataLayer','GTM-M6RBHTQ');\n" ' </script>\n' ' <!-- End Google Tag Manager -->\n' '\n' ' <link rel="preconnect" href="https://fonts.googleapis.com">\n' ' <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>\n' ' <link ' 'href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,600&display=swap" ' 'rel="stylesheet">\n' '\n' '\n' '</head>\n' '<body data-mobile-nav-trigger-alignment="right" ' 'data-mobile-nav-align="left"\n' ' data-mobile-nav-style="minimal"\n' ' data-mobile-nav-shceme="white" data-mobile-header-scheme="white"\n' ' data-mobile-nav-breakpoint="1199" id="top">\n', '\n' '\n' '<header class="main-header main-header-overlay bg-primary py-10 py-xl-0 ' 'box-shadow-1"\n' ' data-react-to-megamenu="true"\n' ' data-sticky-header="true"\n' ' data-sticky-options="{ \'stickyTrigger\': \'first-section\' }">\n' '\n' ' <div class="secondarybar-wrap bg-primary py-1">\n' ' <div class="container-fluid secondarybar-container">\n' ' <div class="secondarybar">\n' ' <a href="/">\n' ' <div class="row secondarybar-row align-items-center">\n' ' <div class="lqd-column col-12 text-center py-20 ' 'topbar-background"></div>\n' ' </div><!-- /.secondarybar-row -->\n' ' </a>\n' ' </div><!-- /.secondarybar -->\n' ' </div><!-- /.secondarybar-container -->\n' ' </div>\n' '\n' ' <div class="mainbar-wrap bg-primary">\n' ' <div class="megamenu-hover-bg"></div><!-- /.megamenu-hover-bg -->\n' ' <div class="container-fluid mainbar-container px-0">\n' ' <div class="mainbar">\n' ' <div class="row mainbar-row align-items-lg-stretch">\n' '\n' ' <div class="d-xl-none col-auto">\n' ' <div class="navbar-header">\n' ' <a class="navbar-brand" href="/" rel="home">\n' '\t\t\t\t\t\t\t\t<span class="navbar-brand-inner">\n' '\t\t\t\t\t\t\t\t\t<img class="logo-dark"\n' ' ' 'src="/static/img/euromedik-white-logo.svg"\n' ' alt="Euromedik">\n' '\t\t\t\t\t\t\t\t\t<img class="logo-sticky"\n' ' ' 'src="/static/img/euromedik-white-logo.svg"\n' ' alt="Euromedik">\n' '\t\t\t\t\t\t\t\t\t<img class="mobile-logo-default"\n' ' ' 'src="/static/img/euromedik-white-logo.svg"\n' ' … <trimmed 15117 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': None, 'view': <core.frontend.ServiceView object at 0x7f5aefd464e0>, 'compressed': {'name': None}}] |
node | <Block Node: content. Contents: [<TextNode: '\n'>]> |
self | [<django.template.defaulttags.LoadNode object at 0x7f5af0425ac8>, <TextNode: '\n'>, <django.template.defaulttags.LoadNode object at 0x7f5af0425cc0>, <TextNode: '\n\n'>, <django.template.defaulttags.LoadNode object at 0x7f5af0425940>, <TextNode: '\n<html>\n<head>\n '>, <Block Node: title. Contents: [<TextNode: '\n '>]>, <TextNode: '\n <meta charset="utf-8">'>, <django.templatetags.static.StaticNode object at 0x7f5af0425358>, <TextNode: '" />\n\n <link rel="styles'>, <django.templatetags.static.StaticNode object at 0x7f5af0425b38>, <TextNode: '">\n <link rel="styleshee'>, <django.templatetags.static.StaticNode object at 0x7f5af0081898>, <TextNode: '">\n <link rel="styleshee'>, <compressor.templatetags.compress.CompressorNode object at 0x7f5af0b465c0>, <TextNode: '\n <link rel="stylesheet"'>, <django.templatetags.static.StaticNode object at 0x7f5af0b46e10>, <TextNode: '">\n <!-- Google Tag Mana'>, <django.template.loader_tags.IncludeNode object at 0x7f5af0b46cf8>, <TextNode: '\n\n'>, <Block Node: content. Contents: [<TextNode: '\n'>]>, <TextNode: '\n\n'>, <django.template.loader_tags.IncludeNode object at 0x7f5aeef2cd68>, <TextNode: '\n<script src="'>, <django.templatetags.static.StaticNode object at 0x7f5af0b46f28>, <TextNode: '"></script>\n<script src="'>, <django.templatetags.static.StaticNode object at 0x7f5aeef2c908>, <TextNode: '"></script>\n<script src="'>, <django.templatetags.static.StaticNode object at 0x7f5aeef2cac8>, <TextNode: '"></script>\n<script\n '>, <django.templatetags.static.StaticNode object at 0x7f5aeef2c5c0>, <TextNode: '"\n type="text/java'>, <Block Node: user_scripts. Contents: [<TextNode: '\n'>]>, <TextNode: '\n<script>\n registerSea'>] |
/home/euromk/euromedik/env/lib/python3.7/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}, {}, {}, {'object': None, 'view': <core.frontend.ServiceView object at 0x7f5aefd464e0>, 'compressed': {'name': None}}] |
self | <Block Node: content. Contents: [<TextNode: '\n'>]> |
/home/euromk/euromedik/env/lib/python3.7/site-packages/django/template/loader_tags.py
in render
push = block = block_context.pop(self.name)
if block is None:
block = self
# Create new block so we can store context without thread-safety issues.
block = type(self)(block.name, block.nodelist)
block.context = context
context['block'] = block
result = block.nodelist.render(context)…
if push is not None:
block_context.push(self.name, push)
return result
def super(self):
if not hasattr(self, 'context'):
Variable | Value |
---|---|
block | <Block Node: content. Contents: [<TextNode: '\n <main id="content" c'>, <Variable Node: service.name>, <TextNode: '</h1>\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <django.template.defaulttags.URLNode object at 0x7f5af0559e48>, <TextNode: '"><span>'>, <django.templatetags.i18n.TranslateNode object at 0x7f5af02c4e80>, <TextNode: '</span></a>\n '>, <django.template.defaulttags.URLNode object at 0x7f5af069fd68>, <TextNode: '"><span>'>, <Variable Node: service.category>, <TextNode: '</span></a>\n '>, <Variable Node: service.name>, <TextNode: '</span></li>\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f5af069f828>, <TextNode: ':\n </h3>\n '>, <ForNode: for hospital in service.hospitals.all, tail_len: 21>, <TextNode: '\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f5aeeaf9048>, <TextNode: ':\n </h3>\n\n '>, <IfNode>, <TextNode: '\n\n </div>\n'>, <IfNode>, <TextNode: '\n </div>\n '>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f5aefd46f28> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': None, 'view': <core.frontend.ServiceView object at 0x7f5aefd464e0>, 'compressed': {'name': None}}] |
push | <Block Node: content. Contents: [<TextNode: '\n <main id="content" c'>, <Variable Node: service.name>, <TextNode: '</h1>\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <django.template.defaulttags.URLNode object at 0x7f5af0559e48>, <TextNode: '"><span>'>, <django.templatetags.i18n.TranslateNode object at 0x7f5af02c4e80>, <TextNode: '</span></a>\n '>, <django.template.defaulttags.URLNode object at 0x7f5af069fd68>, <TextNode: '"><span>'>, <Variable Node: service.category>, <TextNode: '</span></a>\n '>, <Variable Node: service.name>, <TextNode: '</span></li>\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f5af069f828>, <TextNode: ':\n </h3>\n '>, <ForNode: for hospital in service.hospitals.all, tail_len: 21>, <TextNode: '\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f5aeeaf9048>, <TextNode: ':\n </h3>\n\n '>, <IfNode>, <TextNode: '\n\n </div>\n'>, <IfNode>, <TextNode: '\n </div>\n '>]> |
self | <Block Node: content. Contents: [<TextNode: '\n'>]> |
/home/euromk/euromedik/env/lib/python3.7/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 | ('</span></a>\n' ' </li>\n' ' <li class="ml-0"><a\n' ' href="') |
bits | ['\n' ' <main id="content" class="content">\n' '\n' ' <section class="vc_row py-50 py-md-100 d-flex cross-bg">\n' ' <div class="container-fluid align-self-center">\n' ' <div class="row justify-content-center">\n' ' <div class="col-12 col-md-8 text-center text-white">\n' ' <h1 class="fs-46 font-weight-bold">', '', '</h1>\n ', '', '\n' ' <div class="price font-weight-bold">\n' ' ', '\n Cena na upit\n ', '\n </div>\n ', '', '\n' ' <ol class="breadcrumb reset-ul inline-nav ' 'comma-sep-li bordered text-light mt-25">\n' ' <li><a href="', '/usluge/', '"><span>', 'Usluge', '</span></a>\n' ' </li>\n' ' <li class="ml-0"><a\n' ' href="'] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': None, 'view': <core.frontend.ServiceView object at 0x7f5aefd464e0>, 'compressed': {'name': None}}] |
node | <django.template.defaulttags.URLNode object at 0x7f5af069fd68> |
self | [<TextNode: '\n <main id="content" c'>, <Variable Node: service.name>, <TextNode: '</h1>\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <IfNode>, <TextNode: '\n '>, <django.template.defaulttags.URLNode object at 0x7f5af0559e48>, <TextNode: '"><span>'>, <django.templatetags.i18n.TranslateNode object at 0x7f5af02c4e80>, <TextNode: '</span></a>\n '>, <django.template.defaulttags.URLNode object at 0x7f5af069fd68>, <TextNode: '"><span>'>, <Variable Node: service.category>, <TextNode: '</span></a>\n '>, <Variable Node: service.name>, <TextNode: '</span></li>\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f5af069f828>, <TextNode: ':\n </h3>\n '>, <ForNode: for hospital in service.hospitals.all, tail_len: 21>, <TextNode: '\n '>, <django.templatetags.i18n.TranslateNode object at 0x7f5aeeaf9048>, <TextNode: ':\n </h3>\n\n '>, <IfNode>, <TextNode: '\n\n </div>\n'>, <IfNode>, <TextNode: '\n </div>\n '>] |
/home/euromk/euromedik/env/lib/python3.7/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}, {}, {}, {'object': None, 'view': <core.frontend.ServiceView object at 0x7f5aefd464e0>, 'compressed': {'name': None}}] |
self | <django.template.defaulttags.URLNode object at 0x7f5af069fd68> |
/home/euromk/euromedik/env/lib/python3.7/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}, {}, {}, {'object': None, 'view': <core.frontend.ServiceView object at 0x7f5aefd464e0>, 'compressed': {'name': None}}] |
current_app | '' |
kwargs | {} |
reverse | <function reverse at 0x7f5af2a109d8> |
self | <django.template.defaulttags.URLNode object at 0x7f5af069fd68> |
url | '' |
view_name | 'categories-detail' |
/home/euromk/euromedik/env/lib/python3.7/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 | ['categories-detail'] |
path | [] |
prefix | '/' |
resolved_path | [] |
resolver | <URLResolver 'euromedic.urls' (None:None) '^/'> |
urlconf | 'euromedic.urls' |
view | 'categories-detail' |
viewname | 'categories-detail' |
/home/euromk/euromedik/env/lib/python3.7/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 | '/api/categories/%(pk)s/' |
candidate_subs | {'pk': ''} |
converters | {} |
defaults | {} |
k | 'pk' |
kwargs | {} |
lookup_view | 'categories-detail' |
lookup_view_s | 'categories-detail' |
m | None |
msg | ("Reverse for 'categories-detail' with arguments '('',)' not found. 3 " "pattern(s) tried: ['usluge/(?P<slug>[-a-zA-Z0-9_]+)/$', " "'api/categories/(?P<pk>[^/.]+)\\\\.(?P<format>[a-z0-9]+)/?$', " "'api/categories/(?P<pk>[^/.]+)/$']") |
n | None |
params | ['pk'] |
pattern | 'api/categories/(?P<pk>[^/.]+)/$' |
patterns | ['usluge/(?P<slug>[-a-zA-Z0-9_]+)/$', 'api/categories/(?P<pk>[^/.]+)\\.(?P<format>[a-z0-9]+)/?$', 'api/categories/(?P<pk>[^/.]+)/$'] |
possibilities | [([('usluge/%(slug)s/', ['slug'])], 'usluge/(?P<slug>[-a-zA-Z0-9_]+)/$', {}, {'slug': <django.urls.converters.SlugConverter object at 0x7f5af2a0be10>}), ([('api/categories/%(pk)s.%(format)s', ['pk', 'format'])], 'api/categories/(?P<pk>[^/.]+)\\.(?P<format>[a-z0-9]+)/?$', {}, {}), ([('api/categories/%(pk)s/', ['pk'])], 'api/categories/(?P<pk>[^/.]+)/$', {}, {})] |
possibility | [('api/categories/%(pk)s/', ['pk'])] |
result | 'api/categories/%(pk)s/' |
self | <URLResolver 'euromedic.urls' (None:None) '^/'> |
text_candidate_subs | {'pk': ''} |
v | '' |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CSRF_COOKIE | 'athDuwSw8KTyQmp8CacWeb10gyIgURJsp2ZIPYWYXPjktCl9wXqnPAgZO46cS8Jt' |
CSRF_COOKIE_USED | True |
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'euromedic.rs' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '54.166.200.255' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_REAL_IP | '54.166.200.255' |
PATH_INFO | '/usluga/specijalisticki-pregled-kardiologa/' |
QUERY_STRING | '' |
RAW_URI | '/usluga/specijalisticki-pregled-kardiologa/' |
REMOTE_ADDR | '' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | 'euromedic.rs' |
SERVER_PORT | '443' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'gunicorn/19.9.0' |
gunicorn.socket | <socket.socket fd=9, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0, laddr=/run/gunicorn.sock> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7f5aefd469b0> |
wsgi.file_wrapper | '' |
wsgi.input | <gunicorn.http.body.Body object at 0x7f5aefd465c0> |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
euromedic.settings-prod
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['*'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/home/euromk/euromedik' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
COMPRESSORS | {'css': 'compressor.css.CssCompressor', 'js': 'compressor.js.JsCompressor'} |
COMPRESS_CACHEABLE_PRECOMPILERS | () |
COMPRESS_CACHE_BACKEND | 'default' |
COMPRESS_CACHE_KEY_FUNCTION | '********************' |
COMPRESS_CLEAN_CSS_ARGUMENTS | '' |
COMPRESS_CLEAN_CSS_BINARY | 'cleancss' |
COMPRESS_CLOSURE_COMPILER_ARGUMENTS | '' |
COMPRESS_CLOSURE_COMPILER_BINARY | 'java -jar compiler.jar' |
COMPRESS_CSS_HASHING_METHOD | 'mtime' |
COMPRESS_DATA_URI_MAX_SIZE | 1024 |
COMPRESS_DEBUG_TOGGLE | None |
COMPRESS_ENABLED | False |
COMPRESS_FILTERS | {'css': ['compressor.filters.css_default.CssAbsoluteFilter'], 'js': ['compressor.filters.jsmin.JSMinFilter']} |
COMPRESS_JINJA2_GET_ENVIRONMENT | <function CompressorConf.JINJA2_GET_ENVIRONMENT at 0x7f5af1660950> |
COMPRESS_MINT_DELAY | 30 |
COMPRESS_MTIME_DELAY | 10 |
COMPRESS_OFFLINE | True |
COMPRESS_OFFLINE_CONTEXT | {'STATIC_URL': '/static/'} |
COMPRESS_OFFLINE_MANIFEST | 'manifest.json' |
COMPRESS_OFFLINE_TIMEOUT | 31536000 |
COMPRESS_OUTPUT_DIR | 'CACHE' |
COMPRESS_PARSER | 'compressor.parser.AutoSelectParser' |
COMPRESS_PRECOMPILERS | (('text/x-scss', 'django_libsass.SassCompiler'),) |
COMPRESS_REBUILD_TIMEOUT | 2592000 |
COMPRESS_ROOT | '/home/euromk/euromedik/static_out' |
COMPRESS_STORAGE | 'compressor.storage.CompressorFileStorage' |
COMPRESS_TEMPLATE_FILTER_CONTEXT | {'STATIC_URL': '/static/'} |
COMPRESS_URL | '/static/' |
COMPRESS_URL_PLACEHOLDER | '/__compressor_url_placeholder__/' |
COMPRESS_VERBOSE | False |
COMPRESS_YUGLIFY_BINARY | 'yuglify' |
COMPRESS_YUGLIFY_CSS_ARGUMENTS | '--terminal' |
COMPRESS_YUGLIFY_JS_ARGUMENTS | '--terminal' |
COMPRESS_YUI_BINARY | 'java -jar yuicompressor.jar' |
COMPRESS_YUI_CSS_ARGUMENTS | '' |
COMPRESS_YUI_JS_ARGUMENTS | '' |
CORS_ORIGIN_ALLOW_ALL | True |
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.postgresql_psycopg2', 'HOST': 'localhost', 'NAME': 'euromedik', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '5432', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'euromedikuser'}} |
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 | [] |
ELASTICSEARCH_DSL | {'default': {'hosts': 'localhost:9200'}} |
ELASTICSEARCH_INDEX_NAMES | {'core.documents.doctor': 'doctor', 'core.documents.service_en': 'service_en', 'core.documents.service_sq': 'service_sq', 'core.documents.service_sr': 'service_sr'} |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'localhost' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | '' |
EMAIL_PORT | 25 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | False |
FILE_CHARSET | 'utf-8' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['modeltranslation', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.humanize', 'corsheaders', 'rest_framework', 'django_elasticsearch_dsl', 'django_elasticsearch_dsl_drf', 'compressor', 'django_better_admin_arrayfield', 'core'] |
INTERNAL_IPS | [] |
LANGUAGES | (('sr-latn', 'Srpski'), ('sr', 'Српски')) |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
LANGUAGE_CODE | 'sr-latn' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LIBSASS_OUTPUT_STYLE | 'compressed' |
LOCALE_PATHS | ('/home/euromk/euromedik/locale',) |
LOGGING | {'filters': {'require_debug_true': {'()': 'django.utils.log.RequireDebugTrue'}}, 'handlers': {'console': {'class': 'logging.StreamHandler', 'filters': ['require_debug_true'], 'level': 'DEBUG'}}, 'version': 1} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | 'media/' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'corsheaders.middleware.CorsMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] |
MIGRATION_MODULES | {} |
MODELTRANSLATION_CUSTOM_FIELDS | ('ArrayField',) |
MODELTRANSLATION_DEFAULT_LANGUAGE | 'sr-latn' |
MODELTRANSLATION_PREPOPULATE_LANGUAGE | 'sr-latn' |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
REST_FRAMEWORK | {'DEFAULT_AUTHENTICATION_CLASSES': ('rest_framework.authentication.BasicAuthentication', 'rest_framework.authentication.SessionAuthentication'), 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination', 'ORDERING_PARAM': 'order', 'PAGE_SIZE': 100} |
ROOT_URLCONF | 'euromedic.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 | 'euromedic.settings-prod' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
STATICFILES_DIRS | ['/home/euromk/euromedik/static'] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'compressor.finders.CompressorFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage' |
STATIC_ROOT | 'static_out/' |
STATIC_URL | '/static/' |
SVG_UPLOAD_ROOT | 'safesvg/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/home/euromk/euromedik/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', 'core.context_processors.footer_hospitals']}}] |
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 | False |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'euromedic.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.