'NoneType' object has no attribute 'GET'
Request Method: | GET |
---|---|
Request URL: | https://latarnicy.pl/blog/article/blogujacy-latarnicy/ |
Django Version: | 1.6.5 |
Exception Type: | AttributeError |
Exception Value: | 'NoneType' object has no attribute 'GET' |
Exception Location: | /home/tomek/.local/lib/python2.7/site-packages/gallery/models.py in render, line 113 |
Python Executable: | /usr/bin/uwsgi-core |
Python Version: | 2.7.17 |
Python Path: | ['/var/www/disk/latarnicy.pl/miasta-w-internecie/venv/lib/python2.7/site-packages/', '.', '', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/home/tomek/.local/lib/python2.7/site-packages', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages'] |
Server time: | Pt, 29 Marz 2024 02:13:37 +0100 |
In template /mnt/disk/www/latarnicy.pl/miasta-w-internecie/cities_portal/templates/blog/article.html
, error at line 88
78 | <img src="{{ article.main_image.url }}" class="main_image" width="{{ article.main_image.width }}" height="{{ article.main_image.height }}"/> |
---|---|
79 | {% else %} |
80 | {% thumbnail article.main_image "715" crop="center" as image %} |
81 | <img src="{{ article.main_image.url }}" class="main_image" width="{{ image.width }}" height="{{ image.height }}"/> |
82 | {% endthumbnail %} |
83 | {% endif %} |
84 | {% endif %} |
85 | |
86 | <div class="article-main-content"> |
87 | {% for object in article.content.main %} |
88 | {{ object.render }} |
89 | {% endfor %} |
90 | |
91 | {% if has_gallery %} |
92 | <div class="gallery-wrapper"> |
93 | <h5>Galeria </h5> |
94 | <ul class="gallery"> |
95 | {% for image in images_list %} |
96 | <li> |
97 | {% thumbnail image.easy_thumbnails_thumbnailer "225x170" crop="center" as im %} |
98 | <a href="{{ image.url }}" data-lightbox="roadtrip"> |
/var/www/disk/latarnicy.pl/miasta-w-internecie/venv/lib/python2.7/site-packages/django/core/handlers/base.py
in get_response
raise ValueError("The view %s.%s didn't return an HttpResponse object." % (callback.__module__, view_name))
# If the response supports deferred rendering, apply template
# response middleware and then render the response
if hasattr(response, 'render') and callable(response.render):
for middleware_method in self._template_response_middleware:
response = middleware_method(request, response)
response = response.render()...
except http.Http404 as e:
logger.warning('Not Found: %s', request.path,
extra={
'status_code': 404,
'request': request
Variable | Value |
---|---|
callback_args | () |
resolver_match | ResolverMatch(func=<function ArticleView at 0x7f48099ac1d0>, args=(), kwargs={'slug': u'blogujacy-latarnicy'}, url_name='show_article', app_name='None', namespace='blog') |
middleware_method | <bound method DevServerMiddleware.process_view of <devserver.middleware.DevServerMiddleware object at 0x7f480c10a890>> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7f48248b6590> |
request | "<WSGIRequest\npath:/blog/article/blogujacy-latarnicy/,\nGET:<QueryDict: {}>,\nPOST:<QueryDict: {}>,\nCOOKIES:{},\nMETA:{'CONTENT_LENGTH': '',\n 'CONTENT_TYPE': '',\n u'CSRF_COOKIE': u'iWLMJTxecmEueY2GFraMMEg7nDOS1Oyq',\n 'DOCUMENT_ROOT': '/usr/share/nginx/html',\n 'HTTPS': 'on',\n 'HTTP_ACCEPT': '*/*',\n 'HTTP_HOST': 'latarnicy.pl',\n 'HTTP_REFERER': 'https://latarnicy.pl/blog/article/blogujacy-latarnicy',\n 'HTTP_USER_AGENT': 'claudebot',\n 'PATH_INFO': u'/blog/article/blogujacy-latarnicy/',\n 'QUERY_STRING': '',\n 'REMOTE_ADDR': '35.175.236.44',\n 'REMOTE_PORT': '53522',\n 'REQUEST_METHOD': 'GET',\n 'REQUEST_SCHEME': 'https',\n 'REQUEST_URI': '/blog/article/blogujacy-latarnicy/',\n u'SCRIPT_NAME': u'',\n 'SERVER_NAME': 'latarnicy.pl',\n 'SERVER_PORT': '443',\n 'SERVER_PROTOCOL': 'HTTP/1.1',\n 'uwsgi.node': 'vps711161',\n 'uwsgi.version': '2.0.15-debian',\n 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f481d8a6660>,\n 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>,\n 'wsgi.input': <uwsgi._Input object at 0x7f480208bc10>,\n 'wsgi.multiprocess': False,\n 'wsgi.multithread': False,\n 'wsgi.run_once': False,\n 'wsgi.url_scheme': 'https',\n 'wsgi.version': (1, 0)}>" |
callback | <function ArticleView at 0x7f48099ac1d0> |
wrapped_callback | <function ArticleView at 0x7f48099ac1d0> |
resolver | <RegexURLResolver 'urls' (None:None) ^/> |
callback_kwargs | {'slug': u'blogujacy-latarnicy'} |
response | <django.template.response.TemplateResponse object at 0x7f4808afe750> |
urlconf | 'urls' |
/var/www/disk/latarnicy.pl/miasta-w-internecie/venv/lib/python2.7/site-packages/django/template/response.py
in render
If the content has already been rendered, this is a no-op.
Returns the baked response instance.
"""
retval = self
if not self._is_rendered:
self.content = self.rendered_content...
for post_callback in self._post_render_callbacks:
newretval = post_callback(retval)
if newretval is not None:
retval = newretval
return retval
Variable | Value |
---|---|
self | <django.template.response.TemplateResponse object at 0x7f4808afe750> |
retval | <django.template.response.TemplateResponse object at 0x7f4808afe750> |
/var/www/disk/latarnicy.pl/miasta-w-internecie/venv/lib/python2.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)...
return content
def add_post_render_callback(self, callback):
"""Adds a new post-rendering callback.
If the response has already been rendered,
Variable | Value |
---|---|
self | <django.template.response.TemplateResponse object at 0x7f4808afe750> |
context | [{'False': False, 'None': None, 'True': True}, {'liked_by_me': False, 'art': <BlogEntry: Blogujący Latarnicy >, 'images_list': [], 'like_url': '/common/like/', 'cat': None, 'has_gallery': True, 'newest_articles': [<BlogEntry: Nowy projekt Latarniczy! >, <BlogEntry: Wszystkiego najlepszego w Międzynarodowy Dzień Wolontariusza! >, <BlogEntry: SMWI Architektem Rozwoju 2018>, <BlogEntry: Projekt Latarnicy2020.pl >], 'article': <BlogEntry: Blogujący Latarnicy >, 'likes_count': 2, 'slug': u'blogujacy-latarnicy', u'view': <apps.blog.views.ArticleView object at 0x7f48020fcf50>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f4802131410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f4802107610>, 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f48020fc750>>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f48020fc210>}, {}, {u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('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-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), u'LANGUAGE_BIDI': False, u'LANGUAGE_CODE': 'pl'}, {u'STATIC_URL': '/static/'}, {u'MEDIA_URL': '/media/'}, {u'request': <WSGIRequest path:/blog/article/blogujacy-latarnicy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'iWLMJTxecmEueY2GFraMMEg7nDOS1Oyq', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'latarnicy.pl', 'HTTP_REFERER': 'https://latarnicy.pl/blog/article/blogujacy-latarnicy', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/blog/article/blogujacy-latarnicy/', 'QUERY_STRING': '', 'REMOTE_ADDR': '35.175.236.44', 'REMOTE_PORT': '53522', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/blog/article/blogujacy-latarnicy/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'latarnicy.pl', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'vps711161', 'uwsgi.version': '2.0.15-debian', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f481d8a6660>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f480208bc10>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>}, {u'TIME_ZONE': 'Europe/Warsaw'}, {'PYBB_AVATAR_DIMENSIONS': '80x80', 'PYBB_MARKUP': 'bbcode', 'PYBB_TEMPLATE': 'base.html', 'PYBB_DEFAULT_AVATAR_URL': '/static/pybb/img/default_avatar.jpg', 'PYBB_DEFAULT_TITLE': 'PYBB Powered Forum', 'PYBB_ATTACHMENT_ENABLE': True, 'PYBB_ENABLE_ANONYMOUS_POST': False}, {'current_domain': u'http://latarnicy.pl', 'DEBUG': True, 'authenticate_form': <apps.profiles.forms.LoginForm object at 0x7f4802128e50>}, {'query_without_page': <QueryDict: {}>}, {'cms_pages': [<Page: Założenia PCRS >, <Page: Kim są Latarnicy?>, <Page: Historia>, <Page: Streszczenia LPD>, <Page: Dla mediów>, <Page: Gmail>]}, {u'calendar_url': '/calendar/events-reports/', u'knowledge_url': '/knowledge-base/', u'blog_url': '/blog/', u'common_url': '/common/fifty-plus/'}, {'block': <Block Node: body_content. Contents: [<Text Node: ' <article class="event"> '>, <Variable Node: article.published_on|date:"d.m.Y">, <Text Node: '</time> <h3> '>, <Variable Node: article.title>, <Text Node: ' </h3> </head'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48020fa1d0>, <Text Node: ' '>, <IfNode>, <Text Node: ' <div class="article'>, <For Node: for object in article.content.main, tail_len: 3>, <Text Node: ' '>, <IfNode>, <Text Node: ' </div> </article> '>, <django.template.defaulttags.URLNode object at 0x7f48021b2d50>, <Text Node: '">« wr??</a> <div '>, <django.contrib.comments.templatetags.comments.CommentCountNode object at 0x7f48021b2790>, <Text Node: ' <h5>Komentarze ('>, <Variable Node: comment_count>, <Text Node: ') </h5> '>, <IfNode>, <Text Node: ' '>, <django.contrib.comments.templatetags.comments.CommentListNode object at 0x7f48021b2250>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2bd0>, <Text Node: ' </div> <!-- /.comme'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2850>, <Text Node: ' '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'object': <GalleryContent: main on Blogujący Latarnicy , ordering 2>}] |
template | <django.template.base.Template object at 0x7f4802110c50> |
/var/www/disk/latarnicy.pl/miasta-w-internecie/venv/lib/python2.7/site-packages/django/template/base.py
in render
def _render(self, context):
return self.nodelist.render(context)
def render(self, context):
"Display stage -- can be called many times"
context.render_context.push()
try:
return self._render(context)...
finally:
context.render_context.pop()
def compile_string(template_string, origin):
"Compiles template_string into NodeList ready for rendering"
if settings.TEMPLATE_DEBUG:
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7f4802110c50> |
context | [{'False': False, 'None': None, 'True': True}, {'liked_by_me': False, 'art': <BlogEntry: Blogujący Latarnicy >, 'images_list': [], 'like_url': '/common/like/', 'cat': None, 'has_gallery': True, 'newest_articles': [<BlogEntry: Nowy projekt Latarniczy! >, <BlogEntry: Wszystkiego najlepszego w Międzynarodowy Dzień Wolontariusza! >, <BlogEntry: SMWI Architektem Rozwoju 2018>, <BlogEntry: Projekt Latarnicy2020.pl >], 'article': <BlogEntry: Blogujący Latarnicy >, 'likes_count': 2, 'slug': u'blogujacy-latarnicy', u'view': <apps.blog.views.ArticleView object at 0x7f48020fcf50>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f4802131410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f4802107610>, 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f48020fc750>>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f48020fc210>}, {}, {u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('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-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), u'LANGUAGE_BIDI': False, u'LANGUAGE_CODE': 'pl'}, {u'STATIC_URL': '/static/'}, {u'MEDIA_URL': '/media/'}, {u'request': <WSGIRequest path:/blog/article/blogujacy-latarnicy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'iWLMJTxecmEueY2GFraMMEg7nDOS1Oyq', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'latarnicy.pl', 'HTTP_REFERER': 'https://latarnicy.pl/blog/article/blogujacy-latarnicy', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/blog/article/blogujacy-latarnicy/', 'QUERY_STRING': '', 'REMOTE_ADDR': '35.175.236.44', 'REMOTE_PORT': '53522', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/blog/article/blogujacy-latarnicy/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'latarnicy.pl', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'vps711161', 'uwsgi.version': '2.0.15-debian', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f481d8a6660>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f480208bc10>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>}, {u'TIME_ZONE': 'Europe/Warsaw'}, {'PYBB_AVATAR_DIMENSIONS': '80x80', 'PYBB_MARKUP': 'bbcode', 'PYBB_TEMPLATE': 'base.html', 'PYBB_DEFAULT_AVATAR_URL': '/static/pybb/img/default_avatar.jpg', 'PYBB_DEFAULT_TITLE': 'PYBB Powered Forum', 'PYBB_ATTACHMENT_ENABLE': True, 'PYBB_ENABLE_ANONYMOUS_POST': False}, {'current_domain': u'http://latarnicy.pl', 'DEBUG': True, 'authenticate_form': <apps.profiles.forms.LoginForm object at 0x7f4802128e50>}, {'query_without_page': <QueryDict: {}>}, {'cms_pages': [<Page: Założenia PCRS >, <Page: Kim są Latarnicy?>, <Page: Historia>, <Page: Streszczenia LPD>, <Page: Dla mediów>, <Page: Gmail>]}, {u'calendar_url': '/calendar/events-reports/', u'knowledge_url': '/knowledge-base/', u'blog_url': '/blog/', u'common_url': '/common/fifty-plus/'}, {'block': <Block Node: body_content. Contents: [<Text Node: ' <article class="event"> '>, <Variable Node: article.published_on|date:"d.m.Y">, <Text Node: '</time> <h3> '>, <Variable Node: article.title>, <Text Node: ' </h3> </head'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48020fa1d0>, <Text Node: ' '>, <IfNode>, <Text Node: ' <div class="article'>, <For Node: for object in article.content.main, tail_len: 3>, <Text Node: ' '>, <IfNode>, <Text Node: ' </div> </article> '>, <django.template.defaulttags.URLNode object at 0x7f48021b2d50>, <Text Node: '">« wr??</a> <div '>, <django.contrib.comments.templatetags.comments.CommentCountNode object at 0x7f48021b2790>, <Text Node: ' <h5>Komentarze ('>, <Variable Node: comment_count>, <Text Node: ') </h5> '>, <IfNode>, <Text Node: ' '>, <django.contrib.comments.templatetags.comments.CommentListNode object at 0x7f48021b2250>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2bd0>, <Text Node: ' </div> <!-- /.comme'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2850>, <Text Node: ' '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'object': <GalleryContent: main on Blogujący Latarnicy , ordering 2>}] |
/var/www/disk/latarnicy.pl/miasta-w-internecie/venv/lib/python2.7/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
context.render_context.push()
try:
return self._render(context)
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7f4802110c50> |
context | [{'False': False, 'None': None, 'True': True}, {'liked_by_me': False, 'art': <BlogEntry: Blogujący Latarnicy >, 'images_list': [], 'like_url': '/common/like/', 'cat': None, 'has_gallery': True, 'newest_articles': [<BlogEntry: Nowy projekt Latarniczy! >, <BlogEntry: Wszystkiego najlepszego w Międzynarodowy Dzień Wolontariusza! >, <BlogEntry: SMWI Architektem Rozwoju 2018>, <BlogEntry: Projekt Latarnicy2020.pl >], 'article': <BlogEntry: Blogujący Latarnicy >, 'likes_count': 2, 'slug': u'blogujacy-latarnicy', u'view': <apps.blog.views.ArticleView object at 0x7f48020fcf50>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f4802131410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f4802107610>, 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f48020fc750>>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f48020fc210>}, {}, {u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('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-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), u'LANGUAGE_BIDI': False, u'LANGUAGE_CODE': 'pl'}, {u'STATIC_URL': '/static/'}, {u'MEDIA_URL': '/media/'}, {u'request': <WSGIRequest path:/blog/article/blogujacy-latarnicy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'iWLMJTxecmEueY2GFraMMEg7nDOS1Oyq', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'latarnicy.pl', 'HTTP_REFERER': 'https://latarnicy.pl/blog/article/blogujacy-latarnicy', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/blog/article/blogujacy-latarnicy/', 'QUERY_STRING': '', 'REMOTE_ADDR': '35.175.236.44', 'REMOTE_PORT': '53522', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/blog/article/blogujacy-latarnicy/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'latarnicy.pl', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'vps711161', 'uwsgi.version': '2.0.15-debian', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f481d8a6660>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f480208bc10>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>}, {u'TIME_ZONE': 'Europe/Warsaw'}, {'PYBB_AVATAR_DIMENSIONS': '80x80', 'PYBB_MARKUP': 'bbcode', 'PYBB_TEMPLATE': 'base.html', 'PYBB_DEFAULT_AVATAR_URL': '/static/pybb/img/default_avatar.jpg', 'PYBB_DEFAULT_TITLE': 'PYBB Powered Forum', 'PYBB_ATTACHMENT_ENABLE': True, 'PYBB_ENABLE_ANONYMOUS_POST': False}, {'current_domain': u'http://latarnicy.pl', 'DEBUG': True, 'authenticate_form': <apps.profiles.forms.LoginForm object at 0x7f4802128e50>}, {'query_without_page': <QueryDict: {}>}, {'cms_pages': [<Page: Założenia PCRS >, <Page: Kim są Latarnicy?>, <Page: Historia>, <Page: Streszczenia LPD>, <Page: Dla mediów>, <Page: Gmail>]}, {u'calendar_url': '/calendar/events-reports/', u'knowledge_url': '/knowledge-base/', u'blog_url': '/blog/', u'common_url': '/common/fifty-plus/'}, {'block': <Block Node: body_content. Contents: [<Text Node: ' <article class="event"> '>, <Variable Node: article.published_on|date:"d.m.Y">, <Text Node: '</time> <h3> '>, <Variable Node: article.title>, <Text Node: ' </h3> </head'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48020fa1d0>, <Text Node: ' '>, <IfNode>, <Text Node: ' <div class="article'>, <For Node: for object in article.content.main, tail_len: 3>, <Text Node: ' '>, <IfNode>, <Text Node: ' </div> </article> '>, <django.template.defaulttags.URLNode object at 0x7f48021b2d50>, <Text Node: '">« wr??</a> <div '>, <django.contrib.comments.templatetags.comments.CommentCountNode object at 0x7f48021b2790>, <Text Node: ' <h5>Komentarze ('>, <Variable Node: comment_count>, <Text Node: ') </h5> '>, <IfNode>, <Text Node: ' '>, <django.contrib.comments.templatetags.comments.CommentListNode object at 0x7f48021b2250>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2bd0>, <Text Node: ' </div> <!-- /.comme'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2850>, <Text Node: ' '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'object': <GalleryContent: main on Blogujący Latarnicy , ordering 2>}] |
/var/www/disk/latarnicy.pl/miasta-w-internecie/venv/lib/python2.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 = self.render_node(node, context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <ExtendsNode: extends "base.html"> |
self | [<ExtendsNode: extends "base.html">] |
bits | [] |
context | [{'False': False, 'None': None, 'True': True}, {'liked_by_me': False, 'art': <BlogEntry: Blogujący Latarnicy >, 'images_list': [], 'like_url': '/common/like/', 'cat': None, 'has_gallery': True, 'newest_articles': [<BlogEntry: Nowy projekt Latarniczy! >, <BlogEntry: Wszystkiego najlepszego w Międzynarodowy Dzień Wolontariusza! >, <BlogEntry: SMWI Architektem Rozwoju 2018>, <BlogEntry: Projekt Latarnicy2020.pl >], 'article': <BlogEntry: Blogujący Latarnicy >, 'likes_count': 2, 'slug': u'blogujacy-latarnicy', u'view': <apps.blog.views.ArticleView object at 0x7f48020fcf50>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f4802131410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f4802107610>, 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f48020fc750>>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f48020fc210>}, {}, {u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('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-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), u'LANGUAGE_BIDI': False, u'LANGUAGE_CODE': 'pl'}, {u'STATIC_URL': '/static/'}, {u'MEDIA_URL': '/media/'}, {u'request': <WSGIRequest path:/blog/article/blogujacy-latarnicy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'iWLMJTxecmEueY2GFraMMEg7nDOS1Oyq', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'latarnicy.pl', 'HTTP_REFERER': 'https://latarnicy.pl/blog/article/blogujacy-latarnicy', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/blog/article/blogujacy-latarnicy/', 'QUERY_STRING': '', 'REMOTE_ADDR': '35.175.236.44', 'REMOTE_PORT': '53522', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/blog/article/blogujacy-latarnicy/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'latarnicy.pl', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'vps711161', 'uwsgi.version': '2.0.15-debian', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f481d8a6660>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f480208bc10>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>}, {u'TIME_ZONE': 'Europe/Warsaw'}, {'PYBB_AVATAR_DIMENSIONS': '80x80', 'PYBB_MARKUP': 'bbcode', 'PYBB_TEMPLATE': 'base.html', 'PYBB_DEFAULT_AVATAR_URL': '/static/pybb/img/default_avatar.jpg', 'PYBB_DEFAULT_TITLE': 'PYBB Powered Forum', 'PYBB_ATTACHMENT_ENABLE': True, 'PYBB_ENABLE_ANONYMOUS_POST': False}, {'current_domain': u'http://latarnicy.pl', 'DEBUG': True, 'authenticate_form': <apps.profiles.forms.LoginForm object at 0x7f4802128e50>}, {'query_without_page': <QueryDict: {}>}, {'cms_pages': [<Page: Założenia PCRS >, <Page: Kim są Latarnicy?>, <Page: Historia>, <Page: Streszczenia LPD>, <Page: Dla mediów>, <Page: Gmail>]}, {u'calendar_url': '/calendar/events-reports/', u'knowledge_url': '/knowledge-base/', u'blog_url': '/blog/', u'common_url': '/common/fifty-plus/'}, {'block': <Block Node: body_content. Contents: [<Text Node: ' <article class="event"> '>, <Variable Node: article.published_on|date:"d.m.Y">, <Text Node: '</time> <h3> '>, <Variable Node: article.title>, <Text Node: ' </h3> </head'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48020fa1d0>, <Text Node: ' '>, <IfNode>, <Text Node: ' <div class="article'>, <For Node: for object in article.content.main, tail_len: 3>, <Text Node: ' '>, <IfNode>, <Text Node: ' </div> </article> '>, <django.template.defaulttags.URLNode object at 0x7f48021b2d50>, <Text Node: '">« wr??</a> <div '>, <django.contrib.comments.templatetags.comments.CommentCountNode object at 0x7f48021b2790>, <Text Node: ' <h5>Komentarze ('>, <Variable Node: comment_count>, <Text Node: ') </h5> '>, <IfNode>, <Text Node: ' '>, <django.contrib.comments.templatetags.comments.CommentListNode object at 0x7f48021b2250>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2bd0>, <Text Node: ' </div> <!-- /.comme'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2850>, <Text Node: ' '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'object': <GalleryContent: main on Blogujący Latarnicy , ordering 2>}] |
/var/www/disk/latarnicy.pl/miasta-w-internecie/venv/lib/python2.7/site-packages/django/template/debug.py
in render_node
def compile_function_error(self, token, e):
if not hasattr(e, 'django_template_source'):
e.django_template_source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
return node.render(context)...
except Exception as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <ExtendsNode: extends "base.html"> |
self | [<ExtendsNode: extends "base.html">] |
e | AttributeError("'NoneType' object has no attribute 'GET'",) |
context | [{'False': False, 'None': None, 'True': True}, {'liked_by_me': False, 'art': <BlogEntry: Blogujący Latarnicy >, 'images_list': [], 'like_url': '/common/like/', 'cat': None, 'has_gallery': True, 'newest_articles': [<BlogEntry: Nowy projekt Latarniczy! >, <BlogEntry: Wszystkiego najlepszego w Międzynarodowy Dzień Wolontariusza! >, <BlogEntry: SMWI Architektem Rozwoju 2018>, <BlogEntry: Projekt Latarnicy2020.pl >], 'article': <BlogEntry: Blogujący Latarnicy >, 'likes_count': 2, 'slug': u'blogujacy-latarnicy', u'view': <apps.blog.views.ArticleView object at 0x7f48020fcf50>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f4802131410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f4802107610>, 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f48020fc750>>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f48020fc210>}, {}, {u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('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-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), u'LANGUAGE_BIDI': False, u'LANGUAGE_CODE': 'pl'}, {u'STATIC_URL': '/static/'}, {u'MEDIA_URL': '/media/'}, {u'request': <WSGIRequest path:/blog/article/blogujacy-latarnicy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'iWLMJTxecmEueY2GFraMMEg7nDOS1Oyq', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'latarnicy.pl', 'HTTP_REFERER': 'https://latarnicy.pl/blog/article/blogujacy-latarnicy', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/blog/article/blogujacy-latarnicy/', 'QUERY_STRING': '', 'REMOTE_ADDR': '35.175.236.44', 'REMOTE_PORT': '53522', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/blog/article/blogujacy-latarnicy/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'latarnicy.pl', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'vps711161', 'uwsgi.version': '2.0.15-debian', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f481d8a6660>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f480208bc10>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>}, {u'TIME_ZONE': 'Europe/Warsaw'}, {'PYBB_AVATAR_DIMENSIONS': '80x80', 'PYBB_MARKUP': 'bbcode', 'PYBB_TEMPLATE': 'base.html', 'PYBB_DEFAULT_AVATAR_URL': '/static/pybb/img/default_avatar.jpg', 'PYBB_DEFAULT_TITLE': 'PYBB Powered Forum', 'PYBB_ATTACHMENT_ENABLE': True, 'PYBB_ENABLE_ANONYMOUS_POST': False}, {'current_domain': u'http://latarnicy.pl', 'DEBUG': True, 'authenticate_form': <apps.profiles.forms.LoginForm object at 0x7f4802128e50>}, {'query_without_page': <QueryDict: {}>}, {'cms_pages': [<Page: Założenia PCRS >, <Page: Kim są Latarnicy?>, <Page: Historia>, <Page: Streszczenia LPD>, <Page: Dla mediów>, <Page: Gmail>]}, {u'calendar_url': '/calendar/events-reports/', u'knowledge_url': '/knowledge-base/', u'blog_url': '/blog/', u'common_url': '/common/fifty-plus/'}, {'block': <Block Node: body_content. Contents: [<Text Node: ' <article class="event"> '>, <Variable Node: article.published_on|date:"d.m.Y">, <Text Node: '</time> <h3> '>, <Variable Node: article.title>, <Text Node: ' </h3> </head'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48020fa1d0>, <Text Node: ' '>, <IfNode>, <Text Node: ' <div class="article'>, <For Node: for object in article.content.main, tail_len: 3>, <Text Node: ' '>, <IfNode>, <Text Node: ' </div> </article> '>, <django.template.defaulttags.URLNode object at 0x7f48021b2d50>, <Text Node: '">« wr??</a> <div '>, <django.contrib.comments.templatetags.comments.CommentCountNode object at 0x7f48021b2790>, <Text Node: ' <h5>Komentarze ('>, <Variable Node: comment_count>, <Text Node: ') </h5> '>, <IfNode>, <Text Node: ' '>, <django.contrib.comments.templatetags.comments.CommentListNode object at 0x7f48021b2250>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2bd0>, <Text Node: ' </div> <!-- /.comme'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2850>, <Text Node: ' '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'object': <GalleryContent: main on Blogujący Latarnicy , ordering 2>}] |
/var/www/disk/latarnicy.pl/miasta-w-internecie/venv/lib/python2.7/site-packages/django/template/loader_tags.py
in render
blocks = dict([(n.name, n) for n in
compiled_parent.nodelist.get_nodes_by_type(BlockNode)])
block_context.add_blocks(blocks)
break
# Call Template._render explicitly so the parser context stays
# the same.
return compiled_parent._render(context)...
class BaseIncludeNode(Node):
def __init__(self, *args, **kwargs):
self.extra_context = kwargs.pop('extra_context', {})
self.isolated_context = kwargs.pop('isolated_context', False)
super(BaseIncludeNode, self).__init__(*args, **kwargs)
Variable | Value |
---|---|
node | <django.template.defaulttags.LoadNode object at 0x7f48020968d0> |
blocks | {u'body_content': <Block Node: body_content. Contents: [<Text Node: ' '>]>, u'extra_css': <Block Node: extra_css. Contents: [<Text Node: ' '>]>, u'extra_js': <Block Node: extra_js. Contents: [<Text Node: ' '>]>, u'responsive_menu': <Block Node: responsive_menu. Contents: [<Text Node: ' '>]>} |
block_context | <django.template.loader_tags.BlockContext object at 0x7f4808612a50> |
n | <Block Node: extra_js. Contents: [<Text Node: ' '>]> |
context | [{'False': False, 'None': None, 'True': True}, {'liked_by_me': False, 'art': <BlogEntry: Blogujący Latarnicy >, 'images_list': [], 'like_url': '/common/like/', 'cat': None, 'has_gallery': True, 'newest_articles': [<BlogEntry: Nowy projekt Latarniczy! >, <BlogEntry: Wszystkiego najlepszego w Międzynarodowy Dzień Wolontariusza! >, <BlogEntry: SMWI Architektem Rozwoju 2018>, <BlogEntry: Projekt Latarnicy2020.pl >], 'article': <BlogEntry: Blogujący Latarnicy >, 'likes_count': 2, 'slug': u'blogujacy-latarnicy', u'view': <apps.blog.views.ArticleView object at 0x7f48020fcf50>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f4802131410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f4802107610>, 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f48020fc750>>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f48020fc210>}, {}, {u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('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-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), u'LANGUAGE_BIDI': False, u'LANGUAGE_CODE': 'pl'}, {u'STATIC_URL': '/static/'}, {u'MEDIA_URL': '/media/'}, {u'request': <WSGIRequest path:/blog/article/blogujacy-latarnicy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'iWLMJTxecmEueY2GFraMMEg7nDOS1Oyq', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'latarnicy.pl', 'HTTP_REFERER': 'https://latarnicy.pl/blog/article/blogujacy-latarnicy', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/blog/article/blogujacy-latarnicy/', 'QUERY_STRING': '', 'REMOTE_ADDR': '35.175.236.44', 'REMOTE_PORT': '53522', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/blog/article/blogujacy-latarnicy/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'latarnicy.pl', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'vps711161', 'uwsgi.version': '2.0.15-debian', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f481d8a6660>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f480208bc10>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>}, {u'TIME_ZONE': 'Europe/Warsaw'}, {'PYBB_AVATAR_DIMENSIONS': '80x80', 'PYBB_MARKUP': 'bbcode', 'PYBB_TEMPLATE': 'base.html', 'PYBB_DEFAULT_AVATAR_URL': '/static/pybb/img/default_avatar.jpg', 'PYBB_DEFAULT_TITLE': 'PYBB Powered Forum', 'PYBB_ATTACHMENT_ENABLE': True, 'PYBB_ENABLE_ANONYMOUS_POST': False}, {'current_domain': u'http://latarnicy.pl', 'DEBUG': True, 'authenticate_form': <apps.profiles.forms.LoginForm object at 0x7f4802128e50>}, {'query_without_page': <QueryDict: {}>}, {'cms_pages': [<Page: Założenia PCRS >, <Page: Kim są Latarnicy?>, <Page: Historia>, <Page: Streszczenia LPD>, <Page: Dla mediów>, <Page: Gmail>]}, {u'calendar_url': '/calendar/events-reports/', u'knowledge_url': '/knowledge-base/', u'blog_url': '/blog/', u'common_url': '/common/fifty-plus/'}, {'block': <Block Node: body_content. Contents: [<Text Node: ' <article class="event"> '>, <Variable Node: article.published_on|date:"d.m.Y">, <Text Node: '</time> <h3> '>, <Variable Node: article.title>, <Text Node: ' </h3> </head'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48020fa1d0>, <Text Node: ' '>, <IfNode>, <Text Node: ' <div class="article'>, <For Node: for object in article.content.main, tail_len: 3>, <Text Node: ' '>, <IfNode>, <Text Node: ' </div> </article> '>, <django.template.defaulttags.URLNode object at 0x7f48021b2d50>, <Text Node: '">« wr??</a> <div '>, <django.contrib.comments.templatetags.comments.CommentCountNode object at 0x7f48021b2790>, <Text Node: ' <h5>Komentarze ('>, <Variable Node: comment_count>, <Text Node: ') </h5> '>, <IfNode>, <Text Node: ' '>, <django.contrib.comments.templatetags.comments.CommentListNode object at 0x7f48021b2250>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2bd0>, <Text Node: ' </div> <!-- /.comme'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2850>, <Text Node: ' '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'object': <GalleryContent: main on Blogujący Latarnicy , ordering 2>}] |
compiled_parent | <django.template.base.Template object at 0x7f4802120a90> |
self | <ExtendsNode: extends "base.html"> |
/var/www/disk/latarnicy.pl/miasta-w-internecie/venv/lib/python2.7/site-packages/django/template/base.py
in _render
def __iter__(self):
for node in self.nodelist:
for subnode in node:
yield subnode
def _render(self, context):
return self.nodelist.render(context)...
def render(self, context):
"Display stage -- can be called many times"
context.render_context.push()
try:
return self._render(context)
Variable | Value |
---|---|
self | <django.template.base.Template object at 0x7f4802120a90> |
context | [{'False': False, 'None': None, 'True': True}, {'liked_by_me': False, 'art': <BlogEntry: Blogujący Latarnicy >, 'images_list': [], 'like_url': '/common/like/', 'cat': None, 'has_gallery': True, 'newest_articles': [<BlogEntry: Nowy projekt Latarniczy! >, <BlogEntry: Wszystkiego najlepszego w Międzynarodowy Dzień Wolontariusza! >, <BlogEntry: SMWI Architektem Rozwoju 2018>, <BlogEntry: Projekt Latarnicy2020.pl >], 'article': <BlogEntry: Blogujący Latarnicy >, 'likes_count': 2, 'slug': u'blogujacy-latarnicy', u'view': <apps.blog.views.ArticleView object at 0x7f48020fcf50>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f4802131410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f4802107610>, 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f48020fc750>>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f48020fc210>}, {}, {u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('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-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), u'LANGUAGE_BIDI': False, u'LANGUAGE_CODE': 'pl'}, {u'STATIC_URL': '/static/'}, {u'MEDIA_URL': '/media/'}, {u'request': <WSGIRequest path:/blog/article/blogujacy-latarnicy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'iWLMJTxecmEueY2GFraMMEg7nDOS1Oyq', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'latarnicy.pl', 'HTTP_REFERER': 'https://latarnicy.pl/blog/article/blogujacy-latarnicy', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/blog/article/blogujacy-latarnicy/', 'QUERY_STRING': '', 'REMOTE_ADDR': '35.175.236.44', 'REMOTE_PORT': '53522', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/blog/article/blogujacy-latarnicy/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'latarnicy.pl', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'vps711161', 'uwsgi.version': '2.0.15-debian', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f481d8a6660>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f480208bc10>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>}, {u'TIME_ZONE': 'Europe/Warsaw'}, {'PYBB_AVATAR_DIMENSIONS': '80x80', 'PYBB_MARKUP': 'bbcode', 'PYBB_TEMPLATE': 'base.html', 'PYBB_DEFAULT_AVATAR_URL': '/static/pybb/img/default_avatar.jpg', 'PYBB_DEFAULT_TITLE': 'PYBB Powered Forum', 'PYBB_ATTACHMENT_ENABLE': True, 'PYBB_ENABLE_ANONYMOUS_POST': False}, {'current_domain': u'http://latarnicy.pl', 'DEBUG': True, 'authenticate_form': <apps.profiles.forms.LoginForm object at 0x7f4802128e50>}, {'query_without_page': <QueryDict: {}>}, {'cms_pages': [<Page: Założenia PCRS >, <Page: Kim są Latarnicy?>, <Page: Historia>, <Page: Streszczenia LPD>, <Page: Dla mediów>, <Page: Gmail>]}, {u'calendar_url': '/calendar/events-reports/', u'knowledge_url': '/knowledge-base/', u'blog_url': '/blog/', u'common_url': '/common/fifty-plus/'}, {'block': <Block Node: body_content. Contents: [<Text Node: ' <article class="event"> '>, <Variable Node: article.published_on|date:"d.m.Y">, <Text Node: '</time> <h3> '>, <Variable Node: article.title>, <Text Node: ' </h3> </head'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48020fa1d0>, <Text Node: ' '>, <IfNode>, <Text Node: ' <div class="article'>, <For Node: for object in article.content.main, tail_len: 3>, <Text Node: ' '>, <IfNode>, <Text Node: ' </div> </article> '>, <django.template.defaulttags.URLNode object at 0x7f48021b2d50>, <Text Node: '">« wr??</a> <div '>, <django.contrib.comments.templatetags.comments.CommentCountNode object at 0x7f48021b2790>, <Text Node: ' <h5>Komentarze ('>, <Variable Node: comment_count>, <Text Node: ') </h5> '>, <IfNode>, <Text Node: ' '>, <django.contrib.comments.templatetags.comments.CommentListNode object at 0x7f48021b2250>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2bd0>, <Text Node: ' </div> <!-- /.comme'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2850>, <Text Node: ' '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'object': <GalleryContent: main on Blogujący Latarnicy , ordering 2>}] |
/var/www/disk/latarnicy.pl/miasta-w-internecie/venv/lib/python2.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 = self.render_node(node, context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <Block Node: body_content. Contents: [<Text Node: ' '>]> |
bit | u'img/ico-search.svg" alt="Szukaj">\n </button>\n </span>\n </form>\n </div>\n </div>\n -->\n </div> <!-- /.additional-nav -->\n </div> <!-- /.container -->\n</div> <!-- /.navbar-fixed-top -->\n\n<main class="container">\n <div style="background-color: #ed1c24; padding: 20px; text-align: center;display: block;width:100%;float:left;position: relative;margin-bottom: 45px;"><h1 style="margin: 0;padding:0;line-height: 120%;color: #FFFFFF;font-weight:600;">Projekt zosta\u0142 zako\u0144czony, zapraszamy na <a style="color: #FFFFFF;text-decoration: underline;" href="https://latarnicy2020.pl" target="_blank">Latarnicy2020.pl</a></h1></div>\n' |
bits | [u'', u'\n\n<!DOCTYPE html>\n<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->\n<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->\n<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->\n<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->\n<head>\n <link href=\'https://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,700italic,400,600,700&subset=latin,latin-ext\' rel=\'stylesheet\' type=\'text/css\'>\n <meta charset="utf-8">\n <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">\n <meta name="viewport" content="width=device-width, initial-scale=1">\n <title></title>\n <meta name="description" content="">\n <link rel=\'SHORTCUT ICON\' href=\'', u'/static/', u'img/ico-favicon.png\' type=\'image/x-icon\' />\n <link rel="stylesheet" href="', u'/static/', u'css/vendor/lightbox.css">\n <link rel="stylesheet" href="', u'/static/', u'css/styles.css">\n <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>\n ', u'\n ', u'\n <!--[if lt IE 9]>\n <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>\n <script>window.html5 || document.write(\'<script src="js/vendor/html5shiv.js"><\\/script>\')</script>\n <![endif]-->\n</head>\n\n<body>\n<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">\n <div class="container">\n <a class="navbar-brand" href="', u'/', u'"><img src="', u'/static/', u'img/img-logo.svg" alt="Latarnicy"></a>\n\n ', u'\n ', u'\n\n <nav class="main-nav ">\n ', u'', u'\n ', u'', u'\n ', u'', u'\n ', u'', u'\n <a href=', u'/blog/', u' ', u'', u'>\n Wydarzenia\n </a>\n <a href=', u'/calendar/events-reports/', u' ', u'', u'>\n Relacje z zaj\u0119\u0107 latarnik\xf3w\n </a>\n <a href="https://www.youtube.com/channel/UCA2IwzYL8aUwbcmgCl3AXsw">\n Latarnicy TV\n </a>\n <a href=', u'/knowledge-base/', u' ', u'', u'>\n Baza wiedzy\n </a>\n <a class="last-anchor ', u'', u'" href=', u'/common/fifty-plus/', u' >\n Jestem 50+\n </a>\n </nav> <!-- /.main-nav -->\n <div class="additional-nav">\n <div class="btn-group">\n <button class="btn-menu dropdown-toggle" data-toggle="dropdown">\n <img src="', u'/static/', u'img/ico-menu.svg" alt="poka\u017c menu">\n </button>\n <ul class="dropdown-menu" role="menu">\n <li>\n <a href="', u'/static_content/about-pcrs/', u'">\n O projekcie PCRS\n </a>\n </li>\n <li>\n <a href="', u'/common/media/', u'">\n Media\n </a>\n </li>\n <li>\n <a href="', u'/static_content/pcrs-team/', u'">\n Zesp\xf3\u0142\n </a>\n </li>\n <!-- ', u'\n <li class="divider"></li>\n <li class="login">\n <a href="/profiles/login/">\n <img src="/static/img/ico-user-small.svg" alt="Zaloguj si\u0119"> Zaloguj si\u0119\n </a>\n </li>\n <li class="login">\n <a href="/profiles/register/">\n <img src="/static/img/ico-user-small.svg" alt="Zarejestruj si\u0119"> Zarejestruj si\u0119\n </a>\n </li>\n ', u' -->\n </ul>\n </div>\n ', u'', u'\n <!-- search component\n <div class="btn-group">\n <button class="btn-search dropdown-toggle" data-toggle="dropdown">\n <img class="ico-search" src="', u'/static/', u'img/ico-search.svg" alt="Wyszukiwarka">\n <img class="ico-close-search" src="', u'/static/', u'img/ico-close-search.svg" alt="Wyszukiwarka">\n </button>\n <div class="dropdown-menu" role="search">\n <form class="input-group" method="post" action="#">\n <input type="text" name="search"\n placeholder="Szukaj Latarnika, tematu, relacji, miejscowo\u015bci...">\n <span class="input-group-btn">\n <button class="btn btn-default" type="submit">\n <img src="', u'/static/', u'img/ico-search.svg" alt="Szukaj">\n </button>\n </span>\n </form>\n </div>\n </div>\n -->\n </div> <!-- /.additional-nav -->\n </div> <!-- /.container -->\n</div> <!-- /.navbar-fixed-top -->\n\n<main class="container">\n <div style="background-color: #ed1c24; padding: 20px; text-align: center;display: block;width:100%;float:left;position: relative;margin-bottom: 45px;"><h1 style="margin: 0;padding:0;line-height: 120%;color: #FFFFFF;font-weight:600;">Projekt zosta\u0142 zako\u0144czony, zapraszamy na <a style="color: #FFFFFF;text-decoration: underline;" href="https://latarnicy2020.pl" target="_blank">Latarnicy2020.pl</a></h1></div>\n'] |
self | [<django.template.defaulttags.LoadNode object at 0x7f48020968d0>, <Text Node: ' <!DOCTYPE html> <!--[if'>, <Variable Node: STATIC_URL>, <Text Node: 'img/ico-favicon.png' type'>, <Variable Node: STATIC_URL>, <Text Node: 'css/vendor/lightbox.css">'>, <Variable Node: STATIC_URL>, <Text Node: 'css/styles.css"> <scr'>, <Block Node: extra_css. Contents: [<Text Node: ' '>]>, <Text Node: ' <!--[if lt IE 9]> '>, <django.template.defaulttags.URLNode object at 0x7f4802128c50>, <Text Node: '"><img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'img/img-logo.svg" alt="La'>, <Block Node: responsive_menu. Contents: [<Text Node: ' '>]>, <Text Node: ' <nav class="mai'>, <django.template.defaulttags.URLNode object at 0x7f48021286d0>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7f48020969d0>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7f4802096810>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7f4802096f10>, <Text Node: ' <a href='>, <Variable Node: blog_url>, <Text Node: ' '>, <IfNode>, <Text Node: '> Wydarze'>, <Variable Node: calendar_url>, <Text Node: ' '>, <IfNode>, <Text Node: '> Relacje'>, <Variable Node: knowledge_url>, <Text Node: ' '>, <IfNode>, <Text Node: '> Baza wi'>, <IfNode>, <Text Node: '" href='>, <Variable Node: common_url>, <Text Node: ' > Jestem'>, <Variable Node: STATIC_URL>, <Text Node: 'img/ico-menu.svg" alt="po'>, <django.template.defaulttags.URLNode object at 0x7f480208f850>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7f480208fc90>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7f480208f6d0>, <Text Node: '"> '>, <IfNode>, <Text Node: ' --> </ul'>, <IfNode>, <Text Node: ' <!-- search '>, <Variable Node: STATIC_URL>, <Text Node: 'img/ico-search.svg" alt="'>, <Variable Node: STATIC_URL>, <Text Node: 'img/ico-close-search.svg"'>, <Variable Node: STATIC_URL>, <Text Node: 'img/ico-search.svg" alt="'>, <Block Node: body_content. Contents: [<Text Node: ' '>]>, <Text Node: ' </main> <!-- /main '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48020d7610>, <Text Node: ' <script type="text/java'>, <Variable Node: STATIC_URL>, <Text Node: 'js/vendor/jquery-1.11.0.m'>, <Variable Node: STATIC_URL>, <Text Node: 'js/vendor/bootstrap.min.j'>, <Variable Node: STATIC_URL>, <Text Node: 'js/vendor/jquery.cookie.m'>, <Variable Node: STATIC_URL>, <Text Node: 'js/vendor/jquery.customSe'>, <Variable Node: STATIC_URL>, <Text Node: 'js/vendor/lightbox.min.js'>, <Variable Node: STATIC_URL>, <Text Node: 'js/main.js"></script> '>, <Block Node: extra_js. Contents: [<Text Node: ' '>]>, <Text Node: ' <!-- Google Analytics: '>] |
context | [{'False': False, 'None': None, 'True': True}, {'liked_by_me': False, 'art': <BlogEntry: Blogujący Latarnicy >, 'images_list': [], 'like_url': '/common/like/', 'cat': None, 'has_gallery': True, 'newest_articles': [<BlogEntry: Nowy projekt Latarniczy! >, <BlogEntry: Wszystkiego najlepszego w Międzynarodowy Dzień Wolontariusza! >, <BlogEntry: SMWI Architektem Rozwoju 2018>, <BlogEntry: Projekt Latarnicy2020.pl >], 'article': <BlogEntry: Blogujący Latarnicy >, 'likes_count': 2, 'slug': u'blogujacy-latarnicy', u'view': <apps.blog.views.ArticleView object at 0x7f48020fcf50>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f4802131410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f4802107610>, 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f48020fc750>>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f48020fc210>}, {}, {u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('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-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), u'LANGUAGE_BIDI': False, u'LANGUAGE_CODE': 'pl'}, {u'STATIC_URL': '/static/'}, {u'MEDIA_URL': '/media/'}, {u'request': <WSGIRequest path:/blog/article/blogujacy-latarnicy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'iWLMJTxecmEueY2GFraMMEg7nDOS1Oyq', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'latarnicy.pl', 'HTTP_REFERER': 'https://latarnicy.pl/blog/article/blogujacy-latarnicy', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/blog/article/blogujacy-latarnicy/', 'QUERY_STRING': '', 'REMOTE_ADDR': '35.175.236.44', 'REMOTE_PORT': '53522', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/blog/article/blogujacy-latarnicy/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'latarnicy.pl', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'vps711161', 'uwsgi.version': '2.0.15-debian', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f481d8a6660>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f480208bc10>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>}, {u'TIME_ZONE': 'Europe/Warsaw'}, {'PYBB_AVATAR_DIMENSIONS': '80x80', 'PYBB_MARKUP': 'bbcode', 'PYBB_TEMPLATE': 'base.html', 'PYBB_DEFAULT_AVATAR_URL': '/static/pybb/img/default_avatar.jpg', 'PYBB_DEFAULT_TITLE': 'PYBB Powered Forum', 'PYBB_ATTACHMENT_ENABLE': True, 'PYBB_ENABLE_ANONYMOUS_POST': False}, {'current_domain': u'http://latarnicy.pl', 'DEBUG': True, 'authenticate_form': <apps.profiles.forms.LoginForm object at 0x7f4802128e50>}, {'query_without_page': <QueryDict: {}>}, {'cms_pages': [<Page: Założenia PCRS >, <Page: Kim są Latarnicy?>, <Page: Historia>, <Page: Streszczenia LPD>, <Page: Dla mediów>, <Page: Gmail>]}, {u'calendar_url': '/calendar/events-reports/', u'knowledge_url': '/knowledge-base/', u'blog_url': '/blog/', u'common_url': '/common/fifty-plus/'}, {'block': <Block Node: body_content. Contents: [<Text Node: ' <article class="event"> '>, <Variable Node: article.published_on|date:"d.m.Y">, <Text Node: '</time> <h3> '>, <Variable Node: article.title>, <Text Node: ' </h3> </head'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48020fa1d0>, <Text Node: ' '>, <IfNode>, <Text Node: ' <div class="article'>, <For Node: for object in article.content.main, tail_len: 3>, <Text Node: ' '>, <IfNode>, <Text Node: ' </div> </article> '>, <django.template.defaulttags.URLNode object at 0x7f48021b2d50>, <Text Node: '">« wr??</a> <div '>, <django.contrib.comments.templatetags.comments.CommentCountNode object at 0x7f48021b2790>, <Text Node: ' <h5>Komentarze ('>, <Variable Node: comment_count>, <Text Node: ') </h5> '>, <IfNode>, <Text Node: ' '>, <django.contrib.comments.templatetags.comments.CommentListNode object at 0x7f48021b2250>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2bd0>, <Text Node: ' </div> <!-- /.comme'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2850>, <Text Node: ' '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'object': <GalleryContent: main on Blogujący Latarnicy , ordering 2>}] |
/var/www/disk/latarnicy.pl/miasta-w-internecie/venv/lib/python2.7/site-packages/django/template/debug.py
in render_node
def compile_function_error(self, token, e):
if not hasattr(e, 'django_template_source'):
e.django_template_source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
return node.render(context)...
except Exception as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <Block Node: body_content. Contents: [<Text Node: ' '>]> |
self | [<django.template.defaulttags.LoadNode object at 0x7f48020968d0>, <Text Node: ' <!DOCTYPE html> <!--[if'>, <Variable Node: STATIC_URL>, <Text Node: 'img/ico-favicon.png' type'>, <Variable Node: STATIC_URL>, <Text Node: 'css/vendor/lightbox.css">'>, <Variable Node: STATIC_URL>, <Text Node: 'css/styles.css"> <scr'>, <Block Node: extra_css. Contents: [<Text Node: ' '>]>, <Text Node: ' <!--[if lt IE 9]> '>, <django.template.defaulttags.URLNode object at 0x7f4802128c50>, <Text Node: '"><img src="'>, <Variable Node: STATIC_URL>, <Text Node: 'img/img-logo.svg" alt="La'>, <Block Node: responsive_menu. Contents: [<Text Node: ' '>]>, <Text Node: ' <nav class="mai'>, <django.template.defaulttags.URLNode object at 0x7f48021286d0>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7f48020969d0>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7f4802096810>, <Text Node: ' '>, <django.template.defaulttags.URLNode object at 0x7f4802096f10>, <Text Node: ' <a href='>, <Variable Node: blog_url>, <Text Node: ' '>, <IfNode>, <Text Node: '> Wydarze'>, <Variable Node: calendar_url>, <Text Node: ' '>, <IfNode>, <Text Node: '> Relacje'>, <Variable Node: knowledge_url>, <Text Node: ' '>, <IfNode>, <Text Node: '> Baza wi'>, <IfNode>, <Text Node: '" href='>, <Variable Node: common_url>, <Text Node: ' > Jestem'>, <Variable Node: STATIC_URL>, <Text Node: 'img/ico-menu.svg" alt="po'>, <django.template.defaulttags.URLNode object at 0x7f480208f850>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7f480208fc90>, <Text Node: '"> '>, <django.template.defaulttags.URLNode object at 0x7f480208f6d0>, <Text Node: '"> '>, <IfNode>, <Text Node: ' --> </ul'>, <IfNode>, <Text Node: ' <!-- search '>, <Variable Node: STATIC_URL>, <Text Node: 'img/ico-search.svg" alt="'>, <Variable Node: STATIC_URL>, <Text Node: 'img/ico-close-search.svg"'>, <Variable Node: STATIC_URL>, <Text Node: 'img/ico-search.svg" alt="'>, <Block Node: body_content. Contents: [<Text Node: ' '>]>, <Text Node: ' </main> <!-- /main '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48020d7610>, <Text Node: ' <script type="text/java'>, <Variable Node: STATIC_URL>, <Text Node: 'js/vendor/jquery-1.11.0.m'>, <Variable Node: STATIC_URL>, <Text Node: 'js/vendor/bootstrap.min.j'>, <Variable Node: STATIC_URL>, <Text Node: 'js/vendor/jquery.cookie.m'>, <Variable Node: STATIC_URL>, <Text Node: 'js/vendor/jquery.customSe'>, <Variable Node: STATIC_URL>, <Text Node: 'js/vendor/lightbox.min.js'>, <Variable Node: STATIC_URL>, <Text Node: 'js/main.js"></script> '>, <Block Node: extra_js. Contents: [<Text Node: ' '>]>, <Text Node: ' <!-- Google Analytics: '>] |
e | AttributeError("'NoneType' object has no attribute 'GET'",) |
context | [{'False': False, 'None': None, 'True': True}, {'liked_by_me': False, 'art': <BlogEntry: Blogujący Latarnicy >, 'images_list': [], 'like_url': '/common/like/', 'cat': None, 'has_gallery': True, 'newest_articles': [<BlogEntry: Nowy projekt Latarniczy! >, <BlogEntry: Wszystkiego najlepszego w Międzynarodowy Dzień Wolontariusza! >, <BlogEntry: SMWI Architektem Rozwoju 2018>, <BlogEntry: Projekt Latarnicy2020.pl >], 'article': <BlogEntry: Blogujący Latarnicy >, 'likes_count': 2, 'slug': u'blogujacy-latarnicy', u'view': <apps.blog.views.ArticleView object at 0x7f48020fcf50>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f4802131410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f4802107610>, 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f48020fc750>>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f48020fc210>}, {}, {u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('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-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), u'LANGUAGE_BIDI': False, u'LANGUAGE_CODE': 'pl'}, {u'STATIC_URL': '/static/'}, {u'MEDIA_URL': '/media/'}, {u'request': <WSGIRequest path:/blog/article/blogujacy-latarnicy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'iWLMJTxecmEueY2GFraMMEg7nDOS1Oyq', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'latarnicy.pl', 'HTTP_REFERER': 'https://latarnicy.pl/blog/article/blogujacy-latarnicy', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/blog/article/blogujacy-latarnicy/', 'QUERY_STRING': '', 'REMOTE_ADDR': '35.175.236.44', 'REMOTE_PORT': '53522', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/blog/article/blogujacy-latarnicy/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'latarnicy.pl', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'vps711161', 'uwsgi.version': '2.0.15-debian', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f481d8a6660>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f480208bc10>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>}, {u'TIME_ZONE': 'Europe/Warsaw'}, {'PYBB_AVATAR_DIMENSIONS': '80x80', 'PYBB_MARKUP': 'bbcode', 'PYBB_TEMPLATE': 'base.html', 'PYBB_DEFAULT_AVATAR_URL': '/static/pybb/img/default_avatar.jpg', 'PYBB_DEFAULT_TITLE': 'PYBB Powered Forum', 'PYBB_ATTACHMENT_ENABLE': True, 'PYBB_ENABLE_ANONYMOUS_POST': False}, {'current_domain': u'http://latarnicy.pl', 'DEBUG': True, 'authenticate_form': <apps.profiles.forms.LoginForm object at 0x7f4802128e50>}, {'query_without_page': <QueryDict: {}>}, {'cms_pages': [<Page: Założenia PCRS >, <Page: Kim są Latarnicy?>, <Page: Historia>, <Page: Streszczenia LPD>, <Page: Dla mediów>, <Page: Gmail>]}, {u'calendar_url': '/calendar/events-reports/', u'knowledge_url': '/knowledge-base/', u'blog_url': '/blog/', u'common_url': '/common/fifty-plus/'}, {'block': <Block Node: body_content. Contents: [<Text Node: ' <article class="event"> '>, <Variable Node: article.published_on|date:"d.m.Y">, <Text Node: '</time> <h3> '>, <Variable Node: article.title>, <Text Node: ' </h3> </head'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48020fa1d0>, <Text Node: ' '>, <IfNode>, <Text Node: ' <div class="article'>, <For Node: for object in article.content.main, tail_len: 3>, <Text Node: ' '>, <IfNode>, <Text Node: ' </div> </article> '>, <django.template.defaulttags.URLNode object at 0x7f48021b2d50>, <Text Node: '">« wr??</a> <div '>, <django.contrib.comments.templatetags.comments.CommentCountNode object at 0x7f48021b2790>, <Text Node: ' <h5>Komentarze ('>, <Variable Node: comment_count>, <Text Node: ') </h5> '>, <IfNode>, <Text Node: ' '>, <django.contrib.comments.templatetags.comments.CommentListNode object at 0x7f48021b2250>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2bd0>, <Text Node: ' </div> <!-- /.comme'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2850>, <Text Node: ' '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'object': <GalleryContent: main on Blogujący Latarnicy , ordering 2>}] |
/var/www/disk/latarnicy.pl/miasta-w-internecie/venv/lib/python2.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 = BlockNode(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)
context.pop()
return result
def super(self):
Variable | Value |
---|---|
push | <Block Node: body_content. Contents: [<Text Node: ' <article class="event"> '>, <Variable Node: article.published_on|date:"d.m.Y">, <Text Node: '</time> <h3> '>, <Variable Node: article.title>, <Text Node: ' </h3> </head'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48020fa1d0>, <Text Node: ' '>, <IfNode>, <Text Node: ' <div class="article'>, <For Node: for object in article.content.main, tail_len: 3>, <Text Node: ' '>, <IfNode>, <Text Node: ' </div> </article> '>, <django.template.defaulttags.URLNode object at 0x7f48021b2d50>, <Text Node: '">« wr??</a> <div '>, <django.contrib.comments.templatetags.comments.CommentCountNode object at 0x7f48021b2790>, <Text Node: ' <h5>Komentarze ('>, <Variable Node: comment_count>, <Text Node: ') </h5> '>, <IfNode>, <Text Node: ' '>, <django.contrib.comments.templatetags.comments.CommentListNode object at 0x7f48021b2250>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2bd0>, <Text Node: ' </div> <!-- /.comme'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2850>, <Text Node: ' '>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7f4808612a50> |
block | <Block Node: body_content. Contents: [<Text Node: ' <article class="event"> '>, <Variable Node: article.published_on|date:"d.m.Y">, <Text Node: '</time> <h3> '>, <Variable Node: article.title>, <Text Node: ' </h3> </head'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48020fa1d0>, <Text Node: ' '>, <IfNode>, <Text Node: ' <div class="article'>, <For Node: for object in article.content.main, tail_len: 3>, <Text Node: ' '>, <IfNode>, <Text Node: ' </div> </article> '>, <django.template.defaulttags.URLNode object at 0x7f48021b2d50>, <Text Node: '">« wr??</a> <div '>, <django.contrib.comments.templatetags.comments.CommentCountNode object at 0x7f48021b2790>, <Text Node: ' <h5>Komentarze ('>, <Variable Node: comment_count>, <Text Node: ') </h5> '>, <IfNode>, <Text Node: ' '>, <django.contrib.comments.templatetags.comments.CommentListNode object at 0x7f48021b2250>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2bd0>, <Text Node: ' </div> <!-- /.comme'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2850>, <Text Node: ' '>]> |
context | [{'False': False, 'None': None, 'True': True}, {'liked_by_me': False, 'art': <BlogEntry: Blogujący Latarnicy >, 'images_list': [], 'like_url': '/common/like/', 'cat': None, 'has_gallery': True, 'newest_articles': [<BlogEntry: Nowy projekt Latarniczy! >, <BlogEntry: Wszystkiego najlepszego w Międzynarodowy Dzień Wolontariusza! >, <BlogEntry: SMWI Architektem Rozwoju 2018>, <BlogEntry: Projekt Latarnicy2020.pl >], 'article': <BlogEntry: Blogujący Latarnicy >, 'likes_count': 2, 'slug': u'blogujacy-latarnicy', u'view': <apps.blog.views.ArticleView object at 0x7f48020fcf50>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f4802131410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f4802107610>, 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f48020fc750>>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f48020fc210>}, {}, {u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('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-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), u'LANGUAGE_BIDI': False, u'LANGUAGE_CODE': 'pl'}, {u'STATIC_URL': '/static/'}, {u'MEDIA_URL': '/media/'}, {u'request': <WSGIRequest path:/blog/article/blogujacy-latarnicy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'iWLMJTxecmEueY2GFraMMEg7nDOS1Oyq', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'latarnicy.pl', 'HTTP_REFERER': 'https://latarnicy.pl/blog/article/blogujacy-latarnicy', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/blog/article/blogujacy-latarnicy/', 'QUERY_STRING': '', 'REMOTE_ADDR': '35.175.236.44', 'REMOTE_PORT': '53522', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/blog/article/blogujacy-latarnicy/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'latarnicy.pl', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'vps711161', 'uwsgi.version': '2.0.15-debian', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f481d8a6660>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f480208bc10>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>}, {u'TIME_ZONE': 'Europe/Warsaw'}, {'PYBB_AVATAR_DIMENSIONS': '80x80', 'PYBB_MARKUP': 'bbcode', 'PYBB_TEMPLATE': 'base.html', 'PYBB_DEFAULT_AVATAR_URL': '/static/pybb/img/default_avatar.jpg', 'PYBB_DEFAULT_TITLE': 'PYBB Powered Forum', 'PYBB_ATTACHMENT_ENABLE': True, 'PYBB_ENABLE_ANONYMOUS_POST': False}, {'current_domain': u'http://latarnicy.pl', 'DEBUG': True, 'authenticate_form': <apps.profiles.forms.LoginForm object at 0x7f4802128e50>}, {'query_without_page': <QueryDict: {}>}, {'cms_pages': [<Page: Założenia PCRS >, <Page: Kim są Latarnicy?>, <Page: Historia>, <Page: Streszczenia LPD>, <Page: Dla mediów>, <Page: Gmail>]}, {u'calendar_url': '/calendar/events-reports/', u'knowledge_url': '/knowledge-base/', u'blog_url': '/blog/', u'common_url': '/common/fifty-plus/'}, {'block': <Block Node: body_content. Contents: [<Text Node: ' <article class="event"> '>, <Variable Node: article.published_on|date:"d.m.Y">, <Text Node: '</time> <h3> '>, <Variable Node: article.title>, <Text Node: ' </h3> </head'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48020fa1d0>, <Text Node: ' '>, <IfNode>, <Text Node: ' <div class="article'>, <For Node: for object in article.content.main, tail_len: 3>, <Text Node: ' '>, <IfNode>, <Text Node: ' </div> </article> '>, <django.template.defaulttags.URLNode object at 0x7f48021b2d50>, <Text Node: '">« wr??</a> <div '>, <django.contrib.comments.templatetags.comments.CommentCountNode object at 0x7f48021b2790>, <Text Node: ' <h5>Komentarze ('>, <Variable Node: comment_count>, <Text Node: ') </h5> '>, <IfNode>, <Text Node: ' '>, <django.contrib.comments.templatetags.comments.CommentListNode object at 0x7f48021b2250>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2bd0>, <Text Node: ' </div> <!-- /.comme'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2850>, <Text Node: ' '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'object': <GalleryContent: main on Blogujący Latarnicy , ordering 2>}] |
self | <Block Node: body_content. Contents: [<Text Node: ' '>]> |
/var/www/disk/latarnicy.pl/miasta-w-internecie/venv/lib/python2.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 = self.render_node(node, context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
node | <For Node: for object in article.content.main, tail_len: 3> |
bit | u'\n\n <div class="article-main-content">\n ' |
bits | [u'\n<article class="event">\n <header>\n <time>', u'30.05.2014', u'</time>\n <h3>\n ', u'Bloguj\u0105cy Latarnicy ', u'\n </h3>\n </header>\n\n ', u'\n\n\n<div class="functions-wrapper">\n \n <span class="like">\n <span class="like-box"></span>\n\n </span>\n <div class="font-size-wrapper">\n <button id = "fontsize-big" class="font-large">A</button>\n <button id = "fontsize-default" class="font-medium">A</button>\n <button id = "fontsize-little" class="font-small">A</button>\n </div>\n\n <div class="social-wrapper">\n <a class="social-fb" href="http://www.facebook.com/sharer.php?u=https://latarnicy.pl/blog/article/blogujacy-latarnicy/">\n <span class="fb-counter">\n 2\n </span>\n </a>\n <a class="social-twitter" href="http://twitter.com/home?status=Czytam: Bloguj\u0105cy Latarnicy %2Bhttps://latarnicy.pl/blog/article/blogujacy-latarnicy/" data-url="https://latarnicy.pl/blog/article/blogujacy-latarnicy/">twitter</a>\n <a class="social-google" href="https://plus.google.com/share?url=https://latarnicy.pl/blog/article/blogujacy-latarnicy/">google+</a>\n </div>\n</div> <!--/.functions-wrapper -->\n', u'\n\n\n ', u'\n \n \n <img src="/media/main_image/2014-05-29_008.jpg" class="main_image" width="715" height="473"/>\n \n \n ', u'\n\n <div class="article-main-content">\n '] |
self | [<Text Node: ' <article class="event"> '>, <Variable Node: article.published_on|date:"d.m.Y">, <Text Node: '</time> <h3> '>, <Variable Node: article.title>, <Text Node: ' </h3> </head'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48020fa1d0>, <Text Node: ' '>, <IfNode>, <Text Node: ' <div class="article'>, <For Node: for object in article.content.main, tail_len: 3>, <Text Node: ' '>, <IfNode>, <Text Node: ' </div> </article> '>, <django.template.defaulttags.URLNode object at 0x7f48021b2d50>, <Text Node: '">« wr??</a> <div '>, <django.contrib.comments.templatetags.comments.CommentCountNode object at 0x7f48021b2790>, <Text Node: ' <h5>Komentarze ('>, <Variable Node: comment_count>, <Text Node: ') </h5> '>, <IfNode>, <Text Node: ' '>, <django.contrib.comments.templatetags.comments.CommentListNode object at 0x7f48021b2250>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2bd0>, <Text Node: ' </div> <!-- /.comme'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2850>, <Text Node: ' '>] |
context | [{'False': False, 'None': None, 'True': True}, {'liked_by_me': False, 'art': <BlogEntry: Blogujący Latarnicy >, 'images_list': [], 'like_url': '/common/like/', 'cat': None, 'has_gallery': True, 'newest_articles': [<BlogEntry: Nowy projekt Latarniczy! >, <BlogEntry: Wszystkiego najlepszego w Międzynarodowy Dzień Wolontariusza! >, <BlogEntry: SMWI Architektem Rozwoju 2018>, <BlogEntry: Projekt Latarnicy2020.pl >], 'article': <BlogEntry: Blogujący Latarnicy >, 'likes_count': 2, 'slug': u'blogujacy-latarnicy', u'view': <apps.blog.views.ArticleView object at 0x7f48020fcf50>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f4802131410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f4802107610>, 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f48020fc750>>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f48020fc210>}, {}, {u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('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-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), u'LANGUAGE_BIDI': False, u'LANGUAGE_CODE': 'pl'}, {u'STATIC_URL': '/static/'}, {u'MEDIA_URL': '/media/'}, {u'request': <WSGIRequest path:/blog/article/blogujacy-latarnicy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'iWLMJTxecmEueY2GFraMMEg7nDOS1Oyq', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'latarnicy.pl', 'HTTP_REFERER': 'https://latarnicy.pl/blog/article/blogujacy-latarnicy', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/blog/article/blogujacy-latarnicy/', 'QUERY_STRING': '', 'REMOTE_ADDR': '35.175.236.44', 'REMOTE_PORT': '53522', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/blog/article/blogujacy-latarnicy/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'latarnicy.pl', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'vps711161', 'uwsgi.version': '2.0.15-debian', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f481d8a6660>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f480208bc10>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>}, {u'TIME_ZONE': 'Europe/Warsaw'}, {'PYBB_AVATAR_DIMENSIONS': '80x80', 'PYBB_MARKUP': 'bbcode', 'PYBB_TEMPLATE': 'base.html', 'PYBB_DEFAULT_AVATAR_URL': '/static/pybb/img/default_avatar.jpg', 'PYBB_DEFAULT_TITLE': 'PYBB Powered Forum', 'PYBB_ATTACHMENT_ENABLE': True, 'PYBB_ENABLE_ANONYMOUS_POST': False}, {'current_domain': u'http://latarnicy.pl', 'DEBUG': True, 'authenticate_form': <apps.profiles.forms.LoginForm object at 0x7f4802128e50>}, {'query_without_page': <QueryDict: {}>}, {'cms_pages': [<Page: Założenia PCRS >, <Page: Kim są Latarnicy?>, <Page: Historia>, <Page: Streszczenia LPD>, <Page: Dla mediów>, <Page: Gmail>]}, {u'calendar_url': '/calendar/events-reports/', u'knowledge_url': '/knowledge-base/', u'blog_url': '/blog/', u'common_url': '/common/fifty-plus/'}, {'block': <Block Node: body_content. Contents: [<Text Node: ' <article class="event"> '>, <Variable Node: article.published_on|date:"d.m.Y">, <Text Node: '</time> <h3> '>, <Variable Node: article.title>, <Text Node: ' </h3> </head'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48020fa1d0>, <Text Node: ' '>, <IfNode>, <Text Node: ' <div class="article'>, <For Node: for object in article.content.main, tail_len: 3>, <Text Node: ' '>, <IfNode>, <Text Node: ' </div> </article> '>, <django.template.defaulttags.URLNode object at 0x7f48021b2d50>, <Text Node: '">« wr??</a> <div '>, <django.contrib.comments.templatetags.comments.CommentCountNode object at 0x7f48021b2790>, <Text Node: ' <h5>Komentarze ('>, <Variable Node: comment_count>, <Text Node: ') </h5> '>, <IfNode>, <Text Node: ' '>, <django.contrib.comments.templatetags.comments.CommentListNode object at 0x7f48021b2250>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2bd0>, <Text Node: ' </div> <!-- /.comme'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2850>, <Text Node: ' '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'object': <GalleryContent: main on Blogujący Latarnicy , ordering 2>}] |
/var/www/disk/latarnicy.pl/miasta-w-internecie/venv/lib/python2.7/site-packages/django/template/debug.py
in render_node
def compile_function_error(self, token, e):
if not hasattr(e, 'django_template_source'):
e.django_template_source = token.source
class DebugNodeList(NodeList):
def render_node(self, node, context):
try:
return node.render(context)...
except Exception as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
Variable | Value |
---|---|
node | <For Node: for object in article.content.main, tail_len: 3> |
self | [<Text Node: ' <article class="event"> '>, <Variable Node: article.published_on|date:"d.m.Y">, <Text Node: '</time> <h3> '>, <Variable Node: article.title>, <Text Node: ' </h3> </head'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48020fa1d0>, <Text Node: ' '>, <IfNode>, <Text Node: ' <div class="article'>, <For Node: for object in article.content.main, tail_len: 3>, <Text Node: ' '>, <IfNode>, <Text Node: ' </div> </article> '>, <django.template.defaulttags.URLNode object at 0x7f48021b2d50>, <Text Node: '">« wr??</a> <div '>, <django.contrib.comments.templatetags.comments.CommentCountNode object at 0x7f48021b2790>, <Text Node: ' <h5>Komentarze ('>, <Variable Node: comment_count>, <Text Node: ') </h5> '>, <IfNode>, <Text Node: ' '>, <django.contrib.comments.templatetags.comments.CommentListNode object at 0x7f48021b2250>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2bd0>, <Text Node: ' </div> <!-- /.comme'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2850>, <Text Node: ' '>] |
e | AttributeError("'NoneType' object has no attribute 'GET'",) |
context | [{'False': False, 'None': None, 'True': True}, {'liked_by_me': False, 'art': <BlogEntry: Blogujący Latarnicy >, 'images_list': [], 'like_url': '/common/like/', 'cat': None, 'has_gallery': True, 'newest_articles': [<BlogEntry: Nowy projekt Latarniczy! >, <BlogEntry: Wszystkiego najlepszego w Międzynarodowy Dzień Wolontariusza! >, <BlogEntry: SMWI Architektem Rozwoju 2018>, <BlogEntry: Projekt Latarnicy2020.pl >], 'article': <BlogEntry: Blogujący Latarnicy >, 'likes_count': 2, 'slug': u'blogujacy-latarnicy', u'view': <apps.blog.views.ArticleView object at 0x7f48020fcf50>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f4802131410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f4802107610>, 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f48020fc750>>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f48020fc210>}, {}, {u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('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-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), u'LANGUAGE_BIDI': False, u'LANGUAGE_CODE': 'pl'}, {u'STATIC_URL': '/static/'}, {u'MEDIA_URL': '/media/'}, {u'request': <WSGIRequest path:/blog/article/blogujacy-latarnicy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'iWLMJTxecmEueY2GFraMMEg7nDOS1Oyq', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'latarnicy.pl', 'HTTP_REFERER': 'https://latarnicy.pl/blog/article/blogujacy-latarnicy', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/blog/article/blogujacy-latarnicy/', 'QUERY_STRING': '', 'REMOTE_ADDR': '35.175.236.44', 'REMOTE_PORT': '53522', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/blog/article/blogujacy-latarnicy/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'latarnicy.pl', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'vps711161', 'uwsgi.version': '2.0.15-debian', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f481d8a6660>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f480208bc10>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>}, {u'TIME_ZONE': 'Europe/Warsaw'}, {'PYBB_AVATAR_DIMENSIONS': '80x80', 'PYBB_MARKUP': 'bbcode', 'PYBB_TEMPLATE': 'base.html', 'PYBB_DEFAULT_AVATAR_URL': '/static/pybb/img/default_avatar.jpg', 'PYBB_DEFAULT_TITLE': 'PYBB Powered Forum', 'PYBB_ATTACHMENT_ENABLE': True, 'PYBB_ENABLE_ANONYMOUS_POST': False}, {'current_domain': u'http://latarnicy.pl', 'DEBUG': True, 'authenticate_form': <apps.profiles.forms.LoginForm object at 0x7f4802128e50>}, {'query_without_page': <QueryDict: {}>}, {'cms_pages': [<Page: Założenia PCRS >, <Page: Kim są Latarnicy?>, <Page: Historia>, <Page: Streszczenia LPD>, <Page: Dla mediów>, <Page: Gmail>]}, {u'calendar_url': '/calendar/events-reports/', u'knowledge_url': '/knowledge-base/', u'blog_url': '/blog/', u'common_url': '/common/fifty-plus/'}, {'block': <Block Node: body_content. Contents: [<Text Node: ' <article class="event"> '>, <Variable Node: article.published_on|date:"d.m.Y">, <Text Node: '</time> <h3> '>, <Variable Node: article.title>, <Text Node: ' </h3> </head'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48020fa1d0>, <Text Node: ' '>, <IfNode>, <Text Node: ' <div class="article'>, <For Node: for object in article.content.main, tail_len: 3>, <Text Node: ' '>, <IfNode>, <Text Node: ' </div> </article> '>, <django.template.defaulttags.URLNode object at 0x7f48021b2d50>, <Text Node: '">« wr??</a> <div '>, <django.contrib.comments.templatetags.comments.CommentCountNode object at 0x7f48021b2790>, <Text Node: ' <h5>Komentarze ('>, <Variable Node: comment_count>, <Text Node: ') </h5> '>, <IfNode>, <Text Node: ' '>, <django.contrib.comments.templatetags.comments.CommentListNode object at 0x7f48021b2250>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2bd0>, <Text Node: ' </div> <!-- /.comme'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2850>, <Text Node: ' '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'object': <GalleryContent: main on Blogujący Latarnicy , ordering 2>}] |
/var/www/disk/latarnicy.pl/miasta-w-internecie/venv/lib/python2.7/site-packages/django/template/defaulttags.py
in render
else:
context[self.loopvars[0]] = item
# In TEMPLATE_DEBUG mode provide source of the node which
# actually raised the exception
if settings.TEMPLATE_DEBUG:
for node in self.nodelist_loop:
try:
nodelist.append(node.render(context))...
except Exception as e:
if not hasattr(e, 'django_template_source'):
e.django_template_source = node.source
raise
else:
for node in self.nodelist_loop:
Variable | Value |
---|---|
node | <Variable Node: object.render> |
len_values | 2 |
pop_context | False |
e | AttributeError("'NoneType' object has no attribute 'GET'",) |
item | <GalleryContent: main on Blogujący Latarnicy , ordering 2> |
loop_dict | {u'counter': 2, u'counter0': 1, u'first': False, u'last': True, u'parentloop': {}, u'revcounter': 1, u'revcounter0': 0} |
self | <For Node: for object in article.content.main, tail_len: 3> |
parentloop | {} |
i | 1 |
values | [<RichTextContent: main on Blogujący Latarnicy , ordering 0>, <GalleryContent: main on Blogujący Latarnicy , ordering 2>] |
context | [{'False': False, 'None': None, 'True': True}, {'liked_by_me': False, 'art': <BlogEntry: Blogujący Latarnicy >, 'images_list': [], 'like_url': '/common/like/', 'cat': None, 'has_gallery': True, 'newest_articles': [<BlogEntry: Nowy projekt Latarniczy! >, <BlogEntry: Wszystkiego najlepszego w Międzynarodowy Dzień Wolontariusza! >, <BlogEntry: SMWI Architektem Rozwoju 2018>, <BlogEntry: Projekt Latarnicy2020.pl >], 'article': <BlogEntry: Blogujący Latarnicy >, 'likes_count': 2, 'slug': u'blogujacy-latarnicy', u'view': <apps.blog.views.ArticleView object at 0x7f48020fcf50>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f4802131410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f4802107610>, 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f48020fc750>>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f48020fc210>}, {}, {u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('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-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), u'LANGUAGE_BIDI': False, u'LANGUAGE_CODE': 'pl'}, {u'STATIC_URL': '/static/'}, {u'MEDIA_URL': '/media/'}, {u'request': <WSGIRequest path:/blog/article/blogujacy-latarnicy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'iWLMJTxecmEueY2GFraMMEg7nDOS1Oyq', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'latarnicy.pl', 'HTTP_REFERER': 'https://latarnicy.pl/blog/article/blogujacy-latarnicy', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/blog/article/blogujacy-latarnicy/', 'QUERY_STRING': '', 'REMOTE_ADDR': '35.175.236.44', 'REMOTE_PORT': '53522', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/blog/article/blogujacy-latarnicy/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'latarnicy.pl', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'vps711161', 'uwsgi.version': '2.0.15-debian', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f481d8a6660>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f480208bc10>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>}, {u'TIME_ZONE': 'Europe/Warsaw'}, {'PYBB_AVATAR_DIMENSIONS': '80x80', 'PYBB_MARKUP': 'bbcode', 'PYBB_TEMPLATE': 'base.html', 'PYBB_DEFAULT_AVATAR_URL': '/static/pybb/img/default_avatar.jpg', 'PYBB_DEFAULT_TITLE': 'PYBB Powered Forum', 'PYBB_ATTACHMENT_ENABLE': True, 'PYBB_ENABLE_ANONYMOUS_POST': False}, {'current_domain': u'http://latarnicy.pl', 'DEBUG': True, 'authenticate_form': <apps.profiles.forms.LoginForm object at 0x7f4802128e50>}, {'query_without_page': <QueryDict: {}>}, {'cms_pages': [<Page: Założenia PCRS >, <Page: Kim są Latarnicy?>, <Page: Historia>, <Page: Streszczenia LPD>, <Page: Dla mediów>, <Page: Gmail>]}, {u'calendar_url': '/calendar/events-reports/', u'knowledge_url': '/knowledge-base/', u'blog_url': '/blog/', u'common_url': '/common/fifty-plus/'}, {'block': <Block Node: body_content. Contents: [<Text Node: ' <article class="event"> '>, <Variable Node: article.published_on|date:"d.m.Y">, <Text Node: '</time> <h3> '>, <Variable Node: article.title>, <Text Node: ' </h3> </head'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48020fa1d0>, <Text Node: ' '>, <IfNode>, <Text Node: ' <div class="article'>, <For Node: for object in article.content.main, tail_len: 3>, <Text Node: ' '>, <IfNode>, <Text Node: ' </div> </article> '>, <django.template.defaulttags.URLNode object at 0x7f48021b2d50>, <Text Node: '">« wr??</a> <div '>, <django.contrib.comments.templatetags.comments.CommentCountNode object at 0x7f48021b2790>, <Text Node: ' <h5>Komentarze ('>, <Variable Node: comment_count>, <Text Node: ') </h5> '>, <IfNode>, <Text Node: ' '>, <django.contrib.comments.templatetags.comments.CommentListNode object at 0x7f48021b2250>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2bd0>, <Text Node: ' </div> <!-- /.comme'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2850>, <Text Node: ' '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'object': <GalleryContent: main on Blogujący Latarnicy , ordering 2>}] |
nodelist | [u'\n ', u'<p style="text-align: justify;">Grupa Latarnik\xf3w Polski Cyfrowej, kt\xf3ra 29 maja zgromadzi\u0142a si\u0119 we Wroc\u0142awiu pozna\u0142a fascynuj\u0105cy \u015bwiat blog\xf3w i blogosfery. Warsztaty, kt\xf3re odby\u0142y si\u0119 w biurach Google, mia\u0142y za zadanie pobudzi\u0107 kreatywno\u015b\u0107 pisarsk\u0105 uczestnik\xf3w oraz wskaza\u0107 jedn\u0105 ze \u015bcie\u017cek, kt\xf3r\u0105 mo\u017cna poszerza\u0107 swoje pasje i zainteresowania.</p>\r\n<p style="text-align: justify;">G\u0142\xf3wnym za\u0142o\u017ceniem spotkania by\u0142o zainteresowanie Latarnik\xf3w tematem tworzenia oraz publikowania autorskich tekst\xf3w. Aby swobodnie porusza\u0107 si\u0119 po blogosferze, uczestnicy zaj\u0119\u0107 musieli zapozna\u0107 si\u0119 z podstawami funkcjonowania blogowych serwis\xf3w, a co wi\u0119cej \u2013 sposobami prowadzenia ciekawego i zajmuj\u0105cego czytelnik\xf3w bloga. Warsztaty prowadzi\u0142a Kaja G\u0142omb \u2013 redaktor strony Latarnicy.pl, a po godzinach - <a href="http://ciezki-jak-z-waty.blog.pl/" target="_blank">blogerka.</a></p>\r\n<p style="text-align: justify;">Spotkanie to nie mog\u0142o si\u0119 odby\u0107 bez go\u015bcinno\u015bci Google Polska \u2013 przedsi\u0119biorstwo kt\xf3re od dawna mocno wspiera program PCRS. Latarnicy zaproszeni przez Aleksandr\u0119 Foltyn oraz Julit\u0119 Iskalsk\u0105, mieli niepowtarzaln\u0105 szans\u0119 zapozna\u0107 si\u0119 nie tyko ze struktur\u0105 oraz niezwyk\u0142\u0105 przestrzeni\u0105 wroc\u0142awskiej siedziby firmy, ale tak\u017ce zobaczy\u0107 w akcji samych \u201eGooglers\xf3w\u201d. Miejsce zrobi\u0142o na uczestnikach ogromne wra\u017cenie: \u201e<em>Zamiast zimnych cyborg\xf3w, stali, chromu i szk\u0142a spotka\u0142am ludzi z typowo s\u0142owia\u0144sk\u0105 go\u015bcinno\u015bci\u0105 w otoczeniu zieleni, poduch i smako\u0142yk\xf3w na ka\u017cdym kroku. Kawy, herbaty, soczku? We\u017a kubek i czuj si\u0119 jak u siebie w domu. Miejsce, kt\xf3re wed\u0142ug mnie mia\u0142o by\u0107 steryln\u0105 fabryk\u0105 przysz\u0142o\u015bci pe\u0142n\u0105 bli\u017aniaczych i ponurych miejsc okaza\u0142o si\u0119 przytulnym, przyjaznym, pe\u0142nym inspiracji po\u0142\u0105czeniem domu, placu zabaw i pracy</em>\u201d \u2013 tak miejsce opisa\u0142a Agnieszka Bieniek Wydrzy\u0144ska.</p>\r\n<p style="text-align: justify;">Po spacerze Latarnicy wzi\u0119li si\u0119 do pracy \u2013 swoj\u0105 przygod\u0119 z bogami rozpocz\u0119li od podstaw. Dowiedzieli si\u0119 czym jest blog i jaka jest jego charakterystyka, jak\u0105 mo\u017ce mie\u0107 form\u0119 oraz jakie tematy s\u0105 najcz\u0119\u015bciej poruszane przez polskich bloger\xf3w. Poznali tak\u017ce kilka najbardziej znanych i najch\u0119tniej czytanych autor\xf3w \u2013 zar\xf3wno ostatnich zwyci\u0119zc\xf3w konkursu Blog Roku jak i rankingu Kominka na najbardziej wp\u0142ywowych bloger\xf3w Polski.</p>\r\n<p style="text-align: justify;">Nast\u0119pnym krokiem by\u0142o zapoznanie si\u0119 z najwa\u017cniejszymi platformami pozwalaj\u0105cymi na bezp\u0142atne i \u0142atwe blogowanie. Latarnicy poznali wi\u0119c zalety oraz wady stron takich jak:</p>\r\n<ul style="text-align: justify;">\r\n<li>\r\n<p>Blogger (platforma Google)</p>\r\n</li>\r\n<li>\r\n<p>Blox.pl (platforma Agory)</p>\r\n</li>\r\n<li>\r\n<p>Bloog.pl (platforma Wirtualnej Polski)</p>\r\n</li>\r\n<li>\r\n<p>Wordpress.org</p>\r\n</li>\r\n<li>\r\n<p>Blog.pl (platforma Grupy Onet)</p>\r\n</li>\r\n</ul>\r\n<p style="text-align: justify;">Latarnicy poznali tak\u017ce kilka podstawowych zasad promocji bloga \u2013 w portalach spo\u0142eczno\u015bciowych takich jak Facebook czy Twitter oraz innymi metodami, jak cho\u0107by dodaniem swojej strony do katalogu blog\xf3w czy wsp\xf3\u0142prac\u0105 z innymi blogerami. W prezentacji nie zabrak\u0142o tak\u017ce podstawowych informacji na temat SEO \u2013 czyli procesowi polegaj\u0105cemu na optymalizacji bloga, by by\u0142 jak najlepiej widziany przez wyszukiwarki internetowe.</p>\r\n<p style="text-align: justify;">Przed \u0107wiczeniami praktycznymi Latarnicy zapoznali si\u0119 ze specyfik\u0105 blogowania \u2013 dowiedzieli si\u0119 nie tylko tego jak powinien wygl\u0105da\u0107 blog oraz tre\u015b\u0107 na nim publikowana, ale przede wszystkim tego jak pisa\u0107.</p>\r\n<p style="text-align: justify;">Aby uczuli\u0107 uczestnik\xf3w zaj\u0119\u0107 na kwestie poprawnego oraz urozmaiconego j\u0119zyka, prowadz\u0105ca przygotowa\u0142a list\u0119 kilku trik\xf3w, kt\xf3re maj\u0105 szans\u0119 pom\xf3c niedo\u015bwiadczonym pisarzom w tworzeniu intryguj\u0105cych tre\u015bci. Szczeg\xf3ln\u0105 uwag\u0119 zwr\xf3ci\u0142a na kwesti\u0119 urozmaicania struktury oraz rytmu zda\u0144, a tak\u017ce formy publikowanych artyku\u0142\xf3w: \u201e<em>Najciekawsze blogi to takie, w kt\xf3rych autor bawi si\u0119 stylem, nie pod\u0105\u017ca za najbardziej oczywistymi schematami konstrukcji artyku\u0142u \u2013 je\u015bli marzysz o pisaniu bloga kulinarnego, pomy\u015bl jak go prezentowa\u0107, aby nie by\u0142 nie tylko stron\u0105 z kolejnymi sucho podanymi przepisy, ale wci\u0105ga\u0142 czytelnika w proces gotowania</em>\u201d \u2013 podkre\u015bla\u0142a.</p>\r\n<p style="text-align: justify;">Prezentacja zako\u0144czy\u0142a si\u0119 poradami na temat tego jak obroni\u0107 si\u0119 przed z\u0142o\u015bliwo\u015bci\u0105 Internaut\xf3w oraz najwa\u017cniejszym przes\u0142aniem ca\u0142ych warsztat\xf3w \u2013 pisanie i blogowanie powinno by\u0107 przyjemno\u015bci\u0105, a nie obowi\u0105zkiem. Kiedy si\u0119 nim staje, przestaje dawa\u0107 satysfakcj\u0119 i jest kolejn\u0105 prac\u0105. \u201e<em>Przymus publikowania tre\u015bci raczej przeszkadza ni\u017c pomaga w tw\xf3rczym pisaniu. Je\u015bli wi\u0119c nie macie weny i nie mo\u017cecie si\u0119 skupi\u0107, przesta\u0144cie pisa\u0107. \u017bycz\u0119 tego zar\xf3wno Wam jak i sobie samej</em>\u201d \u2013 skwitowa\u0142a prowadz\u0105ca.\xa0</p>\r\n<p style="text-align: justify;">W drugiej cz\u0119\u015bci warsztat\xf3w Latarnicy skupili si\u0119 na samodzielnej pracy: po pierwsze analizowali dwa artyku\u0142y na ten sam temat i pr\xf3bowali odpowiedzie\u0107 na pytanie, co spowodowa\u0142o, i\u017c pod jednym z nich rozgorza\u0142a pe\u0142na emocji dyskusja, drugi natomiast pozosta\u0142 bez echa. A nast\u0119pnie zmierzyli si\u0119 z w\u0142asnym pisaniem \u2013 wyniki ich pracy zosta\u0142y opublikowane na blogu przygotowanym specjalnie na potrzeby tego wydarzanie: blogujacylatarnicy.blogsport.com. Stworzone przez Latarnik\xf3w teksty wskazuj\u0105, i\u017c w Latarnikach drzemie ogromny potencja\u0142 tw\xf3rczy i gotowi s\u0105 do prowadzenia interesuj\u0105cych oraz poczytnych blog\xf3w.</p>\r\n<p style="text-align: justify;">Warsztaty blogerskie zako\u0144czy\u0142 Marcin Mechla, kt\xf3ry pokaza\u0142 Latarnikom jak mo\u017cna rozbudowa\u0107 bloga i sprawi\u0107, \u017ce b\u0119dzie jeszcze bardziej atrakcyjnym dzi\u0119ki filmom, w\u0142asnym screen castom oraz kilku podstawowym dodatkom, dynamizuj\u0105cym stron\u0119.</p>\r\n<p style="text-align: justify;">Materia\u0142y z warsztat\xf3w dost\u0119pne s\u0105 na stronie. Latarnik\xf3w, kt\xf3rzy marz\u0105 o rozpocz\u0119ciu swojej kariery blogowej zach\u0119camy do zapoznania si\u0119 z nimi \u2013 w razie pyta\u0144, zach\u0119camy do kontaktu z Kaj\u0105 G\u0142omb, kt\xf3ra zadeklarowa\u0142a pomoc wszystkim tym, kt\xf3rzy chcieliby, a nie wiedz\u0105 jak rozpocz\u0105\u0107 blogowanie.</p>\r\n<p>\xa0</p>', u'\n ', u'\n '] |
unpack | False |
/var/www/disk/latarnicy.pl/miasta-w-internecie/venv/lib/python2.7/site-packages/django/template/debug.py
in render
e.django_template_source = node.source
raise
class DebugVariableNode(VariableNode):
def render(self, context):
try:
output = self.filter_expression.resolve(context)...
output = template_localtime(output, use_tz=context.use_tz)
output = localize(output, use_l10n=context.use_l10n)
output = force_text(output)
except UnicodeDecodeError:
return ''
except Exception as e:
Variable | Value |
---|---|
self | <Variable Node: object.render> |
e | AttributeError("'NoneType' object has no attribute 'GET'",) |
context | [{'False': False, 'None': None, 'True': True}, {'liked_by_me': False, 'art': <BlogEntry: Blogujący Latarnicy >, 'images_list': [], 'like_url': '/common/like/', 'cat': None, 'has_gallery': True, 'newest_articles': [<BlogEntry: Nowy projekt Latarniczy! >, <BlogEntry: Wszystkiego najlepszego w Międzynarodowy Dzień Wolontariusza! >, <BlogEntry: SMWI Architektem Rozwoju 2018>, <BlogEntry: Projekt Latarnicy2020.pl >], 'article': <BlogEntry: Blogujący Latarnicy >, 'likes_count': 2, 'slug': u'blogujacy-latarnicy', u'view': <apps.blog.views.ArticleView object at 0x7f48020fcf50>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f4802131410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f4802107610>, 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f48020fc750>>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f48020fc210>}, {}, {u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('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-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), u'LANGUAGE_BIDI': False, u'LANGUAGE_CODE': 'pl'}, {u'STATIC_URL': '/static/'}, {u'MEDIA_URL': '/media/'}, {u'request': <WSGIRequest path:/blog/article/blogujacy-latarnicy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'iWLMJTxecmEueY2GFraMMEg7nDOS1Oyq', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'latarnicy.pl', 'HTTP_REFERER': 'https://latarnicy.pl/blog/article/blogujacy-latarnicy', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/blog/article/blogujacy-latarnicy/', 'QUERY_STRING': '', 'REMOTE_ADDR': '35.175.236.44', 'REMOTE_PORT': '53522', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/blog/article/blogujacy-latarnicy/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'latarnicy.pl', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'vps711161', 'uwsgi.version': '2.0.15-debian', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f481d8a6660>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f480208bc10>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>}, {u'TIME_ZONE': 'Europe/Warsaw'}, {'PYBB_AVATAR_DIMENSIONS': '80x80', 'PYBB_MARKUP': 'bbcode', 'PYBB_TEMPLATE': 'base.html', 'PYBB_DEFAULT_AVATAR_URL': '/static/pybb/img/default_avatar.jpg', 'PYBB_DEFAULT_TITLE': 'PYBB Powered Forum', 'PYBB_ATTACHMENT_ENABLE': True, 'PYBB_ENABLE_ANONYMOUS_POST': False}, {'current_domain': u'http://latarnicy.pl', 'DEBUG': True, 'authenticate_form': <apps.profiles.forms.LoginForm object at 0x7f4802128e50>}, {'query_without_page': <QueryDict: {}>}, {'cms_pages': [<Page: Założenia PCRS >, <Page: Kim są Latarnicy?>, <Page: Historia>, <Page: Streszczenia LPD>, <Page: Dla mediów>, <Page: Gmail>]}, {u'calendar_url': '/calendar/events-reports/', u'knowledge_url': '/knowledge-base/', u'blog_url': '/blog/', u'common_url': '/common/fifty-plus/'}, {'block': <Block Node: body_content. Contents: [<Text Node: ' <article class="event"> '>, <Variable Node: article.published_on|date:"d.m.Y">, <Text Node: '</time> <h3> '>, <Variable Node: article.title>, <Text Node: ' </h3> </head'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48020fa1d0>, <Text Node: ' '>, <IfNode>, <Text Node: ' <div class="article'>, <For Node: for object in article.content.main, tail_len: 3>, <Text Node: ' '>, <IfNode>, <Text Node: ' </div> </article> '>, <django.template.defaulttags.URLNode object at 0x7f48021b2d50>, <Text Node: '">« wr??</a> <div '>, <django.contrib.comments.templatetags.comments.CommentCountNode object at 0x7f48021b2790>, <Text Node: ' <h5>Komentarze ('>, <Variable Node: comment_count>, <Text Node: ') </h5> '>, <IfNode>, <Text Node: ' '>, <django.contrib.comments.templatetags.comments.CommentListNode object at 0x7f48021b2250>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2bd0>, <Text Node: ' </div> <!-- /.comme'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2850>, <Text Node: ' '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'object': <GalleryContent: main on Blogujący Latarnicy , ordering 2>}] |
/var/www/disk/latarnicy.pl/miasta-w-internecie/venv/lib/python2.7/site-packages/django/template/base.py
in resolve
self.filters = filters
self.var = var_obj
def resolve(self, context, ignore_failures=False):
if isinstance(self.var, Variable):
try:
obj = self.var.resolve(context)...
except VariableDoesNotExist:
if ignore_failures:
obj = None
else:
if settings.TEMPLATE_STRING_IF_INVALID:
global invalid_var_format_string
Variable | Value |
---|---|
self | <django.template.base.FilterExpression object at 0x7f48020fc890> |
ignore_failures | False |
context | [{'False': False, 'None': None, 'True': True}, {'liked_by_me': False, 'art': <BlogEntry: Blogujący Latarnicy >, 'images_list': [], 'like_url': '/common/like/', 'cat': None, 'has_gallery': True, 'newest_articles': [<BlogEntry: Nowy projekt Latarniczy! >, <BlogEntry: Wszystkiego najlepszego w Międzynarodowy Dzień Wolontariusza! >, <BlogEntry: SMWI Architektem Rozwoju 2018>, <BlogEntry: Projekt Latarnicy2020.pl >], 'article': <BlogEntry: Blogujący Latarnicy >, 'likes_count': 2, 'slug': u'blogujacy-latarnicy', u'view': <apps.blog.views.ArticleView object at 0x7f48020fcf50>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f4802131410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f4802107610>, 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f48020fc750>>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f48020fc210>}, {}, {u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('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-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), u'LANGUAGE_BIDI': False, u'LANGUAGE_CODE': 'pl'}, {u'STATIC_URL': '/static/'}, {u'MEDIA_URL': '/media/'}, {u'request': <WSGIRequest path:/blog/article/blogujacy-latarnicy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'iWLMJTxecmEueY2GFraMMEg7nDOS1Oyq', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'latarnicy.pl', 'HTTP_REFERER': 'https://latarnicy.pl/blog/article/blogujacy-latarnicy', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/blog/article/blogujacy-latarnicy/', 'QUERY_STRING': '', 'REMOTE_ADDR': '35.175.236.44', 'REMOTE_PORT': '53522', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/blog/article/blogujacy-latarnicy/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'latarnicy.pl', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'vps711161', 'uwsgi.version': '2.0.15-debian', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f481d8a6660>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f480208bc10>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>}, {u'TIME_ZONE': 'Europe/Warsaw'}, {'PYBB_AVATAR_DIMENSIONS': '80x80', 'PYBB_MARKUP': 'bbcode', 'PYBB_TEMPLATE': 'base.html', 'PYBB_DEFAULT_AVATAR_URL': '/static/pybb/img/default_avatar.jpg', 'PYBB_DEFAULT_TITLE': 'PYBB Powered Forum', 'PYBB_ATTACHMENT_ENABLE': True, 'PYBB_ENABLE_ANONYMOUS_POST': False}, {'current_domain': u'http://latarnicy.pl', 'DEBUG': True, 'authenticate_form': <apps.profiles.forms.LoginForm object at 0x7f4802128e50>}, {'query_without_page': <QueryDict: {}>}, {'cms_pages': [<Page: Założenia PCRS >, <Page: Kim są Latarnicy?>, <Page: Historia>, <Page: Streszczenia LPD>, <Page: Dla mediów>, <Page: Gmail>]}, {u'calendar_url': '/calendar/events-reports/', u'knowledge_url': '/knowledge-base/', u'blog_url': '/blog/', u'common_url': '/common/fifty-plus/'}, {'block': <Block Node: body_content. Contents: [<Text Node: ' <article class="event"> '>, <Variable Node: article.published_on|date:"d.m.Y">, <Text Node: '</time> <h3> '>, <Variable Node: article.title>, <Text Node: ' </h3> </head'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48020fa1d0>, <Text Node: ' '>, <IfNode>, <Text Node: ' <div class="article'>, <For Node: for object in article.content.main, tail_len: 3>, <Text Node: ' '>, <IfNode>, <Text Node: ' </div> </article> '>, <django.template.defaulttags.URLNode object at 0x7f48021b2d50>, <Text Node: '">« wr??</a> <div '>, <django.contrib.comments.templatetags.comments.CommentCountNode object at 0x7f48021b2790>, <Text Node: ' <h5>Komentarze ('>, <Variable Node: comment_count>, <Text Node: ') </h5> '>, <IfNode>, <Text Node: ' '>, <django.contrib.comments.templatetags.comments.CommentListNode object at 0x7f48021b2250>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2bd0>, <Text Node: ' </div> <!-- /.comme'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2850>, <Text Node: ' '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'object': <GalleryContent: main on Blogujący Latarnicy , ordering 2>}] |
/var/www/disk/latarnicy.pl/miasta-w-internecie/venv/lib/python2.7/site-packages/django/template/base.py
in resolve
var)
self.lookups = tuple(var.split(VARIABLE_ATTRIBUTE_SEPARATOR))
def resolve(self, context):
"""Resolve this variable against a given context."""
if self.lookups is not None:
# We're dealing with a variable that needs to be resolved
value = self._resolve_lookup(context)...
else:
# We're dealing with a literal, so it's already been "resolved"
value = self.literal
if self.translate:
if self.message_context:
return pgettext_lazy(self.message_context, value)
Variable | Value |
---|---|
self | <Variable: u'object.render'> |
context | [{'False': False, 'None': None, 'True': True}, {'liked_by_me': False, 'art': <BlogEntry: Blogujący Latarnicy >, 'images_list': [], 'like_url': '/common/like/', 'cat': None, 'has_gallery': True, 'newest_articles': [<BlogEntry: Nowy projekt Latarniczy! >, <BlogEntry: Wszystkiego najlepszego w Międzynarodowy Dzień Wolontariusza! >, <BlogEntry: SMWI Architektem Rozwoju 2018>, <BlogEntry: Projekt Latarnicy2020.pl >], 'article': <BlogEntry: Blogujący Latarnicy >, 'likes_count': 2, 'slug': u'blogujacy-latarnicy', u'view': <apps.blog.views.ArticleView object at 0x7f48020fcf50>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f4802131410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f4802107610>, 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f48020fc750>>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f48020fc210>}, {}, {u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('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-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), u'LANGUAGE_BIDI': False, u'LANGUAGE_CODE': 'pl'}, {u'STATIC_URL': '/static/'}, {u'MEDIA_URL': '/media/'}, {u'request': <WSGIRequest path:/blog/article/blogujacy-latarnicy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'iWLMJTxecmEueY2GFraMMEg7nDOS1Oyq', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'latarnicy.pl', 'HTTP_REFERER': 'https://latarnicy.pl/blog/article/blogujacy-latarnicy', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/blog/article/blogujacy-latarnicy/', 'QUERY_STRING': '', 'REMOTE_ADDR': '35.175.236.44', 'REMOTE_PORT': '53522', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/blog/article/blogujacy-latarnicy/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'latarnicy.pl', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'vps711161', 'uwsgi.version': '2.0.15-debian', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f481d8a6660>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f480208bc10>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>}, {u'TIME_ZONE': 'Europe/Warsaw'}, {'PYBB_AVATAR_DIMENSIONS': '80x80', 'PYBB_MARKUP': 'bbcode', 'PYBB_TEMPLATE': 'base.html', 'PYBB_DEFAULT_AVATAR_URL': '/static/pybb/img/default_avatar.jpg', 'PYBB_DEFAULT_TITLE': 'PYBB Powered Forum', 'PYBB_ATTACHMENT_ENABLE': True, 'PYBB_ENABLE_ANONYMOUS_POST': False}, {'current_domain': u'http://latarnicy.pl', 'DEBUG': True, 'authenticate_form': <apps.profiles.forms.LoginForm object at 0x7f4802128e50>}, {'query_without_page': <QueryDict: {}>}, {'cms_pages': [<Page: Założenia PCRS >, <Page: Kim są Latarnicy?>, <Page: Historia>, <Page: Streszczenia LPD>, <Page: Dla mediów>, <Page: Gmail>]}, {u'calendar_url': '/calendar/events-reports/', u'knowledge_url': '/knowledge-base/', u'blog_url': '/blog/', u'common_url': '/common/fifty-plus/'}, {'block': <Block Node: body_content. Contents: [<Text Node: ' <article class="event"> '>, <Variable Node: article.published_on|date:"d.m.Y">, <Text Node: '</time> <h3> '>, <Variable Node: article.title>, <Text Node: ' </h3> </head'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48020fa1d0>, <Text Node: ' '>, <IfNode>, <Text Node: ' <div class="article'>, <For Node: for object in article.content.main, tail_len: 3>, <Text Node: ' '>, <IfNode>, <Text Node: ' </div> </article> '>, <django.template.defaulttags.URLNode object at 0x7f48021b2d50>, <Text Node: '">« wr??</a> <div '>, <django.contrib.comments.templatetags.comments.CommentCountNode object at 0x7f48021b2790>, <Text Node: ' <h5>Komentarze ('>, <Variable Node: comment_count>, <Text Node: ') </h5> '>, <IfNode>, <Text Node: ' '>, <django.contrib.comments.templatetags.comments.CommentListNode object at 0x7f48021b2250>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2bd0>, <Text Node: ' </div> <!-- /.comme'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2850>, <Text Node: ' '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'object': <GalleryContent: main on Blogujący Latarnicy , ordering 2>}] |
/var/www/disk/latarnicy.pl/miasta-w-internecie/venv/lib/python2.7/site-packages/django/template/base.py
in _resolve_lookup
if callable(current):
if getattr(current, 'do_not_call_in_templates', False):
pass
elif getattr(current, 'alters_data', False):
current = settings.TEMPLATE_STRING_IF_INVALID
else:
try: # method call (assuming no args required)
current = current()...
except TypeError: # arguments *were* required
# GOTCHA: This will also catch any TypeError
# raised in the function itself.
current = settings.TEMPLATE_STRING_IF_INVALID # invalid method call
except Exception as e:
if getattr(e, 'silent_variable_failure', False):
Variable | Value |
---|---|
current | <bound method GalleryContent.render of <GalleryContent: main on Blogujący Latarnicy , ordering 2>> |
bit | u'render' |
e | AttributeError("'NoneType' object has no attribute 'GET'",) |
self | <Variable: u'object.render'> |
context | [{'False': False, 'None': None, 'True': True}, {'liked_by_me': False, 'art': <BlogEntry: Blogujący Latarnicy >, 'images_list': [], 'like_url': '/common/like/', 'cat': None, 'has_gallery': True, 'newest_articles': [<BlogEntry: Nowy projekt Latarniczy! >, <BlogEntry: Wszystkiego najlepszego w Międzynarodowy Dzień Wolontariusza! >, <BlogEntry: SMWI Architektem Rozwoju 2018>, <BlogEntry: Projekt Latarnicy2020.pl >], 'article': <BlogEntry: Blogujący Latarnicy >, 'likes_count': 2, 'slug': u'blogujacy-latarnicy', u'view': <apps.blog.views.ArticleView object at 0x7f48020fcf50>}, {u'csrf_token': <django.utils.functional.__proxy__ object at 0x7f4802131410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x7f4802107610>, 'user': <SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at 0x7f48020fc750>>}, {'messages': <django.contrib.messages.storage.fallback.FallbackStorage object at 0x7f48020fc210>}, {}, {u'LANGUAGES': (('af', 'Afrikaans'), ('ar', 'Arabic'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('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-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')), u'LANGUAGE_BIDI': False, u'LANGUAGE_CODE': 'pl'}, {u'STATIC_URL': '/static/'}, {u'MEDIA_URL': '/media/'}, {u'request': <WSGIRequest path:/blog/article/blogujacy-latarnicy/, GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', u'CSRF_COOKIE': u'iWLMJTxecmEueY2GFraMMEg7nDOS1Oyq', 'DOCUMENT_ROOT': '/usr/share/nginx/html', 'HTTPS': 'on', 'HTTP_ACCEPT': '*/*', 'HTTP_HOST': 'latarnicy.pl', 'HTTP_REFERER': 'https://latarnicy.pl/blog/article/blogujacy-latarnicy', 'HTTP_USER_AGENT': 'claudebot', 'PATH_INFO': u'/blog/article/blogujacy-latarnicy/', 'QUERY_STRING': '', 'REMOTE_ADDR': '35.175.236.44', 'REMOTE_PORT': '53522', 'REQUEST_METHOD': 'GET', 'REQUEST_SCHEME': 'https', 'REQUEST_URI': '/blog/article/blogujacy-latarnicy/', u'SCRIPT_NAME': u'', 'SERVER_NAME': 'latarnicy.pl', 'SERVER_PORT': '443', 'SERVER_PROTOCOL': 'HTTP/1.1', 'uwsgi.node': 'vps711161', 'uwsgi.version': '2.0.15-debian', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f481d8a6660>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f480208bc10>, 'wsgi.multiprocess': False, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'https', 'wsgi.version': (1, 0)}>}, {u'TIME_ZONE': 'Europe/Warsaw'}, {'PYBB_AVATAR_DIMENSIONS': '80x80', 'PYBB_MARKUP': 'bbcode', 'PYBB_TEMPLATE': 'base.html', 'PYBB_DEFAULT_AVATAR_URL': '/static/pybb/img/default_avatar.jpg', 'PYBB_DEFAULT_TITLE': 'PYBB Powered Forum', 'PYBB_ATTACHMENT_ENABLE': True, 'PYBB_ENABLE_ANONYMOUS_POST': False}, {'current_domain': u'http://latarnicy.pl', 'DEBUG': True, 'authenticate_form': <apps.profiles.forms.LoginForm object at 0x7f4802128e50>}, {'query_without_page': <QueryDict: {}>}, {'cms_pages': [<Page: Założenia PCRS >, <Page: Kim są Latarnicy?>, <Page: Historia>, <Page: Streszczenia LPD>, <Page: Dla mediów>, <Page: Gmail>]}, {u'calendar_url': '/calendar/events-reports/', u'knowledge_url': '/knowledge-base/', u'blog_url': '/blog/', u'common_url': '/common/fifty-plus/'}, {'block': <Block Node: body_content. Contents: [<Text Node: ' <article class="event"> '>, <Variable Node: article.published_on|date:"d.m.Y">, <Text Node: '</time> <h3> '>, <Variable Node: article.title>, <Text Node: ' </h3> </head'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48020fa1d0>, <Text Node: ' '>, <IfNode>, <Text Node: ' <div class="article'>, <For Node: for object in article.content.main, tail_len: 3>, <Text Node: ' '>, <IfNode>, <Text Node: ' </div> </article> '>, <django.template.defaulttags.URLNode object at 0x7f48021b2d50>, <Text Node: '">« wr??</a> <div '>, <django.contrib.comments.templatetags.comments.CommentCountNode object at 0x7f48021b2790>, <Text Node: ' <h5>Komentarze ('>, <Variable Node: comment_count>, <Text Node: ') </h5> '>, <IfNode>, <Text Node: ' '>, <django.contrib.comments.templatetags.comments.CommentListNode object at 0x7f48021b2250>, <Text Node: ' '>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2bd0>, <Text Node: ' </div> <!-- /.comme'>, <django.template.loader_tags.ConstantIncludeNode object at 0x7f48021b2850>, <Text Node: ' '>]>}, {u'forloop': {u'revcounter0': 0, u'last': True, u'counter': 2, u'parentloop': {}, u'revcounter': 1, u'counter0': 1, u'first': False}, u'object': <GalleryContent: main on Blogujący Latarnicy , ordering 2>}] |
/home/tomek/.local/lib/python2.7/site-packages/gallery/models.py
in render
remaining = []
# check if the type is paginated
if self.has_pagination():
paginator = Paginator(objects, self.spec.paginate_by,
orphans=self.spec.orphans)
try:
page = int(request.GET.get('page', 1))...
except ValueError:
page = 1
try:
current_page = paginator.page(page)
except (EmptyPage, InvalidPage):
current_page = paginator.page(paginator.num_pages)
Variable | Value |
---|---|
paginator | <django.core.paginator.Paginator object at 0x7f48020aac90> |
self | <GalleryContent: main on Blogujący Latarnicy , ordering 2> |
request | None |
objects | [] |
kwargs | {} |
remaining | [] |
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
wsgi.multiprocess | False |
HTTP_REFERER | 'https://latarnicy.pl/blog/article/blogujacy-latarnicy' |
SCRIPT_NAME | u'' |
REQUEST_METHOD | 'GET' |
PATH_INFO | u'/blog/article/blogujacy-latarnicy/' |
SERVER_PROTOCOL | 'HTTP/1.1' |
QUERY_STRING | '' |
CONTENT_LENGTH | '' |
HTTP_USER_AGENT | 'claudebot' |
SERVER_NAME | 'latarnicy.pl' |
REMOTE_ADDR | '35.175.236.44' |
wsgi.url_scheme | 'https' |
SERVER_PORT | '443' |
uwsgi.node | 'vps711161' |
DOCUMENT_ROOT | '/usr/share/nginx/html' |
wsgi.input | <uwsgi._Input object at 0x7f480208bc10> |
HTTP_HOST | 'latarnicy.pl' |
HTTPS | 'on' |
wsgi.multithread | False |
REQUEST_URI | '/blog/article/blogujacy-latarnicy/' |
HTTP_ACCEPT | '*/*' |
wsgi.version | (1, 0) |
wsgi.run_once | False |
wsgi.errors | <open file 'wsgi_errors', mode 'w' at 0x7f481d8a6660> |
REMOTE_PORT | '53522' |
REQUEST_SCHEME | 'https' |
uwsgi.version | '2.0.15-debian' |
CONTENT_TYPE | '' |
wsgi.file_wrapper | '' |
CSRF_COOKIE | u'iWLMJTxecmEueY2GFraMMEg7nDOS1Oyq' |
settings
Setting | Value |
---|---|
COMPRESS_URL | '/static/' |
TESTING | True |
COMPRESS_OUTPUT_DIR | u'CACHE' |
COMPRESS_TEMPLATE_FILTER_CONTEXT | {u'STATIC_URL': '/static/'} |
USE_L10N | True |
THUMBNAIL_PROCESSORS | ('image_cropping.thumbnail_processors.crop_corners', 'easy_thumbnails.processors.colorspace', 'easy_thumbnails.processors.autocrop', 'easy_thumbnails.processors.scale_and_crop', 'easy_thumbnails.processors.filters') |
COMPRESS_DATA_URI_MAX_SIZE | 1024 |
CSRF_COOKIE_SECURE | False |
LANGUAGE_CODE | 'pl' |
ROOT_URLCONF | 'urls' |
MANAGERS | (('Laboratorium EE', 'kontakt@laboratorium.ee'),) |
BROKER_URL | 'redis://localhost:6379/1' |
COMPRESS_CSS_HASHING_METHOD | u'mtime' |
DEFAULT_CHARSET | 'utf-8' |
IGNORABLE_404_URLS | () |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
STATIC_ROOT | './static_collected' |
COMPRESS_CLOSURE_COMPILER_ARGUMENTS | u'' |
USE_THOUSAND_SEPARATOR | False |
RECAPTCHA_PUBLIC_KEY | u'********************' |
COMPRESS_OFFLINE_MANIFEST | u'manifest.json' |
ITCUBE_HOST | 'crm.mwi.pl' |
ALLOWED_HOSTS | ('latarnicy.pl',) |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
RECAPTCHA_PRIVATE_KEY | u'********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
SEND_BROKEN_LINK_EMAILS | False |
JCROP_IMAGE_WIDGET_DIMENSIONS | '940x940' |
STATICFILES_FINDERS | ('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', 'compressor.finders.CompressorFinder') |
SESSION_CACHE_ALIAS | 'default' |
COMPRESS_CSSTIDY_ARGUMENTS | u'--template=highest' |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_NAME | 'sessionid' |
COMPRESS_YUGLIFY_JS_ARGUMENTS | u'--terminal' |
PACKAGE_NAME_GRAPPELLI | 'grappelli_safe' |
ADMIN_FOR | () |
TIME_INPUT_FORMATS | ('%H:%M:%S', '%H:%M:%S.%f', '%H:%M') |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.contrib.gis.db.backends.postgis', 'HOST': '', 'NAME': 'latarnicy-prod', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '', 'TEST_CHARSET': None, 'TEST_COLLATION': None, 'TEST_MIRROR': None, 'TEST_NAME': None, 'TIME_ZONE': 'UTC', 'USER': 'tomek'}} |
COMPRESS_YUI_BINARY | u'java -jar yuicompressor.jar' |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler') |
ITCUBE_PASS | u'********************' |
DEFAULT_CONTENT_TYPE | 'text/html' |
COMPRESS_CSS_COMPRESSOR | u'compressor.css.CssCompressor' |
APPEND_SLASH | True |
FIRST_DAY_OF_WEEK | 0 |
DATABASE_ROUTERS | [] |
YEAR_MONTH_FORMAT | 'F Y' |
COMPRESS_OFFLINE_TIMEOUT | 31536000 |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '127.0.0.1:11211'}} |
SERVER_EMAIL | 'no-reply@latarnicy.pl' |
SESSION_COOKIE_PATH | '/' |
COMPRESS_PARSER | u'compressor.parser.AutoSelectParser' |
COMPRESS_CACHE_BACKEND | u'default' |
MIDDLEWARE_CLASSES | ('django.middleware.gzip.GZipMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.common.CommonMiddleware', 'apps.common.middleware.ProfileCheck', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'apps.common.middleware.CommentAdded', 'devserver.middleware.DevServerMiddleware', 'apps.profiles.middleware.AutoProfileMiddleware') |
USE_I18N | True |
THOUSAND_SEPARATOR | ',' |
SECRET_KEY | u'********************' |
LANGUAGE_COOKIE_NAME | 'django_language' |
PLACEHOLDER_IMAGE | 'placeholders/placeholder.png' |
DEFAULT_INDEX_TABLESPACE | '' |
TRANSACTIONS_MANAGED | False |
LOGGING_CONFIG | 'django.utils.log.dictConfig' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
TEMPLATE_LOADERS | ('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader') |
WSGI_APPLICATION | 'wsgi.application' |
TEMPLATE_DEBUG | True |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
CSRF_COOKIE_NAME | 'csrftoken' |
HAYSTACK_CONNECTIONS | {'default': {'ENGINE': 'haystack.backends.simple_backend.SimpleEngine'}} |
FORCE_SCRIPT_NAME | None |
USE_X_FORWARDED_HOST | False |
COMPRESS_CSSTIDY_BINARY | u'csstidy' |
SESSION_COOKIE_SECURE | False |
COMPRESS_DEBUG_TOGGLE | None |
COMPRESS_VERBOSE | False |
CSRF_COOKIE_DOMAIN | None |
FILE_CHARSET | 'utf-8' |
DEBUG | True |
COMMENTS_APP | 'apps.custom_comments' |
SESSION_FILE_PATH | None |
COMPRESS_JS_FILTERS | [u'compressor.filters.jsmin.JSMinFilter'] |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
INSTALLED_APPS | ('django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.gis', 'django.contrib.comments', 'django.contrib.webdesign', 'haystack', 'feincms', 'feincms.module.page', 'feincms.module.medialibrary', 'gallery', 'elephantblog', 'widget_tweaks', 'djcelery', 'kombu.transport.django', 'compressor', 'south', 'django_extensions', 'pybb', 'pytils', 'sorl.thumbnail', 'pure_pagination', 'captcha', 'mptt', 'easy_thumbnails', 'filer', 'pennyblack', 'pennyblack.module.subscriber', 'apps.knowledge_base', 'apps.common', 'apps.map', 'apps.calendar', 'apps.cms', 'apps.newsletter', 'apps.blog', 'apps.elearning', 'apps.feed', 'apps.profiles', 'apps.polls', 'apps.custom_comments', 'apps.search', 'apps.user_polls', 'pretty_times', 'django_jcrop', 'image_cropping', 'reversetag') |
LANGUAGES_BIDI | ('he', 'ar', 'fa', 'ur') |
COMMENTS_ALLOW_PROFANITIES | False |
COMPRESS_YUI_CSS_ARGUMENTS | u'' |
STATICFILES_DIRS | ('./static/',) |
PREPEND_WWW | False |
SECURE_PROXY_SSL_HEADER | None |
PASSWORD_RESET_TIMEOUT_DAYS | u'********************' |
SESSION_COOKIE_HTTPONLY | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
ISSUE_KEY_SECRET | u'********************' |
MONTH_DAY_FORMAT | 'F j' |
LOGIN_URL | '/profiles/login' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | True |
TIME_FORMAT | 'P' |
GEOIP_PATH | '/mnt/disk/www/latarnicy.pl/miasta-w-internecie/cities_portal/geo_ip_data' |
COMPRESS_STORAGE | u'compressor.storage.CompressorFileStorage' |
FILER_DEBUG | True |
AUTH_USER_MODEL | 'auth.User' |
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') |
COMPRESS_CSS_FILTERS | [u'compressor.filters.css_default.CssAbsoluteFilter'] |
AUTHENTICATION_BACKENDS | ('auth.LoginBackend',) |
EMAIL_HOST_PASSWORD | u'********************' |
COMPRESS_REBUILD_TIMEOUT | 2592000 |
PACKAGE_NAME_FILEBROWSER | 'filebrowser_safe' |
AUTH_PROFILE_MODULE | 'profiles.UserProfile' |
CACHE_MIDDLEWARE_ALIAS | 'default' |
SESSION_SAVE_EVERY_REQUEST | False |
ADMIN_MEDIA_PREFIX | '/static//admin/' |
NUMBER_GROUPING | 0 |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
COMPRESS_YUGLIFY_BINARY | u'yuglify' |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_COOKIE_PATH | '/' |
COMPRESS_CACHE_KEY_FUNCTION | u'********************' |
LOGIN_REDIRECT_URL | '/' |
PROJECT_ROOT | '/mnt/disk/www/latarnicy.pl/miasta-w-internecie/cities_portal' |
DECIMAL_SEPARATOR | '.' |
COMPRESS_PRECOMPILERS | (('text/coffeescript', 'coffee --compile --stdio'), ('text/less', 'lessc --include-path="/mnt/disk/www/latarnicy.pl/miasta-w-internecie/cities_portal/static/less" {infile} {outfile}'), ('text/x-sass', 'sass {infile} {outfile}'), ('text/x-scss', 'sass --scss {infile} {outfile}')) |
COMPRESS_MTIME_DELAY | 10 |
SITE_ID | 1 |
LOCALE_PATHS | () |
TEMPLATE_STRING_IF_INVALID | '' |
LOGOUT_URL | '/accounts/logout/' |
EMAIL_USE_TLS | False |
TEMPLATE_DIRS | ('./templates',) |
FIXTURE_DIRS | () |
EMAIL_HOST | '127.0.0.1' |
ISSUU_KEY | u'********************' |
DATE_FORMAT | 'N j, Y' |
OPTIONAL_APPS | ('debug_toolbar', 'filebrowser_safe', 'grappelli_safe') |
MEDIA_ROOT | './media/' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
ADMINS | (('Laboratorium EE', 'kontakt@laboratorium.ee'),) |
FORMAT_MODULE_PATH | None |
DEFAULT_FROM_EMAIL | 'no-reply@latarnicy.pl' |
COMPRESS_ROOT | '/mnt/disk/www/latarnicy.pl/miasta-w-internecie/cities_portal/static_collected' |
MEDIA_URL | '/media/' |
DATETIME_FORMAT | 'N j, Y, P' |
COMPRESS_YUI_JS_ARGUMENTS | u'' |
COMPRESS_JS_COMPRESSOR | u'compressor.js.JsCompressor' |
DISALLOWED_USER_AGENTS | () |
ALLOWED_INCLUDE_ROOTS | () |
DEFAULT_FILE_THUMBNAIL_VERTICAL | '/static/images/core/default_vertical.png' |
SOUTH_MIGRATION_MODULES | {'easy_thumbnails': 'easy_thumbnails.south_migrations'} |
CELERY_TIMEZONE | 'Europe/Warsaw' |
COMPRESS_MINT_DELAY | 30 |
LOGGING | {'disable_existing_loggers': False, 'handlers': {'console': {'class': 'logging.StreamHandler', 'level': 'DEBUG'}}, 'loggers': {'': {'handlers': ['console'], 'level': 'ERROR', 'propagate': False}}, 'version': 1} |
SHORT_DATE_FORMAT | 'm/d/Y' |
ITCUBE_USER | 'icsolutions' |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
COMPRESS_ENABLED | False |
CACHE_MIDDLEWARE_KEY_PREFIX | u'********************' |
COMPRESS_OFFLINE | False |
TIME_ZONE | 'Europe/Warsaw' |
PYBB_ATTACHMENT_ENABLE | True |
COMPRESS_OFFLINE_CONTEXT | {u'STATIC_URL': '/static/'} |
COMPRESS_YUGLIFY_CSS_ARGUMENTS | u'--terminal' |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
COMPRESS_JINJA2_GET_ENVIRONMENT | None |
POSTGIS_VERSION | (1, 5, 3) |
DEFAULT_TABLESPACE | '' |
TEMPLATE_CONTEXT_PROCESSORS | ('django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.static', 'django.core.context_processors.media', 'django.core.context_processors.request', 'django.core.context_processors.tz', 'pybb.context_processors.processor', 'apps.common.contextProcessors.main', 'apps.common.contextProcessors.query_without_page', 'apps.cms.context_processors.pages', 'feincms.context_processors.add_page_if_missing') |
SESSION_COOKIE_AGE | 1209600 |
SETTINGS_MODULE | 'settings' |
USE_ETAGS | False |
LANGUAGES | (('af', 'Afrikaans'), ('ar', 'Arabic'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('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-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese')) |
HAYSTACK_SIGNAL_PROCESSOR | 'haystack.signals.RealtimeSignalProcessor' |
COMPRESS_CLOSURE_COMPILER_BINARY | u'java -jar compiler.jar' |
FILE_UPLOAD_TEMP_DIR | None |
INTERNAL_IPS | () |
STATIC_URL | '/static/' |
EMAIL_PORT | 25 |
USE_TZ | True |
FEINCMS_RICHTEXT_INIT_CONTEXT | {'TINYMCE_JS_URL': '/static/js/vendor/tiny_mce/tiny_mce.js'} |
CELERY_RESULT_BACKEND | 'database' |
PASSWORD_HASHERS | u'********************' |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
ABSOLUTE_URL_OVERRIDES | {} |
CACHE_MIDDLEWARE_SECONDS | 600 |
DEFAULT_FILE_THUMBNAIL_HORIZONTAL | '/static/images/core/default.png' |
CSRF_COOKIE_HTTPONLY | False |
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') |
EMAIL_HOST_USER | '' |
PROFANITIES_LIST | u'********************' |
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 500 page.