Reverse for 'author' with arguments '('Omankowski/Omansen', 'Willibald')' not found. 1 pattern(s) tried: ['autor/([^/]+)/([^/]+)/$']
Request Method: | GET |
---|---|
Request URL: | http://bazhum.muzhp.pl/autor/Lukas/Katarzyna/ |
Django Version: | 2.2.18 |
Exception Type: | NoReverseMatch |
Exception Value: | Reverse for 'author' with arguments '('Omankowski/Omansen', 'Willibald')' not found. 1 pattern(s) tried: ['autor/([^/]+)/([^/]+)/$'] |
Exception Location: | /usr/local/lib/python3.8/site-packages/django/urls/resolvers.py in _reverse_with_prefix, line 673 |
Python Executable: | /usr/local/bin/python |
Python Version: | 3.8.8 |
Python Path: | ['/src/czashum', '/usr/local/bin', '/usr/local/lib/python38.zip', '/usr/local/lib/python3.8', '/usr/local/lib/python3.8/lib-dynload', '/usr/local/lib/python3.8/site-packages'] |
Server time: | Czw, 18 Kwi 2024 19:00:40 +0200 |
In template /src/czashum/czashum/templates/tmpl_lista_artykulow.html
, error at line 65
55 | {% if art.number_id != -1 %}, Numer {{ art.number }}{% endif %}</a> |
---|---|
56 | </div> |
57 | {% endif %} |
58 | {% endif %} |
59 | |
60 | <td class="c2 autor"> |
61 | {% for auth in art.authors %}{% spaceless %} |
62 | {% if auth.surname == '' or auth.firstname == '' or auth.surname == None or auth.firstname == None %} |
63 | <a href="{% url 'authorByTitle' auth.title|iriencode %}">{{ auth.author }}</a> |
64 | {% else %} |
65 | <a href="{% url 'author' auth.surname|iriencode auth.firstname|iriencode %}">{{ auth.title }}</a> |
66 | {% endif %} |
67 | {% endspaceless %} |
68 | {% endfor %} |
69 | <!-- przejscie do widoku z autorem --> |
70 | <td class="c3 strony">{{ art.pages }} |
71 | <td class="c4"> |
72 | <ul class="czynnosci"> |
73 | {% if art.showPdf %} |
74 | <li> |
75 | <a class="czynnosc" target="_blank" href="{% buildfullurl art.pdf %}"> |
/usr/local/lib/python3.8/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 'author' with arguments '('Omankowski/Omansen', 'Willibald')' not found. 1 pattern(s) tried: ['autor/([^/]+)/([^/]+)/$']") |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7fe627a681f0>> |
request | <WSGIRequest: GET '/autor/Lukas/Katarzyna/'> |
/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py
in _get_response
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)
except Exception as e:
response = self.process_exception_by_middleware(e, request)…
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
view_name = callback.__name__
else: # CBV
Variable | Value |
---|---|
callback | <function AuthorView at 0x7fe626fcfca0> |
callback_args | ('Lukas', 'Katarzyna') |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7fe627052e20>> |
request | <WSGIRequest: GET '/autor/Lukas/Katarzyna/'> |
resolver | <URLResolver 'czashum_www.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=czashum.views.AuthorView, args=('Lukas', 'Katarzyna'), kwargs={}, url_name=author, app_names=[], namespaces=[], route=^autor/([^/]+)/([^/]+)/$) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fe627a681f0> |
wrapped_callback | <function AuthorView at 0x7fe626fcfca0> |
/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py
in _get_response
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)…
except Exception as e:
response = self.process_exception_by_middleware(e, request)
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
Variable | Value |
---|---|
callback | <function AuthorView at 0x7fe626fcfca0> |
callback_args | ('Lukas', 'Katarzyna') |
callback_kwargs | {} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7fe627052e20>> |
request | <WSGIRequest: GET '/autor/Lukas/Katarzyna/'> |
resolver | <URLResolver 'czashum_www.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=czashum.views.AuthorView, args=('Lukas', 'Katarzyna'), kwargs={}, url_name=author, app_names=[], namespaces=[], route=^autor/([^/]+)/([^/]+)/$) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fe627a681f0> |
wrapped_callback | <function AuthorView at 0x7fe626fcfca0> |
/usr/local/lib/python3.8/site-packages/django/views/generic/base.py
in view
self.head = self.get
self.setup(request, *args, **kwargs)
if not hasattr(self, 'request'):
raise AttributeError(
"%s instance has no 'request' attribute. Did you override "
"setup() and forget to call super()?" % cls.__name__
)
return self.dispatch(request, *args, **kwargs)…
view.view_class = cls
view.view_initkwargs = initkwargs
# take name and docstring from class
update_wrapper(view, cls, updated=())
Variable | Value |
---|---|
args | ('Lukas', 'Katarzyna') |
cls | <class 'czashum.views.AuthorView'> |
initkwargs | {} |
kwargs | {} |
request | <WSGIRequest: GET '/autor/Lukas/Katarzyna/'> |
self | <czashum.views.AuthorView object at 0x7fe620d89df0> |
/usr/local/lib/python3.8/site-packages/django/views/generic/base.py
in dispatch
# Try to dispatch to the right method; if a method doesn't exist,
# defer to the error handler. Also defer to the error handler if the
# request method isn't on the approved list.
if request.method.lower() in self.http_method_names:
handler = getattr(self, request.method.lower(), self.http_method_not_allowed)
else:
handler = self.http_method_not_allowed
return handler(request, *args, **kwargs)…
def http_method_not_allowed(self, request, *args, **kwargs):
logger.warning(
'Method Not Allowed (%s): %s', request.method, request.path,
extra={'status_code': 405, 'request': request}
)
Variable | Value |
---|---|
args | ('Lukas', 'Katarzyna') |
handler | <bound method AuthorView.get of <czashum.views.AuthorView object at 0x7fe620d89df0>> |
kwargs | {} |
request | <WSGIRequest: GET '/autor/Lukas/Katarzyna/'> |
self | <czashum.views.AuthorView object at 0x7fe620d89df0> |
/src/czashum/czashum/views.py
in get
"listTitle": author_name,
"articles_count": articles_count,
"articles_noun": inflect_noun_pl("artykuł", articles_count),
"header": HEADER,
"footer": FOOTER,
"query": True,
}
return render(request, "page_autor.php", context)…
class AuthorViewByTitle(View):
def get(self, request, title):
author_name = unquote(title)
articles = get_articles_for("", "", title)
Variable | Value |
---|---|
articles | [ArticleIndex(index='articles', id='510877'), ArticleIndex(index='articles', id='511122'), ArticleIndex(index='articles', id='509083'), ArticleIndex(index='articles', id='373063'), ArticleIndex(index='articles', id='511132'), ArticleIndex(index='articles', id='510716'), ArticleIndex(index='articles', id='381359'), ArticleIndex(index='articles', id='511538'), ArticleIndex(index='articles', id='405693'), ArticleIndex(index='articles', id='509112'), ArticleIndex(index='articles', id='436225'), ArticleIndex(index='articles', id='511951'), ArticleIndex(index='articles', id='510966'), ArticleIndex(index='articles', id='510968'), ArticleIndex(index='articles', id='375205')] |
articles_count | 15 |
author_name | 'Katarzyna Lukas' |
context | {'articles': [ArticleIndex(index='articles', id='510877'), ArticleIndex(index='articles', id='511122'), ArticleIndex(index='articles', id='509083'), ArticleIndex(index='articles', id='373063'), ArticleIndex(index='articles', id='511132'), ArticleIndex(index='articles', id='510716'), ArticleIndex(index='articles', id='381359'), ArticleIndex(index='articles', id='511538'), ArticleIndex(index='articles', id='405693'), ArticleIndex(index='articles', id='509112'), ArticleIndex(index='articles', id='436225'), ArticleIndex(index='articles', id='511951'), ArticleIndex(index='articles', id='510966'), ArticleIndex(index='articles', id='510968'), ArticleIndex(index='articles', id='375205')], 'articles_count': 15, 'articles_noun': 'artykułów', 'footer': 'tmpl_tail_czashum.php', 'header': 'tmpl_top_czashum.html', 'listTitle': 'Katarzyna Lukas', 'query': True} |
firstname | 'Katarzyna' |
request | <WSGIRequest: GET '/autor/Lukas/Katarzyna/'> |
self | <czashum.views.AuthorView object at 0x7fe620d89df0> |
surname | 'Lukas' |
/usr/local/lib/python3.8/site-packages/django/shortcuts.py
in render
def render(request, template_name, context=None, content_type=None, status=None, using=None):
"""
Return a HttpResponse whose content is filled with the result of calling
django.template.loader.render_to_string() with the passed arguments.
"""
content = loader.render_to_string(template_name, context, request, using=using)…
return HttpResponse(content, content_type, status)
def redirect(to, *args, permanent=False, **kwargs):
"""
Return an HttpResponseRedirect to the appropriate URL for the arguments
Variable | Value |
---|---|
content_type | None |
context | {'articles': [ArticleIndex(index='articles', id='510877'), ArticleIndex(index='articles', id='511122'), ArticleIndex(index='articles', id='509083'), ArticleIndex(index='articles', id='373063'), ArticleIndex(index='articles', id='511132'), ArticleIndex(index='articles', id='510716'), ArticleIndex(index='articles', id='381359'), ArticleIndex(index='articles', id='511538'), ArticleIndex(index='articles', id='405693'), ArticleIndex(index='articles', id='509112'), ArticleIndex(index='articles', id='436225'), ArticleIndex(index='articles', id='511951'), ArticleIndex(index='articles', id='510966'), ArticleIndex(index='articles', id='510968'), ArticleIndex(index='articles', id='375205')], 'articles_count': 15, 'articles_noun': 'artykułów', 'footer': 'tmpl_tail_czashum.php', 'header': 'tmpl_top_czashum.html', 'listTitle': 'Katarzyna Lukas', 'query': True} |
request | <WSGIRequest: GET '/autor/Lukas/Katarzyna/'> |
status | None |
template_name | 'page_autor.php' |
using | None |
/usr/local/lib/python3.8/site-packages/django/template/loader.py
in render_to_string
template_name may be a string or a list of strings.
"""
if isinstance(template_name, (list, tuple)):
template = select_template(template_name, using=using)
else:
template = get_template(template_name, using=using)
return template.render(context, request)…
def _engine_list(using=None):
return engines.all() if using is None else [engines[using]]
Variable | Value |
---|---|
context | {'articles': [ArticleIndex(index='articles', id='510877'), ArticleIndex(index='articles', id='511122'), ArticleIndex(index='articles', id='509083'), ArticleIndex(index='articles', id='373063'), ArticleIndex(index='articles', id='511132'), ArticleIndex(index='articles', id='510716'), ArticleIndex(index='articles', id='381359'), ArticleIndex(index='articles', id='511538'), ArticleIndex(index='articles', id='405693'), ArticleIndex(index='articles', id='509112'), ArticleIndex(index='articles', id='436225'), ArticleIndex(index='articles', id='511951'), ArticleIndex(index='articles', id='510966'), ArticleIndex(index='articles', id='510968'), ArticleIndex(index='articles', id='375205')], 'articles_count': 15, 'articles_noun': 'artykułów', 'footer': 'tmpl_tail_czashum.php', 'header': 'tmpl_top_czashum.html', 'listTitle': 'Katarzyna Lukas', 'query': True} |
request | <WSGIRequest: GET '/autor/Lukas/Katarzyna/'> |
template | <django.template.backends.django.Template object at 0x7fe620ffc6a0> |
template_name | 'page_autor.php' |
using | None |
/usr/local/lib/python3.8/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}, {}, {}, {'articles': [ArticleIndex(index='articles', id='510877'), ArticleIndex(index='articles', id='511122'), ArticleIndex(index='articles', id='509083'), ArticleIndex(index='articles', id='373063'), ArticleIndex(index='articles', id='511132'), ArticleIndex(index='articles', id='510716'), ArticleIndex(index='articles', id='381359'), ArticleIndex(index='articles', id='511538'), ArticleIndex(index='articles', id='405693'), ArticleIndex(index='articles', id='509112'), ArticleIndex(index='articles', id='436225'), ArticleIndex(index='articles', id='511951'), ArticleIndex(index='articles', id='510966'), ArticleIndex(index='articles', id='510968'), ArticleIndex(index='articles', id='375205')], 'listTitle': 'Katarzyna Lukas', 'articles_count': 15, 'articles_noun': 'artykułów', 'header': 'tmpl_top_czashum.html', 'footer': 'tmpl_tail_czashum.php', 'query': True}] |
request | <WSGIRequest: GET '/autor/Lukas/Katarzyna/'> |
self | <django.template.backends.django.Template object at 0x7fe620ffc6a0> |
/usr/local/lib/python3.8/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}, {}, {}, {'articles': [ArticleIndex(index='articles', id='510877'), ArticleIndex(index='articles', id='511122'), ArticleIndex(index='articles', id='509083'), ArticleIndex(index='articles', id='373063'), ArticleIndex(index='articles', id='511132'), ArticleIndex(index='articles', id='510716'), ArticleIndex(index='articles', id='381359'), ArticleIndex(index='articles', id='511538'), ArticleIndex(index='articles', id='405693'), ArticleIndex(index='articles', id='509112'), ArticleIndex(index='articles', id='436225'), ArticleIndex(index='articles', id='511951'), ArticleIndex(index='articles', id='510966'), ArticleIndex(index='articles', id='510968'), ArticleIndex(index='articles', id='375205')], 'listTitle': 'Katarzyna Lukas', 'articles_count': 15, 'articles_noun': 'artykułów', 'header': 'tmpl_top_czashum.html', 'footer': 'tmpl_tail_czashum.php', 'query': True}] |
self | <django.template.base.Template object at 0x7fe620d92fd0> |
/usr/local/lib/python3.8/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}, {}, {}, {'articles': [ArticleIndex(index='articles', id='510877'), ArticleIndex(index='articles', id='511122'), ArticleIndex(index='articles', id='509083'), ArticleIndex(index='articles', id='373063'), ArticleIndex(index='articles', id='511132'), ArticleIndex(index='articles', id='510716'), ArticleIndex(index='articles', id='381359'), ArticleIndex(index='articles', id='511538'), ArticleIndex(index='articles', id='405693'), ArticleIndex(index='articles', id='509112'), ArticleIndex(index='articles', id='436225'), ArticleIndex(index='articles', id='511951'), ArticleIndex(index='articles', id='510966'), ArticleIndex(index='articles', id='510968'), ArticleIndex(index='articles', id='375205')], 'listTitle': 'Katarzyna Lukas', 'articles_count': 15, 'articles_noun': 'artykułów', 'header': 'tmpl_top_czashum.html', 'footer': 'tmpl_tail_czashum.php', 'query': True}] |
self | <django.template.base.Template object at 0x7fe620d92fd0> |
/usr/local/lib/python3.8/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\n<!-- korzystamy z tego samego kodu, który listuje spis treści -->\n\n' |
bits | ['\n' '<!DOCTYPE html>\n' '<head>\n' '<!-- michal.szotaXgmail.com -->\n' '\t<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n' '\t<title></title>\n' '\n' '\t<meta property="og:title" content="Test">\n' '\t<meta property="og:image" content="">\n' '\t<meta property="og:type" content="website">\n' '\t<meta property="og:description" content="">\n' '\t<meta name="description" content="">\n' '\t<meta name="robots" content="index,follow">\n' '\t<meta http-equiv="imagetoolbar" content="no">\n' '\n' '\t<script ' 'src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>\n' '\n' '\t<link rel="stylesheet" ' 'href="/static/font-awesome-4.0.1/css/font-awesome.min.css">\n' '\t<link rel="icon" href="favicon.ico" type="image/ico">\n' '\n' '\t<script type="text/javascript">\n' '\tWebFontConfig = {\n' "\tgoogle: { families: [ 'Open+Sans:400italic,400,700:latin,latin-ext', " "'Archivo+Black::latin,latin-ext' ] }\n" '\t};\n' '\t(function() {\n' "\tvar wf = document.createElement('script');\n" "\twf.src = ('https:' == document.location.protocol ? 'https' : 'http') +\n" "\t'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';\n" "\twf.type = 'text/javascript';\n" "\twf.async = 'true';\n" "\tvar s = document.getElementsByTagName('script')[0];\n" '\ts.parentNode.insertBefore(wf, s);\n' '\t})(); </script>\n' '\n' '\t<link rel="stylesheet/less" type="text/css" href="/static/style.less">\n' '\t<script type="text/javascript" src="/static/less-1.3.0.min.js"></script>\n' '\t<script>\n' '\tvar less = {env: "development"};\n' '\tlocalStorage.clear();\n' '\t</script>\n' '\n' '<script>\n' ' ' "(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n" ' (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new ' 'Date();a=s.createElement(o),\n' ' ' 'm=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n' ' ' "})(window,document,'script','//www.google-analytics.com/analytics.js','ga');\n" '\n' " ga('create', 'UA-70803376-1', 'auto');\n" " ga('send', 'pageview');\n" '\n' '</script>\n' '\n' '\t<script>\n' '\t\t$(function() {\n' "\t\t\t$('.box_okladka_big .fg').addClass('open'); // animacja okładki " 'poprzez css transition\n' '\n' "\t\t\t$('.czynnosc.udostepnij').click(function() {\n" "\t\t\t\t$('.opis',this).hide();\n" "\t\t\t\t$('.udostepnij_menu',this).slideDown();\n" '\t\t\t});\n' '\n' "\t\t\t$('.czynnosc.zacytuj').click(function() {\n" "\t\t\t\t$t=$(this).parents('tr').next('.cytowanie');\n" '\t\t\t\t$t.toggle();\n' "\t\t\t\t$('.item',$t).slideDown();\n" '\t\t\t});\n' '\n' '\n' '\t\t\t$(window).resize(function() {\n' "\t\t\t\t$ts=$('.textpage .sidebar'); $tm=$('.textpage .mainbar');\n" '\t\t\t\tif ($ts.outerHeight()<$tm.outerHeight()) ' '$ts.height($tm.outerHeight());\n' '\n' '\t\t\t\t// stopka zawsze na dole\n' "\t\t\t\t$f=$('footer');\n" "\t\t\t\tif ($('#contentwrap').height() < $(window).height()) {\n" '\t\t\t\t\t' "$('.spacer',$f).height($(window).height()-$('#contentwrap').height()-$('.footercontent',$f).outerHeight());\n" '\t\t\t\t}\n' '\n' '\t\t\t}).resize();\n' '\n' '\t\t\t$(window).load(function() {\n' '\t\t\t\t$(window).resize();\n' '\t\t\t});\n' '\t\t});\n' '\t</script>\n' '\n' '<body>\n' '<div id="contentwrap">\n', '\n', '<!-- linki są ustawione na sztywno i oczywiscie tymczasowe -->\n' '<div class="block_top">\n' '\t<div class="blockwrap">\n' '\t\t<div class="box_logo">\n' '\t\t\t<h1><a href="/">Czasopisma<br>humanistyczne</a></h1>\n' '\t\t\t<div class="submenu">\n' '\t\t\t\t<a href="/oprojekcie/">O projekcie</a>\n' '\n' '\t\t\t\t<!-- mozna dokladac wiecej pozycji -->\n' '\t\t\t</div>\n' '\t\t</div>\n' '\n' '\t\t<div class="box_menu">\n' '\t\t\t<a href="/czasopismo/lista/">Lista<br>czasopism</a>\n' '\t\t</div>\n' '\t\t<div class="box_menu">\n' '\t\t\t<a href="/autor/lista/">Lista<br>autorów</a>\n' '\t\t</div>\n' '\t\t<div class="box_menu">\n' '\t\t\t<a href="/wydawnictwo/lista/">Lista<br>wydawnictw</a>\n' '\t\t</div>\n' '\t\t<div class=… <trimmed 4603 bytes string> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'articles': [ArticleIndex(index='articles', id='510877'), ArticleIndex(index='articles', id='511122'), ArticleIndex(index='articles', id='509083'), ArticleIndex(index='articles', id='373063'), ArticleIndex(index='articles', id='511132'), ArticleIndex(index='articles', id='510716'), ArticleIndex(index='articles', id='381359'), ArticleIndex(index='articles', id='511538'), ArticleIndex(index='articles', id='405693'), ArticleIndex(index='articles', id='509112'), ArticleIndex(index='articles', id='436225'), ArticleIndex(index='articles', id='511951'), ArticleIndex(index='articles', id='510966'), ArticleIndex(index='articles', id='510968'), ArticleIndex(index='articles', id='375205')], 'listTitle': 'Katarzyna Lukas', 'articles_count': 15, 'articles_noun': 'artykułów', 'header': 'tmpl_top_czashum.html', 'footer': 'tmpl_tail_czashum.php', 'query': True}] |
node | <django.template.loader_tags.IncludeNode object at 0x7fe620d66580> |
self | [<django.template.loader_tags.IncludeNode object at 0x7fe620d898e0>, <TextNode: '\n'>, <django.template.loader_tags.IncludeNode object at 0x7fe620d89f40>, <TextNode: '\n\n\n<!-- korzystamy z tego'>, <django.template.loader_tags.IncludeNode object at 0x7fe620d66580>, <TextNode: '\n\n\n'>, <django.template.loader_tags.IncludeNode object at 0x7fe620d66e80>, <TextNode: '\n'>] |
/usr/local/lib/python3.8/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}, {}, {}, {'articles': [ArticleIndex(index='articles', id='510877'), ArticleIndex(index='articles', id='511122'), ArticleIndex(index='articles', id='509083'), ArticleIndex(index='articles', id='373063'), ArticleIndex(index='articles', id='511132'), ArticleIndex(index='articles', id='510716'), ArticleIndex(index='articles', id='381359'), ArticleIndex(index='articles', id='511538'), ArticleIndex(index='articles', id='405693'), ArticleIndex(index='articles', id='509112'), ArticleIndex(index='articles', id='436225'), ArticleIndex(index='articles', id='511951'), ArticleIndex(index='articles', id='510966'), ArticleIndex(index='articles', id='510968'), ArticleIndex(index='articles', id='375205')], 'listTitle': 'Katarzyna Lukas', 'articles_count': 15, 'articles_noun': 'artykułów', 'header': 'tmpl_top_czashum.html', 'footer': 'tmpl_tail_czashum.php', 'query': True}] |
self | <django.template.loader_tags.IncludeNode object at 0x7fe620d66580> |
/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py
in render
values = {
name: var.resolve(context)
for name, var in self.extra_context.items()
}
if self.isolated_context:
return template.render(context.new(values))
with context.push(**values):
return template.render(context)…
@register.tag('block')
def do_block(parser, token):
"""
Define a block that can be overridden by child templates.
Variable | Value |
---|---|
cache | {'tmpl_lista_artykulow.html': <django.template.base.Template object at 0x7fe620dafd60>} |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'articles': [ArticleIndex(index='articles', id='510877'), ArticleIndex(index='articles', id='511122'), ArticleIndex(index='articles', id='509083'), ArticleIndex(index='articles', id='373063'), ArticleIndex(index='articles', id='511132'), ArticleIndex(index='articles', id='510716'), ArticleIndex(index='articles', id='381359'), ArticleIndex(index='articles', id='511538'), ArticleIndex(index='articles', id='405693'), ArticleIndex(index='articles', id='509112'), ArticleIndex(index='articles', id='436225'), ArticleIndex(index='articles', id='511951'), ArticleIndex(index='articles', id='510966'), ArticleIndex(index='articles', id='510968'), ArticleIndex(index='articles', id='375205')], 'listTitle': 'Katarzyna Lukas', 'articles_count': 15, 'articles_noun': 'artykułów', 'header': 'tmpl_top_czashum.html', 'footer': 'tmpl_tail_czashum.php', 'query': True}] |
self | <django.template.loader_tags.IncludeNode object at 0x7fe620d66580> |
template | <django.template.base.Template object at 0x7fe620dafd60> |
template_name | 'tmpl_lista_artykulow.html' |
values | {} |
/usr/local/lib/python3.8/site-packages/django/template/base.py
in render
"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
is True and an exception occurs during parsing, the exception is
is annotated with contextual line information where it occurred in the
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'articles': [ArticleIndex(index='articles', id='510877'), ArticleIndex(index='articles', id='511122'), ArticleIndex(index='articles', id='509083'), ArticleIndex(index='articles', id='373063'), ArticleIndex(index='articles', id='511132'), ArticleIndex(index='articles', id='510716'), ArticleIndex(index='articles', id='381359'), ArticleIndex(index='articles', id='511538'), ArticleIndex(index='articles', id='405693'), ArticleIndex(index='articles', id='509112'), ArticleIndex(index='articles', id='436225'), ArticleIndex(index='articles', id='511951'), ArticleIndex(index='articles', id='510966'), ArticleIndex(index='articles', id='510968'), ArticleIndex(index='articles', id='375205')], 'listTitle': 'Katarzyna Lukas', 'articles_count': 15, 'articles_noun': 'artykułów', 'header': 'tmpl_top_czashum.html', 'footer': 'tmpl_tail_czashum.php', 'query': True}] |
self | <django.template.base.Template object at 0x7fe620dafd60> |
/usr/local/lib/python3.8/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}, {}, {}, {'articles': [ArticleIndex(index='articles', id='510877'), ArticleIndex(index='articles', id='511122'), ArticleIndex(index='articles', id='509083'), ArticleIndex(index='articles', id='373063'), ArticleIndex(index='articles', id='511132'), ArticleIndex(index='articles', id='510716'), ArticleIndex(index='articles', id='381359'), ArticleIndex(index='articles', id='511538'), ArticleIndex(index='articles', id='405693'), ArticleIndex(index='articles', id='509112'), ArticleIndex(index='articles', id='436225'), ArticleIndex(index='articles', id='511951'), ArticleIndex(index='articles', id='510966'), ArticleIndex(index='articles', id='510968'), ArticleIndex(index='articles', id='375205')], 'listTitle': 'Katarzyna Lukas', 'articles_count': 15, 'articles_noun': 'artykułów', 'header': 'tmpl_top_czashum.html', 'footer': 'tmpl_tail_czashum.php', 'query': True}] |
self | <django.template.base.Template object at 0x7fe620dafd60> |
/usr/local/lib/python3.8/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' ' <th class="c2">Autorzy\n' ' <th class="c3">Strony\n' ' <th class="c4">Czynności\n' ' <!-- mozna tu zaimplementować sortowanie po tych ' 'kolumnach -->\n' ' </table>\n' '\n' ' <table border=0 cellspacing=0 cellpadding=0 class="lista">\n' ' ') |
bits | ['', '\n' '\n' '<div class="block_lista_artykulow">\n' ' <div class="blockwrap">\n' ' <div class="col6x">\n' ' <div class="count">', 'Znaleziono 15\n artykułów', '</div>\n <h2 class="boxheader">\n ', 'Katarzyna Lukas', '\n' ' <!-- tu w zależności od kontekstu zmienia się tytuł, np. ' '"Spis treści" albo nazwisko autora -->\n' ' </h2>\n' ' </div>\n' ' </div>\n' '\n' ' <div class="blockwrap">\n' ' <div class="col6x">\n' ' <table border=0 cellspacing=0 cellpadding=0 class="naglowki">\n' ' <tr>\n' ' <th class="c1">Tytuł artykułu ', '', '\n' ' <th class="c2">Autorzy\n' ' <th class="c3">Strony\n' ' <th class="c4">Czynności\n' ' <!-- mozna tu zaimplementować sortowanie po tych ' 'kolumnach -->\n' ' </table>\n' '\n' ' <table border=0 cellspacing=0 cellpadding=0 class="lista">\n' ' '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'articles': [ArticleIndex(index='articles', id='510877'), ArticleIndex(index='articles', id='511122'), ArticleIndex(index='articles', id='509083'), ArticleIndex(index='articles', id='373063'), ArticleIndex(index='articles', id='511132'), ArticleIndex(index='articles', id='510716'), ArticleIndex(index='articles', id='381359'), ArticleIndex(index='articles', id='511538'), ArticleIndex(index='articles', id='405693'), ArticleIndex(index='articles', id='509112'), ArticleIndex(index='articles', id='436225'), ArticleIndex(index='articles', id='511951'), ArticleIndex(index='articles', id='510966'), ArticleIndex(index='articles', id='510968'), ArticleIndex(index='articles', id='375205')], 'listTitle': 'Katarzyna Lukas', 'articles_count': 15, 'articles_noun': 'artykułów', 'header': 'tmpl_top_czashum.html', 'footer': 'tmpl_tail_czashum.php', 'query': True}] |
node | <ForNode: for art in articles, tail_len: 37> |
self | [<django.template.defaulttags.LoadNode object at 0x7fe620d47220>, <TextNode: '\n\n<div class="block_lista'>, <IfNode>, <TextNode: '</div>\n <h2 cl'>, <Variable Node: listTitle>, <TextNode: '\n <!-- tu '>, <IfNode>, <TextNode: '\n <th '>, <ForNode: for art in articles, tail_len: 37>, <TextNode: '\n </table>\n '>, <IfNode>, <TextNode: '\n <!-- /pagina'>] |
/usr/local/lib/python3.8/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}, {}, {}, {'articles': [ArticleIndex(index='articles', id='510877'), ArticleIndex(index='articles', id='511122'), ArticleIndex(index='articles', id='509083'), ArticleIndex(index='articles', id='373063'), ArticleIndex(index='articles', id='511132'), ArticleIndex(index='articles', id='510716'), ArticleIndex(index='articles', id='381359'), ArticleIndex(index='articles', id='511538'), ArticleIndex(index='articles', id='405693'), ArticleIndex(index='articles', id='509112'), ArticleIndex(index='articles', id='436225'), ArticleIndex(index='articles', id='511951'), ArticleIndex(index='articles', id='510966'), ArticleIndex(index='articles', id='510968'), ArticleIndex(index='articles', id='375205')], 'listTitle': 'Katarzyna Lukas', 'articles_count': 15, 'articles_noun': 'artykułów', 'header': 'tmpl_top_czashum.html', 'footer': 'tmpl_tail_czashum.php', 'query': True}] |
self | <ForNode: for art in articles, tail_len: 37> |
/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py
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}, {}, {}, {'articles': [ArticleIndex(index='articles', id='510877'), ArticleIndex(index='articles', id='511122'), ArticleIndex(index='articles', id='509083'), ArticleIndex(index='articles', id='373063'), ArticleIndex(index='articles', id='511132'), ArticleIndex(index='articles', id='510716'), ArticleIndex(index='articles', id='381359'), ArticleIndex(index='articles', id='511538'), ArticleIndex(index='articles', id='405693'), ArticleIndex(index='articles', id='509112'), ArticleIndex(index='articles', id='436225'), ArticleIndex(index='articles', id='511951'), ArticleIndex(index='articles', id='510966'), ArticleIndex(index='articles', id='510968'), ArticleIndex(index='articles', id='375205')], 'listTitle': 'Katarzyna Lukas', 'articles_count': 15, 'articles_noun': 'artykułów', 'header': 'tmpl_top_czashum.html', 'footer': 'tmpl_tail_czashum.php', 'query': True}] |
i | 12 |
item | ArticleIndex(index='articles', id='510966') |
len_values | 15 |
loop_dict | {'counter': 13, 'counter0': 12, 'first': False, 'last': False, 'parentloop': {}, 'revcounter': 3, 'revcounter0': 2} |
node | <ForNode: for auth in art.authors, tail_len: 2> |
nodelist | ['\n' '\n' ' <tr>\n' ' <td class="c1 tytul">\n' ' ', '\n' ' <a target="_blank" ' 'href="http://bazhum.muzhp.pl/media//files/Studia_Germanica_Gedanensia/Studia_Germanica_Gedanensia-r2011-t25/Studia_Germanica_Gedanensia-r2011-t25-s9-20/Studia_Germanica_Gedanensia-r2011-t25-s9-20.pdf"><!-- ' 'ten sam link co czynność "pełny tekst" -->\n' ' Sprach‑ und Kulturkontakte aus ' 'interkultureller Sicht\n' ' </a>\n' ' \n' ' <div class="published_in">\n' ' <a href="/czasopismo/734/?idvol=\n' ' 11956">\n' ' Studia Germanica Gedanensia,\n' ' 2011, Tom 25\n' ' </a>\n' ' </div>\n' ' \n' ' ', '\n' '\n' ' <td class="c2 autor">\n' ' ', '<a href="/autor/K%25C4%2585tny/Andrzej/">Andrzej Kątny</a>\n' ' <a href="/autor/Lukas/Katarzyna/">Katarzyna ' 'Lukas</a>\n' ' ', '\n' ' <!-- przejscie do widoku z autorem -->\n' ' <td class="c3 strony">', 's. 9-20', '\n' ' <td class="c4">\n' ' <ul class="czynnosci">\n' ' ', '\n' ' <li>\n' ' <a class="czynnosc" target="_blank" ' 'href="http://bazhum.muzhp.pl/media//files/Studia_Germanica_Gedanensia/Studia_Germanica_Gedanensia-r2011-t25/Studia_Germanica_Gedanensia-r2011-t25-s9-20/Studia_Germanica_Gedanensia-r2011-t25-s9-20.pdf">\n' ' <span class="ikona"><i class="fa ' 'fa-file-text-o"></i></span>\n' ' <span class="opis">Pełny ' 'tekst</span>\n' ' </a>\n' ' <li>', '\n' ' <div class="czynnosc zacytuj">\n' ' <span class="ikona"><i class="fa ' 'fa-comment"></i></span>\n' ' <span class="opis">Zacytuj</span>\n' ' </div>\n' '\n' ' <li>\n' ' <div class="czynnosc udostepnij">\n' ' <span class="ikona"><i class="fa ' 'fa-share"></i></span>\n' ' <span ' 'class="opis">Udostępnij</span>\n' '\n' ' <div class="udostepnij_menu" ' 'style="display: none;">\n' ' <a ' 'href="http://www.facebook.com/sharer/sharer.php?u=', '', '/share/', '510877', '"\n' ' ' 'onclick="javascript:window.open(this.href,\'\', ' "'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return " 'false;">\n' ' <span class="ikona"><i ' 'class="fa fa-facebook"></i></span>\n' ' </a>\n' ' <a ' 'href="http://twitter.com/share?text=Interesujący artykuł w czasopiśmie ', '', ' pt. ', 'Sprach‑ und Kulturkontakte aus interkultureller Sicht', '&url=', 'http://bazhum.muzhp.pl/media//files/Studia_Germanica_Gedanensia/Studia_Germanica_Gedanensia-r2011-t25/Studia_Germanica_Gedanensia-r2011-t25-s9-20/Studia_Germanica_Gedanensia-r2011-t25-s9-20.pdf', '"\n' ' ' 'onclick="javascript:window.open(this.href,\'\', ' … <trimmed 107502 bytes string> |
num_loopvars | 1 |
parentloop | {} |
pop_context | False |
self | <ForNode: for art in articles, tail_len: 37> |
unpack | False |
values | [ArticleIndex(index='articles', id='510877'), ArticleIndex(index='articles', id='511122'), ArticleIndex(index='articles', id='509083'), ArticleIndex(index='articles', id='373063'), ArticleIndex(index='articles', id='511132'), ArticleIndex(index='articles', id='510716'), ArticleIndex(index='articles', id='381359'), ArticleIndex(index='articles', id='511538'), ArticleIndex(index='articles', id='405693'), ArticleIndex(index='articles', id='509112'), ArticleIndex(index='articles', id='436225'), ArticleIndex(index='articles', id='511951'), ArticleIndex(index='articles', id='510966'), ArticleIndex(index='articles', id='510968'), ArticleIndex(index='articles', id='375205')] |
/usr/local/lib/python3.8/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}, {}, {}, {'articles': [ArticleIndex(index='articles', id='510877'), ArticleIndex(index='articles', id='511122'), ArticleIndex(index='articles', id='509083'), ArticleIndex(index='articles', id='373063'), ArticleIndex(index='articles', id='511132'), ArticleIndex(index='articles', id='510716'), ArticleIndex(index='articles', id='381359'), ArticleIndex(index='articles', id='511538'), ArticleIndex(index='articles', id='405693'), ArticleIndex(index='articles', id='509112'), ArticleIndex(index='articles', id='436225'), ArticleIndex(index='articles', id='511951'), ArticleIndex(index='articles', id='510966'), ArticleIndex(index='articles', id='510968'), ArticleIndex(index='articles', id='375205')], 'listTitle': 'Katarzyna Lukas', 'articles_count': 15, 'articles_noun': 'artykułów', 'header': 'tmpl_top_czashum.html', 'footer': 'tmpl_tail_czashum.php', 'query': True}] |
self | <ForNode: for auth in art.authors, tail_len: 2> |
/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py
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}, {}, {}, {'articles': [ArticleIndex(index='articles', id='510877'), ArticleIndex(index='articles', id='511122'), ArticleIndex(index='articles', id='509083'), ArticleIndex(index='articles', id='373063'), ArticleIndex(index='articles', id='511132'), ArticleIndex(index='articles', id='510716'), ArticleIndex(index='articles', id='381359'), ArticleIndex(index='articles', id='511538'), ArticleIndex(index='articles', id='405693'), ArticleIndex(index='articles', id='509112'), ArticleIndex(index='articles', id='436225'), ArticleIndex(index='articles', id='511951'), ArticleIndex(index='articles', id='510966'), ArticleIndex(index='articles', id='510968'), ArticleIndex(index='articles', id='375205')], 'listTitle': 'Katarzyna Lukas', 'articles_count': 15, 'articles_noun': 'artykułów', 'header': 'tmpl_top_czashum.html', 'footer': 'tmpl_tail_czashum.php', 'query': True}] |
i | 0 |
item | {'surname': 'Omankowski/Omansen', 'firstname': 'Willibald', ...} |
len_values | 3 |
loop_dict | {'counter': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {'counter': 13, 'counter0': 12, 'first': False, 'last': False, 'parentloop': {}, 'revcounter': 3, 'revcounter0': 2}, 'revcounter': 3, 'revcounter0': 2} |
node | <django.template.defaulttags.SpacelessNode object at 0x7fe620d48ac0> |
nodelist | [] |
num_loopvars | 1 |
parentloop | {'counter': 13, 'counter0': 12, 'first': False, 'last': False, 'parentloop': {}, 'revcounter': 3, 'revcounter0': 2} |
pop_context | False |
self | <ForNode: for auth in art.authors, tail_len: 2> |
unpack | False |
values | [{'surname': 'Omankowski/Omansen', 'firstname': 'Willibald', 'title': 'Willibald Omankowski/Omansen'}, {'surname': 'Horbacz', 'firstname': 'Natalia', 'title': 'Natalia Horbacz (tłum.)'}, {'surname': 'Lukas', 'firstname': 'Katarzyna', 'title': 'Katarzyna Lukas (tłum.)'}] |
/usr/local/lib/python3.8/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}, {}, {}, {'articles': [ArticleIndex(index='articles', id='510877'), ArticleIndex(index='articles', id='511122'), ArticleIndex(index='articles', id='509083'), ArticleIndex(index='articles', id='373063'), ArticleIndex(index='articles', id='511132'), ArticleIndex(index='articles', id='510716'), ArticleIndex(index='articles', id='381359'), ArticleIndex(index='articles', id='511538'), ArticleIndex(index='articles', id='405693'), ArticleIndex(index='articles', id='509112'), ArticleIndex(index='articles', id='436225'), ArticleIndex(index='articles', id='511951'), ArticleIndex(index='articles', id='510966'), ArticleIndex(index='articles', id='510968'), ArticleIndex(index='articles', id='375205')], 'listTitle': 'Katarzyna Lukas', 'articles_count': 15, 'articles_noun': 'artykułów', 'header': 'tmpl_top_czashum.html', 'footer': 'tmpl_tail_czashum.php', 'query': True}] |
self | <django.template.defaulttags.SpacelessNode object at 0x7fe620d48ac0> |
/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py
in render
class SpacelessNode(Node):
def __init__(self, nodelist):
self.nodelist = nodelist
def render(self, context):
from django.utils.html import strip_spaces_between_tags
return strip_spaces_between_tags(self.nodelist.render(context).strip())…
class TemplateTagNode(Node):
mapping = {
'openblock': BLOCK_TAG_START,
'closeblock': BLOCK_TAG_END,
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'articles': [ArticleIndex(index='articles', id='510877'), ArticleIndex(index='articles', id='511122'), ArticleIndex(index='articles', id='509083'), ArticleIndex(index='articles', id='373063'), ArticleIndex(index='articles', id='511132'), ArticleIndex(index='articles', id='510716'), ArticleIndex(index='articles', id='381359'), ArticleIndex(index='articles', id='511538'), ArticleIndex(index='articles', id='405693'), ArticleIndex(index='articles', id='509112'), ArticleIndex(index='articles', id='436225'), ArticleIndex(index='articles', id='511951'), ArticleIndex(index='articles', id='510966'), ArticleIndex(index='articles', id='510968'), ArticleIndex(index='articles', id='375205')], 'listTitle': 'Katarzyna Lukas', 'articles_count': 15, 'articles_noun': 'artykułów', 'header': 'tmpl_top_czashum.html', 'footer': 'tmpl_tail_czashum.php', 'query': True}] |
self | <django.template.defaulttags.SpacelessNode object at 0x7fe620d48ac0> |
strip_spaces_between_tags | <function strip_spaces_between_tags at 0x7fe627f18700> |
/usr/local/lib/python3.8/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)…
else:
bit = node
bits.append(str(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n ' |
bits | ['\n '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'articles': [ArticleIndex(index='articles', id='510877'), ArticleIndex(index='articles', id='511122'), ArticleIndex(index='articles', id='509083'), ArticleIndex(index='articles', id='373063'), ArticleIndex(index='articles', id='511132'), ArticleIndex(index='articles', id='510716'), ArticleIndex(index='articles', id='381359'), ArticleIndex(index='articles', id='511538'), ArticleIndex(index='articles', id='405693'), ArticleIndex(index='articles', id='509112'), ArticleIndex(index='articles', id='436225'), ArticleIndex(index='articles', id='511951'), ArticleIndex(index='articles', id='510966'), ArticleIndex(index='articles', id='510968'), ArticleIndex(index='articles', id='375205')], 'listTitle': 'Katarzyna Lukas', 'articles_count': 15, 'articles_noun': 'artykułów', 'header': 'tmpl_top_czashum.html', 'footer': 'tmpl_tail_czashum.php', 'query': True}] |
node | <IfNode> |
self | [<TextNode: '\n '>, <IfNode>, <TextNode: '\n '>] |
/usr/local/lib/python3.8/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}, {}, {}, {'articles': [ArticleIndex(index='articles', id='510877'), ArticleIndex(index='articles', id='511122'), ArticleIndex(index='articles', id='509083'), ArticleIndex(index='articles', id='373063'), ArticleIndex(index='articles', id='511132'), ArticleIndex(index='articles', id='510716'), ArticleIndex(index='articles', id='381359'), ArticleIndex(index='articles', id='511538'), ArticleIndex(index='articles', id='405693'), ArticleIndex(index='articles', id='509112'), ArticleIndex(index='articles', id='436225'), ArticleIndex(index='articles', id='511951'), ArticleIndex(index='articles', id='510966'), ArticleIndex(index='articles', id='510968'), ArticleIndex(index='articles', id='375205')], 'listTitle': 'Katarzyna Lukas', 'articles_count': 15, 'articles_noun': 'artykułów', 'header': 'tmpl_top_czashum.html', 'footer': 'tmpl_tail_czashum.php', 'query': True}] |
self | <IfNode> |
/usr/local/lib/python3.8/site-packages/django/template/defaulttags.py
in render
match = condition.eval(context)
except VariableDoesNotExist:
match = None
else: # else clause
match = True
if match:
return nodelist.render(context)…
return ''
class LoremNode(Node):
def __init__(self, count, method, common):
Variable | Value |
---|---|
condition | None |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'articles': [ArticleIndex(index='articles', id='510877'), ArticleIndex(index='articles', id='511122'), ArticleIndex(index='articles', id='509083'), ArticleIndex(index='articles', id='373063'), ArticleIndex(index='articles', id='511132'), ArticleIndex(index='articles', id='510716'), ArticleIndex(index='articles', id='381359'), ArticleIndex(index='articles', id='511538'), ArticleIndex(index='articles', id='405693'), ArticleIndex(index='articles', id='509112'), ArticleIndex(index='articles', id='436225'), ArticleIndex(index='articles', id='511951'), ArticleIndex(index='articles', id='510966'), ArticleIndex(index='articles', id='510968'), ArticleIndex(index='articles', id='375205')], 'listTitle': 'Katarzyna Lukas', 'articles_count': 15, 'articles_noun': 'artykułów', 'header': 'tmpl_top_czashum.html', 'footer': 'tmpl_tail_czashum.php', 'query': True}] |
match | True |
nodelist | [<TextNode: '\n '>, <django.template.defaulttags.URLNode object at 0x7fe620d4d070>, <TextNode: '">'>, <Variable Node: auth.title>, <TextNode: '</a>\n '>] |
self | <IfNode> |
/usr/local/lib/python3.8/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 <a href="' |
bits | ['\n <a href="'] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'articles': [ArticleIndex(index='articles', id='510877'), ArticleIndex(index='articles', id='511122'), ArticleIndex(index='articles', id='509083'), ArticleIndex(index='articles', id='373063'), ArticleIndex(index='articles', id='511132'), ArticleIndex(index='articles', id='510716'), ArticleIndex(index='articles', id='381359'), ArticleIndex(index='articles', id='511538'), ArticleIndex(index='articles', id='405693'), ArticleIndex(index='articles', id='509112'), ArticleIndex(index='articles', id='436225'), ArticleIndex(index='articles', id='511951'), ArticleIndex(index='articles', id='510966'), ArticleIndex(index='articles', id='510968'), ArticleIndex(index='articles', id='375205')], 'listTitle': 'Katarzyna Lukas', 'articles_count': 15, 'articles_noun': 'artykułów', 'header': 'tmpl_top_czashum.html', 'footer': 'tmpl_tail_czashum.php', 'query': True}] |
node | <django.template.defaulttags.URLNode object at 0x7fe620d4d070> |
self | [<TextNode: '\n '>, <django.template.defaulttags.URLNode object at 0x7fe620d4d070>, <TextNode: '">'>, <Variable Node: auth.title>, <TextNode: '</a>\n '>] |
/usr/local/lib/python3.8/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}, {}, {}, {'articles': [ArticleIndex(index='articles', id='510877'), ArticleIndex(index='articles', id='511122'), ArticleIndex(index='articles', id='509083'), ArticleIndex(index='articles', id='373063'), ArticleIndex(index='articles', id='511132'), ArticleIndex(index='articles', id='510716'), ArticleIndex(index='articles', id='381359'), ArticleIndex(index='articles', id='511538'), ArticleIndex(index='articles', id='405693'), ArticleIndex(index='articles', id='509112'), ArticleIndex(index='articles', id='436225'), ArticleIndex(index='articles', id='511951'), ArticleIndex(index='articles', id='510966'), ArticleIndex(index='articles', id='510968'), ArticleIndex(index='articles', id='375205')], 'listTitle': 'Katarzyna Lukas', 'articles_count': 15, 'articles_noun': 'artykułów', 'header': 'tmpl_top_czashum.html', 'footer': 'tmpl_tail_czashum.php', 'query': True}] |
self | <django.template.defaulttags.URLNode object at 0x7fe620d4d070> |
/usr/local/lib/python3.8/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 | ['Omankowski/Omansen', 'Willibald'] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'articles': [ArticleIndex(index='articles', id='510877'), ArticleIndex(index='articles', id='511122'), ArticleIndex(index='articles', id='509083'), ArticleIndex(index='articles', id='373063'), ArticleIndex(index='articles', id='511132'), ArticleIndex(index='articles', id='510716'), ArticleIndex(index='articles', id='381359'), ArticleIndex(index='articles', id='511538'), ArticleIndex(index='articles', id='405693'), ArticleIndex(index='articles', id='509112'), ArticleIndex(index='articles', id='436225'), ArticleIndex(index='articles', id='511951'), ArticleIndex(index='articles', id='510966'), ArticleIndex(index='articles', id='510968'), ArticleIndex(index='articles', id='375205')], 'listTitle': 'Katarzyna Lukas', 'articles_count': 15, 'articles_noun': 'artykułów', 'header': 'tmpl_top_czashum.html', 'footer': 'tmpl_tail_czashum.php', 'query': True}] |
current_app | '' |
kwargs | {} |
reverse | <function reverse at 0x7fe627c1a310> |
self | <django.template.defaulttags.URLNode object at 0x7fe620d4d070> |
url | '' |
view_name | 'author' |
/usr/local/lib/python3.8/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 | ['Omankowski/Omansen', 'Willibald'] |
current_app | '' |
current_path | None |
kwargs | {} |
ns_converters | {} |
ns_pattern | '' |
parts | ['author'] |
path | [] |
prefix | '/' |
resolved_path | [] |
resolver | <URLResolver 'czashum_www.urls' (None:None) '^/'> |
urlconf | 'czashum_www.urls' |
view | 'author' |
viewname | 'author' |
/usr/local/lib/python3.8/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 '('Omankowski/Omansen', 'Willibald')'" |
args | ('Omankowski/Omansen', 'Willibald') |
candidate_pat | '/autor/%(_0)s/%(_1)s/' |
candidate_subs | {'_0': 'Omankowski/Omansen', '_1': 'Willibald'} |
converters | {} |
defaults | {} |
k | '_1' |
kwargs | {} |
lookup_view | 'author' |
lookup_view_s | 'author' |
m | None |
msg | ("Reverse for 'author' with arguments '('Omankowski/Omansen', 'Willibald')' " "not found. 1 pattern(s) tried: ['autor/([^/]+)/([^/]+)/$']") |
n | None |
params | ['_0', '_1'] |
pattern | 'autor/([^/]+)/([^/]+)/$' |
patterns | ['autor/([^/]+)/([^/]+)/$'] |
possibilities | [([('autor/%(_0)s/%(_1)s/', ['_0', '_1'])], 'autor/([^/]+)/([^/]+)/$', {}, {})] |
possibility | [('autor/%(_0)s/%(_1)s/', ['_0', '_1'])] |
result | 'autor/%(_0)s/%(_1)s/' |
self | <URLResolver 'czashum_www.urls' (None:None) '^/'> |
text_candidate_subs | {'_0': 'Omankowski/Omansen', '_1': 'Willibald'} |
v | 'Willibald' |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_ACCEPT_ENCODING | 'gzip' |
HTTP_HOST | 'bazhum.muzhp.pl' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '3.138.113.188' |
HTTP_X_FORWARDED_HOST | 'bazhum.muzhp.pl' |
HTTP_X_FORWARDED_PORT | '443' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_FORWARDED_SERVER | 'cd65e96692b3' |
HTTP_X_REAL_IP | '3.138.113.188' |
PATH_INFO | '/autor/Lukas/Katarzyna/' |
QUERY_STRING | '' |
RAW_URI | '/autor/Lukas/Katarzyna/' |
REMOTE_ADDR | '172.19.0.3' |
REMOTE_PORT | '57462' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | '0.0.0.0' |
SERVER_PORT | '8000' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SOFTWARE | 'gunicorn/20.0.4' |
gunicorn.socket | <socket.socket fd=8, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('172.19.0.11', 8000), raddr=('172.19.0.3', 57462)> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7fe620d66d00> |
wsgi.file_wrapper | '' |
wsgi.input | <gunicorn.http.body.Body object at 0x7fe620d89400> |
wsgi.input_terminated | True |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
czashum_www.settings
Setting | Value |
---|---|
ABOUT | 'page_tekstowa_czashum.html' |
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | () |
ADMIN_MEDIA_PREFIX | '' |
ALLOWED_HOSTS | ['czashum.muzhp.site.preview.hyperone.cloud', 'bazhum.muzhp.pl', 'www.bazhum.muzhp.pl'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
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': 'mysql', 'NAME': 'bazhum_bib', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'django'}} |
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': 'http://elasticsearch:9200/'}} |
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 | [] |
FOOTER | 'tmpl_tail_czashum.php' |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
HEADER | 'tmpl_top_czashum.html' |
ID_CZASOPISMA | None |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.admin', 'czashum', 'bib', 'django_elasticsearch_dsl', 'django_extensions', 'fullurl') |
INTERNAL_IPS | [] |
LANGUAGES | [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('hy', 'Armenian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmål'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
LANGUAGE_CODE | 'pl' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LOCALE_PATHS | ('/src/czashum/czashum_www/locale',) |
LOGGING | {'disable_existing_loggers': False, 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}}, 'handlers': {'console': {'class': 'logging.StreamHandler'}, 'mail_admins': {'class': 'django.utils.log.AdminEmailHandler', 'filters': ['require_debug_false'], 'level': 'ERROR'}}, 'loggers': {'django.request': {'handlers': ['console'], 'level': 'ERROR', 'propagate': True}}, 'version': 1} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MAIN_PAGE | 'page_home_czashum.html' |
MAIN_URL | 'http://czashum.hist.pl/' |
MANAGERS | () |
MEDIA_ROOT | '/src/czashum/czashum_www/../media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ('whitenoise.middleware.WhiteNoiseMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PDF_PATH | '/media//files/' |
PERMISSIONS | {'guid': 'www-data', 'permission': 644, 'uid': 'www-data'} |
PREPEND_WWW | False |
PROJECT_ROOT | '/src/czashum/czashum_www' |
ROOT_URLCONF | 'czashum_www.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 | 'czashum_www.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITE_ID | 2 |
STATICFILES_DIRS | [] |
STATICFILES_FINDERS | ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder') |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/src/czashum/czashum_www/staticfiles' |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/src/czashum/czashum_www/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']}}] |
TEMPLATE_DEBUG | True |
TEMPLATE_DIRS | ('/src/czashum/czashum_www/templates',) |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'Europe/Warsaw' |
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 | 'czashum_www.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.