'NoneType' object has no attribute 'name'
Request Method: | GET |
---|---|
Request URL: | http://wikilegis:8000/wikilegis/bill/33/report/ |
Django Version: | 1.11.5 |
Exception Type: | AttributeError |
Exception Value: | 'NoneType' object has no attribute 'name' |
Exception Location: | /var/labhacker/wikilegis/wikilegis/plugins/camara_deputados/templatetags/camara_deputados_utils.py in segment_numbering, line 50 |
Python Executable: | /usr/bin/python3.6 |
Python Version: | 3.6.1 |
Python Path: | ['/var/labhacker/wikilegis/wikilegis', '/usr/bin', '/usr/lib/python36.zip', '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload', '/usr/lib/python3.6/site-packages'] |
Server time: | Sex, 29 Mar 2024 05:40:27 -0300 |
In template /var/labhacker/wikilegis/wikilegis/core/templates/report/bill_report.html
, error at line 9
1 | {% load staticfiles compress wikilegis_votes %} |
---|---|
2 | <!DOCTYPE html> |
3 | <html> |
4 | <head> |
5 | <title>Relatório - {{ object.title }}</title> |
6 | <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,600,700' rel='stylesheet' type='text/css'> |
7 | <link href='https://fonts.googleapis.com/icon?family=Material+Icons' rel='stylesheet'> |
8 | {% compress css %} |
9 | <link type="text/x-scss" rel="stylesheet" href="{% static "styles/bill_report.scss" %}" media="screen, print" /> |
10 | {% endcompress %} |
11 | </head> |
12 | <body> |
13 | <div class="bill-report-container"> |
14 | <div class="header"> |
15 | <img class="logo" src="{% static "images/logo.svg" %}" alt="Wikilegis" /> |
16 | <div class="title"> |
17 | <h2 class="bill-title">{{ object.title }}</h2> |
18 | <p class="emission-date">Relatório emitido em {% now 'F, Y' %}</p> |
19 | </div> |
/usr/lib/python3.6/site-packages/django/core/handlers/exception.py
in inner
This decorator is automatically applied to all middleware to ensure that
no middleware leaks an exception and that the next middleware in the stack
can rely on getting a response instead of an exception.
"""
@wraps(get_response, assigned=available_attrs(get_response))
def inner(request):
try:
response = get_response(request)...
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | AttributeError("'NoneType' object has no attribute 'name'",) |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7fd6961fdeb8>> |
request | <WSGIRequest: GET '/wikilegis/bill/33/report/'> |
/usr/lib/python3.6/site-packages/django/core/handlers/base.py
in _get_response
"HttpResponse object. It returned None instead."
% (middleware_method.__self__.__class__.__name__)
)
try:
response = response.render()
except Exception as e:
response = self.process_exception_by_middleware(e, request)...
return response
def process_exception_by_middleware(self, exception, request):
"""
Pass the exception to the exception middleware. If no middleware
Variable | Value |
---|---|
callback | <function BillReportView at 0x7fd695d47048> |
callback_args | () |
callback_kwargs | {'pk': '33'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7fd6961cd550>> |
request | <WSGIRequest: GET '/wikilegis/bill/33/report/'> |
resolver | <RegexURLResolver 'wikilegis.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=core.views.BillReportView, args=(), kwargs={'pk': '33'}, url_name=bill_report, app_names=[], namespaces=[]) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fd6961fdeb8> |
wrapped_callback | <function BillReportView at 0x7fd695d47048> |
/usr/lib/python3.6/site-packages/django/core/handlers/base.py
in _get_response
raise ValueError(
"%s.process_template_response didn't return an "
"HttpResponse object. It returned None instead."
% (middleware_method.__self__.__class__.__name__)
)
try:
response = response.render()...
except Exception as e:
response = self.process_exception_by_middleware(e, request)
return response
def process_exception_by_middleware(self, exception, request):
Variable | Value |
---|---|
callback | <function BillReportView at 0x7fd695d47048> |
callback_args | () |
callback_kwargs | {'pk': '33'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7fd6961cd550>> |
request | <WSGIRequest: GET '/wikilegis/bill/33/report/'> |
resolver | <RegexURLResolver 'wikilegis.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=core.views.BillReportView, args=(), kwargs={'pk': '33'}, url_name=bill_report, app_names=[], namespaces=[]) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fd6961fdeb8> |
wrapped_callback | <function BillReportView at 0x7fd695d47048> |
/usr/lib/python3.6/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 |
---|---|
retval | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
/usr/lib/python3.6/site-packages/django/template/response.py
in rendered_content
This *does not* set the final content of the response. To set the
response content, you must either call render(), or set the
content explicitly using the value of this property.
"""
template = self.resolve_template(self.template_name)
context = self.resolve_context(self.context_data)
content = template.render(context, self._request)...
return content
def add_post_render_callback(self, callback):
"""Adds a new post-rendering callback.
If the response has already been rendered,
Variable | Value |
---|---|
context | {'attendees': 2, 'bill': <Bill: Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos Sólidos Orgânicos no DF>, 'comments': 0, 'domain': 'edemocracia.cl.df.leg.br/wikilegis', 'object': <Bill: Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos Sólidos Orgânicos no DF>, 'segments_with_participation': <QuerySet [<BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: inciso 1>, <BillSegment: inciso 2>, <BillSegment: inciso 3>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, '...(remaining elements truncated)...']>, 'view': <core.views.BillReportView object at 0x7fd695a1d5c0>, 'votes': 21} |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
template | <django.template.backends.django.Template object at 0x7fd695709f60> |
/usr/lib/python3.6/site-packages/django/template/backends/django.py
in render
@property
def origin(self):
return self.template.origin
def render(self, context=None, request=None):
context = make_context(context, request, autoescape=self.backend.engine.autoescape)
try:
return self.template.render(context)...
except TemplateDoesNotExist as exc:
reraise(exc, self.backend)
def copy_exception(exc, backend=None):
"""
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Bill: Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos Sólidos Orgânicos no DF>, 'bill': <Bill: Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos Sólidos Orgânicos no DF>, 'view': <core.views.BillReportView object at 0x7fd695a1d5c0>, 'domain': 'edemocracia.cl.df.leg.br/wikilegis', 'votes': 21, 'comments': 0, 'attendees': 2, 'segments_with_participation': <QuerySet [<BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: inciso 1>, <BillSegment: inciso 2>, <BillSegment: inciso 3>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, '...(remaining elements truncated)...']>, 'compressed': {'name': None, 'url': '/wikilegis/static/CACHE/css/bill_report.f1edf0018326.css', 'media': 'screen, print'}}] |
request | <WSGIRequest: GET '/wikilegis/bill/33/report/'> |
self | <django.template.backends.django.Template object at 0x7fd695709f60> |
/usr/lib/python3.6/site-packages/django/template/base.py
in render
def render(self, context):
"Display stage -- can be called many times"
with context.render_context.push_state(self):
if context.template is None:
with context.bind_template(self):
context.template_name = self.name
return self._render(context)...
else:
return self._render(context)
def compile_nodelist(self):
"""
Parse and compile the template source into a nodelist. If debug
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Bill: Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos Sólidos Orgânicos no DF>, 'bill': <Bill: Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos Sólidos Orgânicos no DF>, 'view': <core.views.BillReportView object at 0x7fd695a1d5c0>, 'domain': 'edemocracia.cl.df.leg.br/wikilegis', 'votes': 21, 'comments': 0, 'attendees': 2, 'segments_with_participation': <QuerySet [<BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: inciso 1>, <BillSegment: inciso 2>, <BillSegment: inciso 3>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, '...(remaining elements truncated)...']>, 'compressed': {'name': None, 'url': '/wikilegis/static/CACHE/css/bill_report.f1edf0018326.css', 'media': 'screen, print'}}] |
self | <django.template.base.Template object at 0x7fd6957de2b0> |
/usr/lib/python3.6/site-packages/django/test/utils.py
in instrumented_test_render
def instrumented_test_render(self, context):
"""
An instrumented Template render method, providing a signal
that can be intercepted by the test system Client
"""
template_rendered.send(sender=self, template=self, context=context)
return self.nodelist.render(context)...
class _TestState(object):
pass
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Bill: Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos Sólidos Orgânicos no DF>, 'bill': <Bill: Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos Sólidos Orgânicos no DF>, 'view': <core.views.BillReportView object at 0x7fd695a1d5c0>, 'domain': 'edemocracia.cl.df.leg.br/wikilegis', 'votes': 21, 'comments': 0, 'attendees': 2, 'segments_with_participation': <QuerySet [<BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: inciso 1>, <BillSegment: inciso 2>, <BillSegment: inciso 3>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, '...(remaining elements truncated)...']>, 'compressed': {'name': None, 'url': '/wikilegis/static/CACHE/css/bill_report.f1edf0018326.css', 'media': 'screen, print'}}] |
self | <django.template.base.Template object at 0x7fd6957de2b0> |
/usr/lib/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bits | [] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Bill: Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos Sólidos Orgânicos no DF>, 'bill': <Bill: Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos Sólidos Orgânicos no DF>, 'view': <core.views.BillReportView object at 0x7fd695a1d5c0>, 'domain': 'edemocracia.cl.df.leg.br/wikilegis', 'votes': 21, 'comments': 0, 'attendees': 2, 'segments_with_participation': <QuerySet [<BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: inciso 1>, <BillSegment: inciso 2>, <BillSegment: inciso 3>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, '...(remaining elements truncated)...']>, 'compressed': {'name': None, 'url': '/wikilegis/static/CACHE/css/bill_report.f1edf0018326.css', 'media': 'screen, print'}}] |
node | <ExtendsNode: extends "report/bill_report.html"> |
self | [<ExtendsNode: extends "report/bill_report.html">] |
/usr/lib/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Bill: Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos Sólidos Orgânicos no DF>, 'bill': <Bill: Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos Sólidos Orgânicos no DF>, 'view': <core.views.BillReportView object at 0x7fd695a1d5c0>, 'domain': 'edemocracia.cl.df.leg.br/wikilegis', 'votes': 21, 'comments': 0, 'attendees': 2, 'segments_with_participation': <QuerySet [<BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: inciso 1>, <BillSegment: inciso 2>, <BillSegment: inciso 3>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, '...(remaining elements truncated)...']>, 'compressed': {'name': None, 'url': '/wikilegis/static/CACHE/css/bill_report.f1edf0018326.css', 'media': 'screen, print'}}] |
self | <ExtendsNode: extends "report/bill_report.html"> |
/usr/lib/python3.6/site-packages/django/template/loader_tags.py
in render
compiled_parent.nodelist.get_nodes_by_type(BlockNode)}
block_context.add_blocks(blocks)
break
# Call Template._render explicitly so the parser context stays
# the same.
with context.render_context.push_state(compiled_parent, isolated_context=False):
return compiled_parent._render(context)...
class IncludeNode(Node):
context_key = '__include_context'
def __init__(self, template, *args, **kwargs):
Variable | Value |
---|---|
block_context | <django.template.loader_tags.BlockContext object at 0x7fd6957def60> |
blocks | {'segment_align': <Block Node: segment_align. Contents: [<TextNode: '\n <div class="orig'>, <Variable Node: segment.content>, <TextNode: '"> \n '>]>, 'segment_type': <Block Node: segment_type. Contents: []>} |
compiled_parent | <django.template.base.Template object at 0x7fd695a154a8> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Bill: Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos Sólidos Orgânicos no DF>, 'bill': <Bill: Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos Sólidos Orgânicos no DF>, 'view': <core.views.BillReportView object at 0x7fd695a1d5c0>, 'domain': 'edemocracia.cl.df.leg.br/wikilegis', 'votes': 21, 'comments': 0, 'attendees': 2, 'segments_with_participation': <QuerySet [<BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: inciso 1>, <BillSegment: inciso 2>, <BillSegment: inciso 3>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, '...(remaining elements truncated)...']>, 'compressed': {'name': None, 'url': '/wikilegis/static/CACHE/css/bill_report.f1edf0018326.css', 'media': 'screen, print'}}] |
node | <django.template.defaulttags.LoadNode object at 0x7fd6959f6668> |
self | <ExtendsNode: extends "report/bill_report.html"> |
/usr/lib/python3.6/site-packages/django/test/utils.py
in instrumented_test_render
def instrumented_test_render(self, context):
"""
An instrumented Template render method, providing a signal
that can be intercepted by the test system Client
"""
template_rendered.send(sender=self, template=self, context=context)
return self.nodelist.render(context)...
class _TestState(object):
pass
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Bill: Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos Sólidos Orgânicos no DF>, 'bill': <Bill: Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos Sólidos Orgânicos no DF>, 'view': <core.views.BillReportView object at 0x7fd695a1d5c0>, 'domain': 'edemocracia.cl.df.leg.br/wikilegis', 'votes': 21, 'comments': 0, 'attendees': 2, 'segments_with_participation': <QuerySet [<BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: inciso 1>, <BillSegment: inciso 2>, <BillSegment: inciso 3>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, '...(remaining elements truncated)...']>, 'compressed': {'name': None, 'url': '/wikilegis/static/CACHE/css/bill_report.f1edf0018326.css', 'media': 'screen, print'}}] |
self | <django.template.base.Template object at 0x7fd695a154a8> |
/usr/lib/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | ('</span><span class="bill-stats-text">Propostas</span></span>\n' ' </div>\n' ' <div class="segments">\n' ' ') |
bits | ['', '\n<!DOCTYPE html>\n<html>\n <head>\n <title>Relatório - ', 'Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos ' 'Sólidos Orgânicos no DF', '</title>\n' ' <link ' "href='https://fonts.googleapis.com/css?family=Open+Sans:400,600,700' " "rel='stylesheet' type='text/css'>\n" " <link href='https://fonts.googleapis.com/icon?family=Material+Icons' " "rel='stylesheet'>\n" ' ', '<link rel="stylesheet" ' 'href="/wikilegis/static/CACHE/css/bill_report.f1edf0018326.css" ' 'type="text/css" media="screen, print" />', '\n' '</head>\n' '<body>\n' ' <div class="bill-report-container">\n' ' <div class="header">\n' ' <img class="logo" src="', '/wikilegis/static/images/logo.svg', '" alt="Wikilegis" />\n' ' <div class="title">\n' ' <h2 class="bill-title">', 'Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos ' 'Sólidos Orgânicos no DF', '</h2>\n <p class="emission-date">Relatório emitido em ', 'Março, 2024', '</p>\n' ' </div>\n' ' </div>\n' ' <div class="bill-summary">\n' ' <span class="bill-stats"><i ' 'class="material-icons">thumbs_up_down</i><span class="bill-stats-number"> ', '1', ' </span><span class="bill-stats-text">', 'Votos do Projeto', '</span></span>\n' ' <span class="bill-stats"><i ' 'class="material-icons">thumbs_up_down</i><span class="bill-stats-number"> ', '21', ' </span><span class="bill-stats-text">', 'Votos em Dispositivos', '</span></span>\n' ' <span class="bill-stats"><i class="material-icons">forum</i><span ' 'class="bill-stats-number">', '0', ' </span><span class="bill-stats-text">Comentários</span></span>\n' ' <span class="bill-stats"><i class="material-icons">people</i><span ' 'class="bill-stats-number">', '2', '</span><span class="bill-stats-text">Participantes</span></span>\n' ' <span class="bill-stats"><i class="material-icons">note_add</i><span ' 'class="bill-stats-number">', '2', '</span><span class="bill-stats-text">Propostas</span></span>\n' ' </div>\n' ' <div class="segments">\n' ' '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Bill: Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos Sólidos Orgânicos no DF>, 'bill': <Bill: Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos Sólidos Orgânicos no DF>, 'view': <core.views.BillReportView object at 0x7fd695a1d5c0>, 'domain': 'edemocracia.cl.df.leg.br/wikilegis', 'votes': 21, 'comments': 0, 'attendees': 2, 'segments_with_participation': <QuerySet [<BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: inciso 1>, <BillSegment: inciso 2>, <BillSegment: inciso 3>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, '...(remaining elements truncated)...']>, 'compressed': {'name': None, 'url': '/wikilegis/static/CACHE/css/bill_report.f1edf0018326.css', 'media': 'screen, print'}}] |
node | <For Node: for segment in segments_with_participation, tail_len: 32> |
self | [<django.template.defaulttags.LoadNode object at 0x7fd6959f6668>, <TextNode: '\n<!DOCTYPE html>\n<html>\n '>, <Variable Node: object.title>, <TextNode: "</title>\n <link href='">, <compressor.templatetags.compress.CompressorNode object at 0x7fd695a15b38>, <TextNode: '\n</head>\n<body>\n <div cl'>, <django.templatetags.static.StaticNode object at 0x7fd6955f4358>, <TextNode: '" alt="Wikilegis" />\n '>, <Variable Node: object.title>, <TextNode: '</h2>\n <p class="e'>, <django.template.defaulttags.NowNode object at 0x7fd695a12400>, <TextNode: '</p>\n </div>\n </d'>, <Variable Node: object.votes_count>, <TextNode: ' </span><span class="bill'>, <Variable Node: config.BILL_VOTES>, <TextNode: '</span></span>\n <spa'>, <Variable Node: votes>, <TextNode: ' </span><span class="bill'>, <Variable Node: config.SEGMENT_VOTES>, <TextNode: '</span></span>\n <spa'>, <Variable Node: comments>, <TextNode: ' </span><span class="bill'>, <Variable Node: attendees>, <TextNode: '</span><span class="bill-'>, <Variable Node: object.amendments_count>, <TextNode: '</span><span class="bill-'>, <For Node: for segment in segments_with_participation, tail_len: 32>, <TextNode: '\n </div>\n '>, <compressor.templatetags.compress.CompressorNode object at 0x7fd6959c8ac8>, <TextNode: '\n </body>\n </div>\n</h'>] |
/usr/lib/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Bill: Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos Sólidos Orgânicos no DF>, 'bill': <Bill: Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos Sólidos Orgânicos no DF>, 'view': <core.views.BillReportView object at 0x7fd695a1d5c0>, 'domain': 'edemocracia.cl.df.leg.br/wikilegis', 'votes': 21, 'comments': 0, 'attendees': 2, 'segments_with_participation': <QuerySet [<BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: inciso 1>, <BillSegment: inciso 2>, <BillSegment: inciso 3>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, '...(remaining elements truncated)...']>, 'compressed': {'name': None, 'url': '/wikilegis/static/CACHE/css/bill_report.f1edf0018326.css', 'media': 'screen, print'}}] |
self | <For Node: for segment in segments_with_participation, tail_len: 32> |
/usr/lib/python3.6/site-packages/django/template/defaulttags.py
in render
unpacked_vars = dict(zip(self.loopvars, item))
pop_context = True
context.update(unpacked_vars)
else:
context[self.loopvars[0]] = item
for node in self.nodelist_loop:
nodelist.append(node.render_annotated(context))...
if pop_context:
# The loop variables were pushed on to the context so pop them
# off again. This is necessary because the tag lets the length
# of loopvars differ to the length of each set of items and we
# don't want to leave any vars from the previous loop on the
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Bill: Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos Sólidos Orgânicos no DF>, 'bill': <Bill: Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos Sólidos Orgânicos no DF>, 'view': <core.views.BillReportView object at 0x7fd695a1d5c0>, 'domain': 'edemocracia.cl.df.leg.br/wikilegis', 'votes': 21, 'comments': 0, 'attendees': 2, 'segments_with_participation': <QuerySet [<BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: inciso 1>, <BillSegment: inciso 2>, <BillSegment: inciso 3>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, '...(remaining elements truncated)...']>, 'compressed': {'name': None, 'url': '/wikilegis/static/CACHE/css/bill_report.f1edf0018326.css', 'media': 'screen, print'}}] |
i | 0 |
item | <BillSegment: trecho> |
len_values | 21 |
loop_dict | {'counter': 1, 'counter0': 0, 'first': True, 'last': False, 'parentloop': {}, 'revcounter': 21, 'revcounter0': 20} |
node | <Block Node: segment_type. Contents: []> |
nodelist | ['\n ', '\n' ' \n' ' <div class="original " data-raw-content="Dispõe sobre a obrigatoriedade da ' 'Reciclagem de ResÃduos Sólidos Orgânicos no Distrito Federal.">\n', '\n <h3>'] |
num_loopvars | 1 |
parentloop | {} |
pop_context | False |
self | <For Node: for segment in segments_with_participation, tail_len: 32> |
unpack | False |
values | <QuerySet [<BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: inciso 1>, <BillSegment: inciso 2>, <BillSegment: inciso 3>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, '...(remaining elements truncated)...']> |
/usr/lib/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Bill: Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos Sólidos Orgânicos no DF>, 'bill': <Bill: Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos Sólidos Orgânicos no DF>, 'view': <core.views.BillReportView object at 0x7fd695a1d5c0>, 'domain': 'edemocracia.cl.df.leg.br/wikilegis', 'votes': 21, 'comments': 0, 'attendees': 2, 'segments_with_participation': <QuerySet [<BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: inciso 1>, <BillSegment: inciso 2>, <BillSegment: inciso 3>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, '...(remaining elements truncated)...']>, 'compressed': {'name': None, 'url': '/wikilegis/static/CACHE/css/bill_report.f1edf0018326.css', 'media': 'screen, print'}}] |
self | <Block Node: segment_type. Contents: []> |
/usr/lib/python3.6/site-packages/django/template/loader_tags.py
in render
push = block = block_context.pop(self.name)
if block is None:
block = self
# Create new block so we can store context without thread-safety issues.
block = type(self)(block.name, block.nodelist)
block.context = context
context['block'] = block
result = block.nodelist.render(context)...
if push is not None:
block_context.push(self.name, push)
return result
def super(self):
if not hasattr(self, 'context'):
Variable | Value |
---|---|
block | <Block Node: segment_type. Contents: [<TextNode: '\n '>, <django.template.library.SimpleNode object at 0x7fd6956577f0>, <TextNode: '\n'>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7fd6957def60> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Bill: Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos Sólidos Orgânicos no DF>, 'bill': <Bill: Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos Sólidos Orgânicos no DF>, 'view': <core.views.BillReportView object at 0x7fd695a1d5c0>, 'domain': 'edemocracia.cl.df.leg.br/wikilegis', 'votes': 21, 'comments': 0, 'attendees': 2, 'segments_with_participation': <QuerySet [<BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: inciso 1>, <BillSegment: inciso 2>, <BillSegment: inciso 3>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, '...(remaining elements truncated)...']>, 'compressed': {'name': None, 'url': '/wikilegis/static/CACHE/css/bill_report.f1edf0018326.css', 'media': 'screen, print'}}] |
push | <Block Node: segment_type. Contents: [<TextNode: '\n '>, <django.template.library.SimpleNode object at 0x7fd6956577f0>, <TextNode: '\n'>]> |
self | <Block Node: segment_type. Contents: []> |
/usr/lib/python3.6/site-packages/django/template/base.py
in render
# extend_nodelist().
contains_nontext = False
def render(self, context):
bits = []
for node in self:
if isinstance(node, Node):
bit = node.render_annotated(context)...
else:
bit = node
bits.append(force_text(bit))
return mark_safe(''.join(bits))
def get_nodes_by_type(self, nodetype):
Variable | Value |
---|---|
bit | '\n ' |
bits | ['\n '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Bill: Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos Sólidos Orgânicos no DF>, 'bill': <Bill: Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos Sólidos Orgânicos no DF>, 'view': <core.views.BillReportView object at 0x7fd695a1d5c0>, 'domain': 'edemocracia.cl.df.leg.br/wikilegis', 'votes': 21, 'comments': 0, 'attendees': 2, 'segments_with_participation': <QuerySet [<BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: inciso 1>, <BillSegment: inciso 2>, <BillSegment: inciso 3>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, '...(remaining elements truncated)...']>, 'compressed': {'name': None, 'url': '/wikilegis/static/CACHE/css/bill_report.f1edf0018326.css', 'media': 'screen, print'}}] |
node | <django.template.library.SimpleNode object at 0x7fd6956577f0> |
self | [<TextNode: '\n '>, <django.template.library.SimpleNode object at 0x7fd6956577f0>, <TextNode: '\n'>] |
/usr/lib/python3.6/site-packages/django/template/base.py
in render_annotated
"""
Render the node. If debug is True and an exception occurs during
rendering, the exception is annotated with contextual line information
where it occurred in the template. For internal usage this method is
preferred over using the render method directly.
"""
try:
return self.render(context)...
except Exception as e:
if context.template.engine.debug and not hasattr(e, 'template_debug'):
e.template_debug = context.render_context.template.get_exception_info(e, self.token)
raise
def __iter__(self):
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Bill: Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos Sólidos Orgânicos no DF>, 'bill': <Bill: Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos Sólidos Orgânicos no DF>, 'view': <core.views.BillReportView object at 0x7fd695a1d5c0>, 'domain': 'edemocracia.cl.df.leg.br/wikilegis', 'votes': 21, 'comments': 0, 'attendees': 2, 'segments_with_participation': <QuerySet [<BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: inciso 1>, <BillSegment: inciso 2>, <BillSegment: inciso 3>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, '...(remaining elements truncated)...']>, 'compressed': {'name': None, 'url': '/wikilegis/static/CACHE/css/bill_report.f1edf0018326.css', 'media': 'screen, print'}}] |
self | <django.template.library.SimpleNode object at 0x7fd6956577f0> |
/usr/lib/python3.6/site-packages/django/template/library.py
in render
def __init__(self, func, takes_context, args, kwargs, target_var):
super(SimpleNode, self).__init__(func, takes_context, args, kwargs)
self.target_var = target_var
def render(self, context):
resolved_args, resolved_kwargs = self.get_resolved_arguments(context)
output = self.func(*resolved_args, **resolved_kwargs)...
if self.target_var is not None:
context[self.target_var] = output
return ''
if context.autoescape:
output = conditional_escape(output)
return output
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'object': <Bill: Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos Sólidos Orgânicos no DF>, 'bill': <Bill: Projeto de Lei nº 355/2019 - Obrigatoriedade da Reciclagem de ResÃduos Sólidos Orgânicos no DF>, 'view': <core.views.BillReportView object at 0x7fd695a1d5c0>, 'domain': 'edemocracia.cl.df.leg.br/wikilegis', 'votes': 21, 'comments': 0, 'attendees': 2, 'segments_with_participation': <QuerySet [<BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: inciso 1>, <BillSegment: inciso 2>, <BillSegment: inciso 3>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, <BillSegment: trecho>, '...(remaining elements truncated)...']>, 'compressed': {'name': None, 'url': '/wikilegis/static/CACHE/css/bill_report.f1edf0018326.css', 'media': 'screen, print'}}] |
resolved_args | [<BillSegment: trecho>] |
resolved_kwargs | {} |
self | <django.template.library.SimpleNode object at 0x7fd6956577f0> |
/var/labhacker/wikilegis/wikilegis/plugins/camara_deputados/templatetags/camara_deputados_utils.py
in segment_numbering
return "".join([a for a in roman_num(num)])
@register.simple_tag
def segment_numbering(segment):
if segment.number:
type_name = slugify(segment.segment_type.name)...
if type_name == 'artigo':
if segment.number <= 9:
return "Art. %dº " % segment.number
else:
return "Art. %d " % segment.number
elif type_name == 'paragrafo':
Variable | Value |
---|---|
segment | <BillSegment: trecho> |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CONTENT_LENGTH | '0' |
HTTP_ACCEPT | '*/*' |
HTTP_ACCEPT_ENCODING | 'identity' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'wikilegis:8000' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '44.200.175.46, 10.42.6.8' |
HTTP_X_FORWARDED_HOST | 'edemocracia.cl.df.leg.br' |
HTTP_X_FORWARDED_PORT | '443' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_FORWARDED_SCHEME | 'https' |
HTTP_X_REAL_IP | '44.200.175.46' |
HTTP_X_REQUEST_ID | 'b1f973cdb773ad21255cfda84246782e' |
HTTP_X_SCHEME | 'https' |
PATH_INFO | '/bill/33/report/' |
QUERY_STRING | '' |
RAW_URI | '/bill/33/report/' |
REMOTE_ADDR | '10.42.112.81' |
REMOTE_PORT | '41074' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '/wikilegis' |
SERVER_NAME | '0.0.0.0' |
SERVER_PORT | '8000' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SOFTWARE | 'gunicorn/19.9.0' |
gunicorn.socket | <socket.socket fd=9, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('10.42.112.76', 8000), raddr=('10.42.112.81', 41074)> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7fd69562e5f8> |
wsgi.file_wrapper | '' |
wsgi.input | <gunicorn.http.body.Body object at 0x7fd6957fb1d0> |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
wikilegis.settings.wikilegis
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ACCOUNT_ACTIVATION_DAYS | 7 |
ACCOUNT_ACTIVATION_REQUIRED | False |
ADMINS | [] |
ALLOWED_HOSTS | ['edemocracia.cl.df.leg.br', 'wikilegisweb', 'wikilegis', 'localhost', '127.0.0.1'] |
API_KEY | '********************' |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ('accounts.backends.WikilegisAuthBackend',) |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'accounts.User' |
BASE_DIR | '/var/labhacker/wikilegis/wikilegis' |
BOWER_COMPONENTS_ROOT | '/var/labhacker/wikilegis/wikilegis/static' |
BOWER_INSTALLED_APPS | ['normalize.css#5.0.0', 'https://github.com/labhackercd/fontastic-labhacker.git'] |
BOWER_PATH | '/var/labhacker/wikilegis/node_modules/.bin/bower' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
COMPRESS_BROWSERIFY_BIN | '/var/labhacker/wikilegis/node_modules/.bin/browserify' |
COMPRESS_CACHEABLE_PRECOMPILERS | () |
COMPRESS_CACHE_BACKEND | 'default' |
COMPRESS_CACHE_KEY_FUNCTION | '********************' |
COMPRESS_CLEAN_CSS_ARGUMENTS | '' |
COMPRESS_CLEAN_CSS_BINARY | 'cleancss' |
COMPRESS_CLOSURE_COMPILER_ARGUMENTS | '' |
COMPRESS_CLOSURE_COMPILER_BINARY | 'java -jar compiler.jar' |
COMPRESS_CSS_COMPRESSOR | 'compressor.css.CssCompressor' |
COMPRESS_CSS_FILTERS | ['compressor.filters.css_default.CssAbsoluteFilter'] |
COMPRESS_CSS_HASHING_METHOD | 'mtime' |
COMPRESS_DATA_URI_MAX_SIZE | 1024 |
COMPRESS_DEBUG_TOGGLE | None |
COMPRESS_ENABLED | False |
COMPRESS_JINJA2_GET_ENVIRONMENT | <function CompressorConf.JINJA2_GET_ENVIRONMENT at 0x7fd696585e18> |
COMPRESS_JS_COMPRESSOR | 'compressor.js.JsCompressor' |
COMPRESS_JS_FILTERS | ['compressor.filters.jsmin.JSMinFilter'] |
COMPRESS_MINT_DELAY | 30 |
COMPRESS_MTIME_DELAY | 10 |
COMPRESS_NODE_MODULES | '/var/labhacker/wikilegis/node_modules' |
COMPRESS_NODE_SASS_BIN | '/var/labhacker/wikilegis/node_modules/.bin/node-sass' |
COMPRESS_OFFLINE | False |
COMPRESS_OFFLINE_CONTEXT | {'STATIC_URL': '/wikilegis/static/'} |
COMPRESS_OFFLINE_MANIFEST | 'manifest.json' |
COMPRESS_OFFLINE_TIMEOUT | 31536000 |
COMPRESS_OUTPUT_DIR | 'CACHE' |
COMPRESS_PARSER | 'compressor.parser.AutoSelectParser' |
COMPRESS_POSTCSS_BIN | '/var/labhacker/wikilegis/node_modules/.bin/postcss' |
COMPRESS_PRECOMPILERS | [('text/x-scss', 'compressor_toolkit.precompilers.SCSSCompiler'), ('module', 'compressor_toolkit.precompilers.ES6Compiler')] |
COMPRESS_REBUILD_TIMEOUT | 2592000 |
COMPRESS_ROOT | '/var/labhacker/wikilegis/wikilegis/public' |
COMPRESS_SCSS_COMPILER_CMD | ('{node_sass_bin} --source-map true --source-map-embed true ' '--source-map-contents true --output-style expanded {paths} "{infile}" ' '"{outfile}" && {postcss_bin} --use "{node_modules}/autoprefixer" ' '--autoprefixer.browsers "{autoprefixer_browsers}" -r "{outfile}"') |
COMPRESS_STORAGE | 'compressor.storage.CompressorFileStorage' |
COMPRESS_TEMPLATE_FILTER_CONTEXT | {'STATIC_URL': '/wikilegis/static/'} |
COMPRESS_URL | '/wikilegis/static/' |
COMPRESS_URL_PLACEHOLDER | '/__compressor_url_placeholder__/' |
COMPRESS_VERBOSE | False |
COMPRESS_YUGLIFY_BINARY | 'yuglify' |
COMPRESS_YUGLIFY_CSS_ARGUMENTS | '--terminal' |
COMPRESS_YUGLIFY_JS_ARGUMENTS | '--terminal' |
COMPRESS_YUI_BINARY | 'java -jar yuicompressor.jar' |
COMPRESS_YUI_CSS_ARGUMENTS | '' |
COMPRESS_YUI_JS_ARGUMENTS | '' |
CONSTANCE_ADDITIONAL_FIELDS | {'image_field': [<class 'django.forms.fields.ImageField'>, {}]} |
CONSTANCE_BACKEND | 'constance.backends.database.DatabaseBackend' |
CONSTANCE_CONFIG | {'BILL_VOTES': ('Votos do Projeto', 'Descrição dos votos no texto', <class 'str'>), 'CLOSED_TEXT': ('Este projeto está fechado para participação.', 'Texto para exibir quando o texto estiver encerrado.', <class 'str'>), 'COAT_OF_ARMS_IMAGE': ('brasao.png', 'Brasão do texto', 'image_field'), 'DESCRIPTION_P1': ('Analise os projetos de lei e contribua com sugestões de ' 'nova redação a artigos ou parágrafos. Os deputados ' 'relatores das proposições acompanham as participações e ' 'podem adotar a sua ideia!', 'Primeiro parágrafo da descrição na página inicial', <class 'str'>), 'DESCRIPTION_P2': ('Nessa interação, ganha a sociedade, que participa mais ' 'ativamente do processo legislativo, e ganha o Parlamento, ' 'que aprova leis mais aprimoradas e conectadas à s ' 'necessidades dos cidadãos.', 'Segundo parágrafo da descrição na página inicial', <class 'str'>), 'NEWSLETTER_TEXT': ('Assinar este projeto de lei', 'Texto para assinar a newsletter', <class 'str'>), 'SEGMENT_VOTES': ('Votos em Dispositivos', 'Descrição dos votos em segmentos de texto', <class 'str'>), 'SUBTITLE': ('Sua ferramenta de edição legislativa', 'SubtÃtulo da página inicial', <class 'str'>), 'SUGGESTION_TEXT': ('Sugestões de emendas', 'Texto para a quantidade de sugestões', <class 'str'>), 'VOTE_TEXT': ('Você apoia esse projeto de lei?', 'Descrição dos botões para apoiar o texto', <class 'str'>)} |
CONSTANCE_CONFIG_FIELDSETS | {'Página do texto': ('VOTE_TEXT', 'NEWSLETTER_TEXT', 'SUGGESTION_TEXT', 'CLOSED_TEXT', 'COAT_OF_ARMS_IMAGE'), 'Página inicial': ('SUBTITLE', 'DESCRIPTION_P1', 'DESCRIPTION_P2'), 'Relatório': ('BILL_VOTES', 'SEGMENT_VOTES')} |
CONTEXT_PROCESSORS | ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.template.context_processors.media', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'constance.context_processors.config', 'social_django.context_processors.backends', 'social_django.context_processors.login_redirect'] |
CORS_ALLOW_METHODS | ('GET', 'OPTIONS') |
CORS_ORIGIN_ALLOW_ALL | True |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': 'cl-df-postgresql', 'NAME': 'wikilegis', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '5432', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'postgres'}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATETIME_FORMAT | 'N j, Y, P' |
DATETIME_INPUT_FORMATS | ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y'] |
DATE_FORMAT | 'N j, Y' |
DATE_INPUT_FORMATS | ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_CONTENT_TYPE | 'text/html' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | '"Portal e-Democracia[Wikilegis]" <labhinova@gmail.com>' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
DJANGO_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.humanize', 'django.contrib.sites'] |
DJANGO_CONTEXT_PROCESSORS | ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.template.context_processors.media', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages'] |
DJANGO_MIDDLEWARES | ['django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.security.SecurityMiddleware', 'core.middleware.force_default_language_middleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'smtp.interlegis.leg.br' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | '' |
EMAIL_PORT | 25 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | False |
FILE_CHARSET | 'utf-8' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | '/wikilegis' |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
HAYSTACK_CONNECTIONS | {'default': {'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine', 'PATH': '/var/labhacker/wikilegis/wikilegis/whoosh_index'}} |
IGNORABLE_404_URLS | [] |
INCLUDE_REGISTER_URL | False |
INSTALLED_APPS | ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.humanize', 'django.contrib.sites', 'constance', 'constance.backends.database', 'compressor', 'compressor_toolkit', 'debug_toolbar', 'tastypie', 'corsheaders', 'djangobower', 'crispy_forms', 'embed_video', 'plugins.camara_deputados', 'accounts', 'core', 'api', 'notification'] |
INTERNAL_IPS | [] |
LANGUAGES | (('en', 'English'), ('pt-br', 'Brazilian Portuguese'), ('es', 'Spanish')) |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
LANGUAGE_CODE | 'pt-br' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LOCALE_PATHS | ['/var/labhacker/wikilegis/wikilegis/locale'] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/' |
LOGIN_URL | '/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '/var/labhacker/wikilegis/wikilegis/public/media' |
MEDIA_URL | '/wikilegis/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['debug_toolbar.middleware.DebugToolbarMiddleware', 'corsheaders.middleware.CorsMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'django.middleware.security.SecurityMiddleware', 'core.middleware.force_default_language_middleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'accounts.middlewares.WikilegisRemoteUser'] |
MIDDLEWARE_CLASSES | ['django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NODE_MODULES | '/var/labhacker/wikilegis/node_modules' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
PROFILE_EXTRA_PARAMS | {'fields': 'id,name,first_name,last_name,email'} |
REGISTRATION_AUTO_LOGIN | True |
REGISTRATION_EMAIL_SUBJECT_PREFIX | '' |
REGISTRATION_FORM | 'wikilegis.auth2.forms.RegistrationForm' |
ROOT_URLCONF | 'wikilegis.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | False |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'root@localhost' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | 'wikilegis_session' |
SESSION_COOKIE_PATH | '/' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'wikilegis.settings.wikilegis' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
SITE_ID | 1 |
SOCIAL_AUTH_FACEBOOK_KEY | '********************' |
SOCIAL_AUTH_FACEBOOK_SCOPE | ['email'] |
SOCIAL_AUTH_FACEBOOK_SECRET | '********************' |
SOCIAL_AUTH_GOOGLE_OAUTH2_KEY | '********************' |
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET | '********************' |
SOCIAL_AUTH_PIPELINE | ('social_core.pipeline.social_auth.social_details', 'social_core.pipeline.social_auth.social_uid', 'social_core.pipeline.social_auth.auth_allowed', 'social_core.pipeline.social_auth.social_user', 'social_core.pipeline.social_auth.associate_by_email', 'social_core.pipeline.user.create_user', 'social_core.pipeline.social_auth.associate_user', 'social_core.pipeline.social_auth.load_extra_data', 'social_core.pipeline.user.user_details') |
SOCIAL_AUTH_URL_NAMESPACE | 'social' |
SOCIAL_BACKEND_INFO | {'facebook': {'icon': 'img/sa-facebook-icon.png', 'title': 'Facebook'}, 'google-oauth2': {'icon': 'img/sa-google-icon.png', 'title': 'Google'}} |
STATICFILES_DIRS | ['/var/labhacker/wikilegis/node_modules', '/var/labhacker/wikilegis/wikilegis/static'] |
STATICFILES_FINDERS | ['djangobower.finders.BowerFinder', 'compressor.finders.CompressorFinder', 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_IPS | ('127.0.0.1', '::1') |
STATIC_ROOT | '/var/labhacker/wikilegis/wikilegis/public' |
STATIC_URL | '/wikilegis/static/' |
TASTYPIE_DEFAULT_FORMATS | ['json'] |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/var/labhacker/wikilegis/wikilegis/templates'], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.template.context_processors.media', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'constance.context_processors.config', 'social_django.context_processors.backends', 'social_django.context_processors.login_redirect']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THIRD_PARTY | ['debug_toolbar.middleware.DebugToolbarMiddleware', 'corsheaders.middleware.CorsMiddleware'] |
THIRD_PARTY_CONTEXT_PROCESSORS | ['constance.context_processors.config', 'social_django.context_processors.backends', 'social_django.context_processors.login_redirect'] |
THOUSAND_SEPARATOR | ',' |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'America/Sao_Paulo' |
USER_FIELDS | ('email',) |
USE_ETAGS | False |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | True |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WIKILEGIS_APPS | ['plugins.camara_deputados', 'accounts', 'core', 'api', 'notification'] |
WIKILEGIS_CONTEXT_PROCESSORS | [] |
WIKILEGIS_MIDDLEWARES | ['accounts.middlewares.WikilegisRemoteUser'] |
WSGI_APPLICATION | 'wikilegis.wsgi.application' |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
YEAR_MONTH_FORMAT | 'F Y' |
You're seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard page generated by the handler for this status code.