[Errno 28] No space left on device
Request Method: | GET |
---|---|
Request URL: | http://wikilegis:8000/wikilegis/bill/2 |
Django Version: | 1.11.5 |
Exception Type: | OSError |
Exception Value: | [Errno 28] No space left on device |
Exception Location: | /usr/lib/python3.6/site-packages/django/core/files/storage.py in _save, line 355 |
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 03:05:15 -0300 |
In template /var/labhacker/wikilegis/wikilegis/core/templates/base.html
, error at line 0
1 | {% load staticfiles compress i18n %} |
---|---|
2 | |
3 | <!DOCTYPE html> |
4 | <html> |
5 | <head> |
6 | <meta charset="utf-8"> |
7 | <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=2.0"> |
8 | |
9 | {% block extrameta %} |
10 | {% endblock %} |
/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 | OSError(28, 'No space left on device') |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7fc074089c18>> |
request | <WSGIRequest: GET '/wikilegis/bill/2'> |
/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 HomeView at 0x7fc073bc49d8> |
callback_args | () |
callback_kwargs | {'bill_id': '2'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7fc07405b2b0>> |
request | <WSGIRequest: GET '/wikilegis/bill/2'> |
resolver | <RegexURLResolver 'wikilegis.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=core.views.HomeView, args=(), kwargs={'bill_id': '2'}, url_name=bill_index, app_names=[], namespaces=[]) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fc074089c18> |
wrapped_callback | <function HomeView at 0x7fc073bc49d8> |
/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 HomeView at 0x7fc073bc49d8> |
callback_args | () |
callback_kwargs | {'bill_id': '2'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7fc07405b2b0>> |
request | <WSGIRequest: GET '/wikilegis/bill/2'> |
resolver | <RegexURLResolver 'wikilegis.urls' (None:None) ^/> |
resolver_match | ResolverMatch(func=core.views.HomeView, args=(), kwargs={'bill_id': '2'}, url_name=bill_index, app_names=[], namespaces=[]) |
response | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fc074089c18> |
wrapped_callback | <function HomeView at 0x7fc073bc49d8> |
/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 | {'bill_id': '2', 'closed_bills': <QuerySet []>, 'closed_private_bills': <QuerySet []>, 'open_bills': <QuerySet [<Bill: Dia Municipal do Colecionador de Camisas de Futebol>, <Bill: premiação diferenciada entre os gêneros>, <Bill: Programa de Incentivo à Prática de Esporte Feminino>, <Bill: Dia do Desapego Consciente>]>, 'open_private_bills': <QuerySet []>, 'prefix_url': '/wikilegis', 'view': <core.views.HomeView object at 0x7fc07395bb00>} |
self | <TemplateResponse status_code=200, "text/html; charset=utf-8"> |
template | <django.template.backends.django.Template object at 0x7fc073231dd8> |
/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}, {}, {}, {'bill_id': '2', 'view': <core.views.HomeView object at 0x7fc07395bb00>, 'open_private_bills': <QuerySet []>, 'closed_private_bills': <QuerySet []>, 'open_bills': <QuerySet [<Bill: Dia Municipal do Colecionador de Camisas de Futebol>, <Bill: premiação diferenciada entre os gêneros>, <Bill: Programa de Incentivo à Prática de Esporte Feminino>, <Bill: Dia do Desapego Consciente>]>, 'closed_bills': <QuerySet []>, 'prefix_url': '/wikilegis'}] |
request | <WSGIRequest: GET '/wikilegis/bill/2'> |
self | <django.template.backends.django.Template object at 0x7fc073231dd8> |
/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}, {}, {}, {'bill_id': '2', 'view': <core.views.HomeView object at 0x7fc07395bb00>, 'open_private_bills': <QuerySet []>, 'closed_private_bills': <QuerySet []>, 'open_bills': <QuerySet [<Bill: Dia Municipal do Colecionador de Camisas de Futebol>, <Bill: premiação diferenciada entre os gêneros>, <Bill: Programa de Incentivo à Prática de Esporte Feminino>, <Bill: Dia do Desapego Consciente>]>, 'closed_bills': <QuerySet []>, 'prefix_url': '/wikilegis'}] |
self | <django.template.base.Template object at 0x7fc073739d30> |
/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}, {}, {}, {'bill_id': '2', 'view': <core.views.HomeView object at 0x7fc07395bb00>, 'open_private_bills': <QuerySet []>, 'closed_private_bills': <QuerySet []>, 'open_bills': <QuerySet [<Bill: Dia Municipal do Colecionador de Camisas de Futebol>, <Bill: premiação diferenciada entre os gêneros>, <Bill: Programa de Incentivo à Prática de Esporte Feminino>, <Bill: Dia do Desapego Consciente>]>, 'closed_bills': <QuerySet []>, 'prefix_url': '/wikilegis'}] |
self | <django.template.base.Template object at 0x7fc073739d30> |
/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}, {}, {}, {'bill_id': '2', 'view': <core.views.HomeView object at 0x7fc07395bb00>, 'open_private_bills': <QuerySet []>, 'closed_private_bills': <QuerySet []>, 'open_bills': <QuerySet [<Bill: Dia Municipal do Colecionador de Camisas de Futebol>, <Bill: premiação diferenciada entre os gêneros>, <Bill: Programa de Incentivo à Prática de Esporte Feminino>, <Bill: Dia do Desapego Consciente>]>, 'closed_bills': <QuerySet []>, 'prefix_url': '/wikilegis'}] |
node | <ExtendsNode: extends "base.html"> |
self | [<ExtendsNode: extends "base.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}, {}, {}, {'bill_id': '2', 'view': <core.views.HomeView object at 0x7fc07395bb00>, 'open_private_bills': <QuerySet []>, 'closed_private_bills': <QuerySet []>, 'open_bills': <QuerySet [<Bill: Dia Municipal do Colecionador de Camisas de Futebol>, <Bill: premiação diferenciada entre os gêneros>, <Bill: Programa de Incentivo à Prática de Esporte Feminino>, <Bill: Dia do Desapego Consciente>]>, 'closed_bills': <QuerySet []>, 'prefix_url': '/wikilegis'}] |
self | <ExtendsNode: extends "base.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 0x7fc0732bd7b8> |
compiled_parent | <django.template.base.Template object at 0x7fc072fae080> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'bill_id': '2', 'view': <core.views.HomeView object at 0x7fc07395bb00>, 'open_private_bills': <QuerySet []>, 'closed_private_bills': <QuerySet []>, 'open_bills': <QuerySet [<Bill: Dia Municipal do Colecionador de Camisas de Futebol>, <Bill: premiação diferenciada entre os gêneros>, <Bill: Programa de Incentivo à Prática de Esporte Feminino>, <Bill: Dia do Desapego Consciente>]>, 'closed_bills': <QuerySet []>, 'prefix_url': '/wikilegis'}] |
node | <ExtendsNode: extends "base.html"> |
self | <ExtendsNode: extends "base.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}, {}, {}, {'bill_id': '2', 'view': <core.views.HomeView object at 0x7fc07395bb00>, 'open_private_bills': <QuerySet []>, 'closed_private_bills': <QuerySet []>, 'open_bills': <QuerySet [<Bill: Dia Municipal do Colecionador de Camisas de Futebol>, <Bill: premiação diferenciada entre os gêneros>, <Bill: Programa de Incentivo à Prática de Esporte Feminino>, <Bill: Dia do Desapego Consciente>]>, 'closed_bills': <QuerySet []>, 'prefix_url': '/wikilegis'}] |
self | <django.template.base.Template object at 0x7fc072fae080> |
/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}, {}, {}, {'bill_id': '2', 'view': <core.views.HomeView object at 0x7fc07395bb00>, 'open_private_bills': <QuerySet []>, 'closed_private_bills': <QuerySet []>, 'open_bills': <QuerySet [<Bill: Dia Municipal do Colecionador de Camisas de Futebol>, <Bill: premiação diferenciada entre os gêneros>, <Bill: Programa de Incentivo à Prática de Esporte Feminino>, <Bill: Dia do Desapego Consciente>]>, 'closed_bills': <QuerySet []>, 'prefix_url': '/wikilegis'}] |
node | <ExtendsNode: extends "base.html"> |
self | [<ExtendsNode: extends "base.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}, {}, {}, {'bill_id': '2', 'view': <core.views.HomeView object at 0x7fc07395bb00>, 'open_private_bills': <QuerySet []>, 'closed_private_bills': <QuerySet []>, 'open_bills': <QuerySet [<Bill: Dia Municipal do Colecionador de Camisas de Futebol>, <Bill: premiação diferenciada entre os gêneros>, <Bill: Programa de Incentivo à Prática de Esporte Feminino>, <Bill: Dia do Desapego Consciente>]>, 'closed_bills': <QuerySet []>, 'prefix_url': '/wikilegis'}] |
self | <ExtendsNode: extends "base.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 0x7fc0732bd7b8> |
blocks | {'content': <Block Node: content. Contents: [<TextNode: '\n '>]>, 'extra_js': <Block Node: extra_js. Contents: []>, 'extra_styles': <Block Node: extra_styles. Contents: []>, 'extrameta': <Block Node: extrameta. Contents: [<TextNode: '\n '>]>, 'javascript': <Block Node: javascript. Contents: [<TextNode: '\n '>, <compressor.templatetags.compress.CompressorNode object at 0x7fc073732fd0>, <TextNode: '\n '>]>, 'styles': <Block Node: styles. Contents: [<TextNode: '\n '>, <compressor.templatetags.compress.CompressorNode object at 0x7fc072faea90>, <TextNode: '\n '>]>, 'title': <Block Node: title. Contents: [<TextNode: 'Wikilegis'>]>} |
compiled_parent | <django.template.base.Template object at 0x7fc072fae588> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'bill_id': '2', 'view': <core.views.HomeView object at 0x7fc07395bb00>, 'open_private_bills': <QuerySet []>, 'closed_private_bills': <QuerySet []>, 'open_bills': <QuerySet [<Bill: Dia Municipal do Colecionador de Camisas de Futebol>, <Bill: premiação diferenciada entre os gêneros>, <Bill: Programa de Incentivo à Prática de Esporte Feminino>, <Bill: Dia do Desapego Consciente>]>, 'closed_bills': <QuerySet []>, 'prefix_url': '/wikilegis'}] |
node | <django.template.defaulttags.LoadNode object at 0x7fc072fea470> |
self | <ExtendsNode: extends "base.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}, {}, {}, {'bill_id': '2', 'view': <core.views.HomeView object at 0x7fc07395bb00>, 'open_private_bills': <QuerySet []>, 'closed_private_bills': <QuerySet []>, 'open_bills': <QuerySet [<Bill: Dia Municipal do Colecionador de Camisas de Futebol>, <Bill: premiação diferenciada entre os gêneros>, <Bill: Programa de Incentivo à Prática de Esporte Feminino>, <Bill: Dia do Desapego Consciente>]>, 'closed_bills': <QuerySet []>, 'prefix_url': '/wikilegis'}] |
self | <django.template.base.Template object at 0x7fc072fae588> |
/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 | '</title>\n ' |
bits | ['', '\n' '\n' '<!DOCTYPE html>\n' '<html>\n' ' <head>\n' ' <meta charset="utf-8">\n' ' <meta name="viewport" content="width=device-width, initial-scale=1.0, ' 'maximum-scale=2.0">\n' '\n' ' ', '\n ', '\n\n <title>', 'Wikilegis', '</title>\n '] |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'bill_id': '2', 'view': <core.views.HomeView object at 0x7fc07395bb00>, 'open_private_bills': <QuerySet []>, 'closed_private_bills': <QuerySet []>, 'open_bills': <QuerySet [<Bill: Dia Municipal do Colecionador de Camisas de Futebol>, <Bill: premiação diferenciada entre os gêneros>, <Bill: Programa de Incentivo à Prática de Esporte Feminino>, <Bill: Dia do Desapego Consciente>]>, 'closed_bills': <QuerySet []>, 'prefix_url': '/wikilegis'}] |
node | <Block Node: styles. Contents: [<TextNode: '\n '>, <compressor.templatetags.compress.CompressorNode object at 0x7fc072faea90>, <TextNode: '\n '>]> |
self | [<django.template.defaulttags.LoadNode object at 0x7fc072fea470>, <TextNode: '\n\n<!DOCTYPE html>\n<html>\n'>, <Block Node: extrameta. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n <title>'>, <Block Node: title. Contents: [<TextNode: 'Wikilegis'>]>, <TextNode: '</title>\n '>, <Block Node: styles. Contents: [<TextNode: '\n '>, <compressor.templatetags.compress.CompressorNode object at 0x7fc072faea90>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: extra_styles. Contents: []>, <TextNode: '\n </head>\n\n <body>\n '>, <Block Node: content. Contents: [<TextNode: '\n '>]>, <TextNode: '\n\n <script>\n var '>, <django.templatetags.i18n.TranslateNode object at 0x7fc072ca94e0>, <TextNode: '",\n emptyCommentTe'>, <django.templatetags.i18n.TranslateNode object at 0x7fc0730f4cf8>, <TextNode: '",\n emptyAmendment'>, <django.templatetags.i18n.TranslateNode object at 0x7fc0732eda90>, <TextNode: '",\n emptyAmendment'>, <django.templatetags.i18n.TranslateNode object at 0x7fc0739494e0>, <TextNode: '",\n sameAsSegmentT'>, <django.templatetags.i18n.TranslateNode object at 0x7fc073a2e630>, <TextNode: '",\n sameAsSegmentT'>, <django.templatetags.i18n.TranslateNode object at 0x7fc073a2e128>, <TextNode: '",\n userNotLoggedI'>, <django.templatetags.i18n.TranslateNode object at 0x7fc073a2ea20>, <TextNode: '",\n userNotLoggedI'>, <django.template.defaulttags.URLNode object at 0x7fc073a2e748>, <TextNode: '\\">'>, <django.templatetags.i18n.TranslateNode object at 0x7fc073a2e240>, <TextNode: '</a> '>, <django.templatetags.i18n.TranslateNode object at 0x7fc072fc8b38>, <TextNode: '",\n };\n var pre'>, <Variable Node: prefix_url|default_if_none:"">, <TextNode: "';\n var segmentsList">, <Block Node: javascript. Contents: [<TextNode: '\n '>, <compressor.templatetags.compress.CompressorNode object at 0x7fc073732fd0>, <TextNode: '\n '>]>, <TextNode: '\n\n '>, <Block Node: extra_js. Contents: []>, <TextNode: '\n </body>\n</html>\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}, {}, {}, {'bill_id': '2', 'view': <core.views.HomeView object at 0x7fc07395bb00>, 'open_private_bills': <QuerySet []>, 'closed_private_bills': <QuerySet []>, 'open_bills': <QuerySet [<Bill: Dia Municipal do Colecionador de Camisas de Futebol>, <Bill: premiação diferenciada entre os gêneros>, <Bill: Programa de Incentivo à Prática de Esporte Feminino>, <Bill: Dia do Desapego Consciente>]>, 'closed_bills': <QuerySet []>, 'prefix_url': '/wikilegis'}] |
self | <Block Node: styles. Contents: [<TextNode: '\n '>, <compressor.templatetags.compress.CompressorNode object at 0x7fc072faea90>, <TextNode: '\n '>]> |
/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: styles. Contents: [<TextNode: '\n '>, <compressor.templatetags.compress.CompressorNode object at 0x7fc072fae6a0>, <TextNode: '\n'>]> |
block_context | <django.template.loader_tags.BlockContext object at 0x7fc0732bd7b8> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'bill_id': '2', 'view': <core.views.HomeView object at 0x7fc07395bb00>, 'open_private_bills': <QuerySet []>, 'closed_private_bills': <QuerySet []>, 'open_bills': <QuerySet [<Bill: Dia Municipal do Colecionador de Camisas de Futebol>, <Bill: premiação diferenciada entre os gêneros>, <Bill: Programa de Incentivo à Prática de Esporte Feminino>, <Bill: Dia do Desapego Consciente>]>, 'closed_bills': <QuerySet []>, 'prefix_url': '/wikilegis'}] |
push | <Block Node: styles. Contents: [<TextNode: '\n '>, <compressor.templatetags.compress.CompressorNode object at 0x7fc072fae6a0>, <TextNode: '\n'>]> |
self | <Block Node: styles. Contents: [<TextNode: '\n '>, <compressor.templatetags.compress.CompressorNode object at 0x7fc072faea90>, <TextNode: '\n '>]> |
/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}, {}, {}, {'bill_id': '2', 'view': <core.views.HomeView object at 0x7fc07395bb00>, 'open_private_bills': <QuerySet []>, 'closed_private_bills': <QuerySet []>, 'open_bills': <QuerySet [<Bill: Dia Municipal do Colecionador de Camisas de Futebol>, <Bill: premiação diferenciada entre os gêneros>, <Bill: Programa de Incentivo à Prática de Esporte Feminino>, <Bill: Dia do Desapego Consciente>]>, 'closed_bills': <QuerySet []>, 'prefix_url': '/wikilegis'}] |
node | <compressor.templatetags.compress.CompressorNode object at 0x7fc072fae6a0> |
self | [<TextNode: '\n '>, <compressor.templatetags.compress.CompressorNode object at 0x7fc072fae6a0>, <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}, {}, {}, {'bill_id': '2', 'view': <core.views.HomeView object at 0x7fc07395bb00>, 'open_private_bills': <QuerySet []>, 'closed_private_bills': <QuerySet []>, 'open_bills': <QuerySet [<Bill: Dia Municipal do Colecionador de Camisas de Futebol>, <Bill: premiação diferenciada entre os gêneros>, <Bill: Programa de Incentivo à Prática de Esporte Feminino>, <Bill: Dia do Desapego Consciente>]>, 'closed_bills': <QuerySet []>, 'prefix_url': '/wikilegis'}] |
self | <compressor.templatetags.compress.CompressorNode object at 0x7fc072fae6a0> |
/usr/lib/python3.6/site-packages/compressor/templatetags/compress.py
in render
def render(self, context, forced=False):
# Check if in debug mode
if self.debug_mode(context):
return self.get_original_content(context)
return self.render_compressed(context, self.kind, self.mode, forced=forced)...
@register.tag
def compress(parser, token):
"""
Compresses linked and inline javascript or CSS into a single cached file.
Variable | Value |
---|---|
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'bill_id': '2', 'view': <core.views.HomeView object at 0x7fc07395bb00>, 'open_private_bills': <QuerySet []>, 'closed_private_bills': <QuerySet []>, 'open_bills': <QuerySet [<Bill: Dia Municipal do Colecionador de Camisas de Futebol>, <Bill: premiação diferenciada entre os gêneros>, <Bill: Programa de Incentivo à Prática de Esporte Feminino>, <Bill: Dia do Desapego Consciente>]>, 'closed_bills': <QuerySet []>, 'prefix_url': '/wikilegis'}] |
forced | False |
self | <compressor.templatetags.compress.CompressorNode object at 0x7fc072fae6a0> |
/usr/lib/python3.6/site-packages/compressor/templatetags/compress.py
in render_compressed
# Check cache
cache_key = None
if settings.COMPRESS_ENABLED and not forced:
cache_key, cache_content = self.render_cached(compressor, kind, mode)
if cache_content is not None:
return cache_content
rendered_output = compressor.output(mode, forced=forced)...
assert isinstance(rendered_output, six.string_types)
if cache_key:
cache_set(cache_key, rendered_output)
return rendered_output
Variable | Value |
---|---|
cache_key | None |
compressor | <compressor.css.CssCompressor object at 0x7fc073739208> |
context | [{'True': True, 'False': False, 'None': None}, {}, {}, {'bill_id': '2', 'view': <core.views.HomeView object at 0x7fc07395bb00>, 'open_private_bills': <QuerySet []>, 'closed_private_bills': <QuerySet []>, 'open_bills': <QuerySet [<Bill: Dia Municipal do Colecionador de Camisas de Futebol>, <Bill: premiação diferenciada entre os gêneros>, <Bill: Programa de Incentivo à Prática de Esporte Feminino>, <Bill: Dia do Desapego Consciente>]>, 'closed_bills': <QuerySet []>, 'prefix_url': '/wikilegis'}] |
forced | False |
kind | 'css' |
mode | 'file' |
self | <compressor.templatetags.compress.CompressorNode object at 0x7fc072fae6a0> |
/usr/lib/python3.6/site-packages/compressor/css.py
in output
kwargs.get('forced', False)):
# Populate self.split_content
self.split_contents()
if hasattr(self, 'media_nodes'):
ret = []
for media, subnode in self.media_nodes:
subnode.extra_context.update({'media': media})
ret.append(subnode.output(*args, **kwargs))...
return ''.join(ret)
return super(CssCompressor, self).output(*args, **kwargs)
Variable | Value |
---|---|
__class__ | <class 'compressor.css.CssCompressor'> |
args | ('file',) |
kwargs | {'forced': False} |
media | None |
ret | [] |
self | <compressor.css.CssCompressor object at 0x7fc073739208> |
subnode | <compressor.css.CssCompressor object at 0x7fc072fae9b0> |
/usr/lib/python3.6/site-packages/compressor/css.py
in output
self.split_contents()
if hasattr(self, 'media_nodes'):
ret = []
for media, subnode in self.media_nodes:
subnode.extra_context.update({'media': media})
ret.append(subnode.output(*args, **kwargs))
return ''.join(ret)
return super(CssCompressor, self).output(*args, **kwargs)...
Variable | Value |
---|---|
__class__ | <class 'compressor.css.CssCompressor'> |
args | ('file',) |
kwargs | {'forced': False} |
self | <compressor.css.CssCompressor object at 0x7fc072fae9b0> |
/usr/lib/python3.6/site-packages/compressor/base.py
in output
def output(self, mode='file', forced=False):
"""
The general output method, override in subclass if you need to do
any custom modification. Calls other mode specific methods or simply
returns the content directly.
"""
output = '\n'.join(self.filter_input(forced))...
if not output:
return ''
if settings.COMPRESS_ENABLED or forced:
filtered_output = self.filter_output(output)
Variable | Value |
---|---|
forced | False |
mode | 'file' |
self | <compressor.css.CssCompressor object at 0x7fc072fae9b0> |
/usr/lib/python3.6/site-packages/compressor/base.py
in filter_input
def filter_input(self, forced=False):
"""
Passes each hunk (file or code) to the 'input' methods
of the compressor filters.
"""
content = []
for hunk in self.hunks(forced):...
content.append(hunk)
return content
def precompile(self, content, kind=None, elem=None, filename=None,
charset=None, **kwargs):
"""
Variable | Value |
---|---|
content | [] |
forced | False |
self | <compressor.css.CssCompressor object at 0x7fc072fae9b0> |
/usr/lib/python3.6/site-packages/compressor/base.py
in hunks
# statements in css files. therefore we run the absolute filter
# on precompiled css files even if compression is disabled.
if CssAbsoluteFilter in self.cached_filters:
value = self.filter(value, [CssAbsoluteFilter], **options)
elif CssRelativeFilter in self.cached_filters:
value = self.filter(value, [CssRelativeFilter], **options)
yield self.handle_output(kind, value, forced=True,
basename=basename)...
else:
yield self.parser.elem_str(elem)
def filter_output(self, content):
"""
Passes the concatenated content to the 'output' methods
Variable | Value |
---|---|
attribs | {'href': '/wikilegis/static/styles/camara_deputados.scss', 'rel': 'stylesheet', 'type': 'text/x-scss'} |
basename | 'styles/camara_deputados.scss' |
charset | 'utf-8' |
elem | {'attrs': [('type', 'text/x-scss'), ('rel', 'stylesheet'), ('href', '/wikilegis/static/styles/camara_deputados.scss')], 'attrs_dict': {'href': '/wikilegis/static/styles/camara_deputados.scss', 'rel': 'stylesheet', 'type': 'text/x-scss'}, 'tag': 'link', 'text': None} |
enabled | False |
forced | False |
kind | 'file' |
options | {'basename': 'styles/camara_deputados.scss', 'charset': 'utf-8', 'elem': {'attrs': [('type', 'text/x-scss'), ('rel', 'stylesheet'), ('href', '/wikilegis/static/styles/camara_deputados.scss')], 'attrs_dict': {'href': '/wikilegis/static/styles/camara_deputados.scss', 'rel': 'stylesheet', 'type': 'text/x-scss'}, 'tag': 'link', 'text': None}, 'filename': '/var/labhacker/wikilegis/wikilegis/public/styles/camara_deputados.scss', 'kind': 'file', 'method': 'input'} |
precompiled | True |
self | <compressor.css.CssCompressor object at 0x7fc072fae9b0> |
value | ('/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css ' '*/\n' '/**\n' ' * 1. Change the default font family in all browsers (opinionated).\n' ' * 2. Correct the line height in all browsers.\n' ' * 3. Prevent adjustments of font size after orientation changes in\n' ' * IE on Windows Phone and in iOS.\n' ' */\n' '/* Document\n' ' ' '========================================================================== ' '*/\n' '@import ' "'https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800';\n" '@import ' 'url(/wikilegis/static/bower_components/fontastic-labhacker/styles.css?837660ffc16a);\n' 'html {\n' ' font-family: sans-serif;\n' ' /* 1 */\n' ' line-height: 1.15;\n' ' /* 2 */\n' ' -ms-text-size-adjust: 100%;\n' ' /* 3 */\n' ' -webkit-text-size-adjust: 100%;\n' ' /* 3 */\n' '}\n' '\n' '/* Sections\n' ' ' '========================================================================== ' '*/\n' '/**\n' ' * Remove the margin in all browsers (opinionated).\n' ' */\n' 'body {\n' ' margin: 0;\n' '}\n' '\n' '/**\n' ' * Add the correct display in IE 9-.\n' ' */\n' 'article,\n' 'aside,\n' 'footer,\n' 'header,\n' 'nav,\n' 'section {\n' ' display: block;\n' '}\n' '\n' '/**\n' ' * Correct the font size and margin on `h1` elements within `section` and\n' ' * `article` contexts in Chrome, Firefox, and Safari.\n' ' */\n' 'h1 {\n' ' font-size: 2em;\n' ' margin: 0.67em 0;\n' '}\n' '\n' '/* Grouping content\n' ' ' '========================================================================== ' '*/\n' '/**\n' ' * Add the correct display in IE 9-.\n' ' * 1. Add the correct display in IE.\n' ' */\n' 'figcaption,\n' 'figure,\n' 'main {\n' ' /* 1 */\n' ' display: block;\n' '}\n' '\n' '/**\n' ' * Add the correct margin in IE 8.\n' ' */\n' 'figure {\n' ' margin: 1em 40px;\n' '}\n' '\n' '/**\n' ' * 1. Add the correct box sizing in Firefox.\n' ' * 2. Show the overflow in Edge and IE.\n' ' */\n' 'hr {\n' ' box-sizing: content-box;\n' ' /* 1 */\n' ' height: 0;\n' ' /* 1 */\n' ' overflow: visible;\n' ' /* 2 */\n' '}\n' '\n' '/**\n' ' * 1. Correct the inheritance and scaling of font size in all browsers.\n' ' * 2. Correct the odd `em` font sizing in all browsers.\n' ' */\n' 'pre {\n' ' font-family: monospace, monospace;\n' ' /* 1 */\n' ' font-size: 1em;\n' ' /* 2 */\n' '}\n' '\n' '/* Text-level semantics\n' ' ' '========================================================================== ' '*/\n' '/**\n' ' * 1. Remove the gray background on active links in IE 10.\n' ' * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.\n' ' */\n' 'a {\n' ' background-color: transparent;\n' ' /* 1 */\n' ' -webkit-text-decoration-skip: objects;\n' ' /* 2 */\n' '}\n' '\n' '/**\n' ' * Remove the outline on focused links when they are also active or hovered\n' ' * in all browsers (opinionated).\n' ' */\n' 'a:active,\n' 'a:hover {\n' ' outline-width: 0;\n' '}\n' '\n' '/**\n' ' * 1. Remove the bottom border in Firefox 39-.\n' ' * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and ' 'Safari.\n' ' */\n' 'abbr[title] {\n' ' border-bottom: none;\n' ' /* 1 */\n' ' text-decoration: underline;\n' ' /* 2 */\n' ' text-decoration: underline dotted;\n' ' /* 2 */\n' '}\n' '\n' '/**\n' ' * Prevent the duplicate application of `bolder` by the next rule in Safari ' '6.\n' ' */\n' 'b,\n' 'strong {\n' ' font-weight: inherit;\n' '}\n' '\n' '/**\n' ' * Add the correct font weight in Chrome, Edge, and Safari.\n' ' */\n' 'b,\n' 'strong {\n' ' font-weight: bolder;\n' '}\n' '\n' '/**\n' ' * 1. Correct the inheritance and scaling of font size in all browsers.\n' ' * 2. Correct the odd `em` font sizing in all browsers.\n' ' */\n' 'code,\n' 'kbd,\n' 'samp {\n' ' font-family: monospace, monospace;\n' ' /* 1 */\n' ' font-size: 1em;\n' ' /* 2 */\n' '}\n' '\n' '/**\n' ' * Add the correct font style in Android 4.3-.\n' ' */\n' 'dfn {\n'... <trimmed 456157 bytes string> |
/usr/lib/python3.6/site-packages/compressor/base.py
in handle_output
return output
def handle_output(self, mode, content, forced, basename=None):
# Then check for the appropriate output method and call it
output_func = getattr(self, "output_%s" % mode, None)
if callable(output_func):
return output_func(mode, content, forced, basename)...
# Total failure, raise a general exception
raise CompressorError(
"Couldn't find output method for mode '%s'" % mode)
def output_file(self, mode, content, forced=False, basename=None):
"""
Variable | Value |
---|---|
basename | 'styles/camara_deputados.scss' |
content | ('/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css ' '*/\n' '/**\n' ' * 1. Change the default font family in all browsers (opinionated).\n' ' * 2. Correct the line height in all browsers.\n' ' * 3. Prevent adjustments of font size after orientation changes in\n' ' * IE on Windows Phone and in iOS.\n' ' */\n' '/* Document\n' ' ' '========================================================================== ' '*/\n' '@import ' "'https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800';\n" '@import ' 'url(/wikilegis/static/bower_components/fontastic-labhacker/styles.css?837660ffc16a);\n' 'html {\n' ' font-family: sans-serif;\n' ' /* 1 */\n' ' line-height: 1.15;\n' ' /* 2 */\n' ' -ms-text-size-adjust: 100%;\n' ' /* 3 */\n' ' -webkit-text-size-adjust: 100%;\n' ' /* 3 */\n' '}\n' '\n' '/* Sections\n' ' ' '========================================================================== ' '*/\n' '/**\n' ' * Remove the margin in all browsers (opinionated).\n' ' */\n' 'body {\n' ' margin: 0;\n' '}\n' '\n' '/**\n' ' * Add the correct display in IE 9-.\n' ' */\n' 'article,\n' 'aside,\n' 'footer,\n' 'header,\n' 'nav,\n' 'section {\n' ' display: block;\n' '}\n' '\n' '/**\n' ' * Correct the font size and margin on `h1` elements within `section` and\n' ' * `article` contexts in Chrome, Firefox, and Safari.\n' ' */\n' 'h1 {\n' ' font-size: 2em;\n' ' margin: 0.67em 0;\n' '}\n' '\n' '/* Grouping content\n' ' ' '========================================================================== ' '*/\n' '/**\n' ' * Add the correct display in IE 9-.\n' ' * 1. Add the correct display in IE.\n' ' */\n' 'figcaption,\n' 'figure,\n' 'main {\n' ' /* 1 */\n' ' display: block;\n' '}\n' '\n' '/**\n' ' * Add the correct margin in IE 8.\n' ' */\n' 'figure {\n' ' margin: 1em 40px;\n' '}\n' '\n' '/**\n' ' * 1. Add the correct box sizing in Firefox.\n' ' * 2. Show the overflow in Edge and IE.\n' ' */\n' 'hr {\n' ' box-sizing: content-box;\n' ' /* 1 */\n' ' height: 0;\n' ' /* 1 */\n' ' overflow: visible;\n' ' /* 2 */\n' '}\n' '\n' '/**\n' ' * 1. Correct the inheritance and scaling of font size in all browsers.\n' ' * 2. Correct the odd `em` font sizing in all browsers.\n' ' */\n' 'pre {\n' ' font-family: monospace, monospace;\n' ' /* 1 */\n' ' font-size: 1em;\n' ' /* 2 */\n' '}\n' '\n' '/* Text-level semantics\n' ' ' '========================================================================== ' '*/\n' '/**\n' ' * 1. Remove the gray background on active links in IE 10.\n' ' * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.\n' ' */\n' 'a {\n' ' background-color: transparent;\n' ' /* 1 */\n' ' -webkit-text-decoration-skip: objects;\n' ' /* 2 */\n' '}\n' '\n' '/**\n' ' * Remove the outline on focused links when they are also active or hovered\n' ' * in all browsers (opinionated).\n' ' */\n' 'a:active,\n' 'a:hover {\n' ' outline-width: 0;\n' '}\n' '\n' '/**\n' ' * 1. Remove the bottom border in Firefox 39-.\n' ' * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and ' 'Safari.\n' ' */\n' 'abbr[title] {\n' ' border-bottom: none;\n' ' /* 1 */\n' ' text-decoration: underline;\n' ' /* 2 */\n' ' text-decoration: underline dotted;\n' ' /* 2 */\n' '}\n' '\n' '/**\n' ' * Prevent the duplicate application of `bolder` by the next rule in Safari ' '6.\n' ' */\n' 'b,\n' 'strong {\n' ' font-weight: inherit;\n' '}\n' '\n' '/**\n' ' * Add the correct font weight in Chrome, Edge, and Safari.\n' ' */\n' 'b,\n' 'strong {\n' ' font-weight: bolder;\n' '}\n' '\n' '/**\n' ' * 1. Correct the inheritance and scaling of font size in all browsers.\n' ' * 2. Correct the odd `em` font sizing in all browsers.\n' ' */\n' 'code,\n' 'kbd,\n' 'samp {\n' ' font-family: monospace, monospace;\n' ' /* 1 */\n' ' font-size: 1em;\n' ' /* 2 */\n' '}\n' '\n' '/**\n' ' * Add the correct font style in Android 4.3-.\n' ' */\n' 'dfn {\n'... <trimmed 456157 bytes string> |
forced | True |
mode | 'file' |
output_func | <bound method Compressor.output_file of <compressor.css.CssCompressor object at 0x7fc072fae9b0>> |
self | <compressor.css.CssCompressor object at 0x7fc072fae9b0> |
/usr/lib/python3.6/site-packages/compressor/base.py
in output_file
def output_file(self, mode, content, forced=False, basename=None):
"""
The output method that saves the content to a file and renders
the appropriate template with the file's URL.
"""
new_filepath = self.get_filepath(content, basename=basename)
if not self.storage.exists(new_filepath) or forced:
self.storage.save(new_filepath, ContentFile(content.encode(self.charset)))...
url = mark_safe(self.storage.url(new_filepath))
return self.render_output(mode, {"url": url})
def output_inline(self, mode, content, forced=False, basename=None):
"""
The output method that directly returns the content for inline
Variable | Value |
---|---|
basename | 'styles/camara_deputados.scss' |
content | ('/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css ' '*/\n' '/**\n' ' * 1. Change the default font family in all browsers (opinionated).\n' ' * 2. Correct the line height in all browsers.\n' ' * 3. Prevent adjustments of font size after orientation changes in\n' ' * IE on Windows Phone and in iOS.\n' ' */\n' '/* Document\n' ' ' '========================================================================== ' '*/\n' '@import ' "'https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800';\n" '@import ' 'url(/wikilegis/static/bower_components/fontastic-labhacker/styles.css?837660ffc16a);\n' 'html {\n' ' font-family: sans-serif;\n' ' /* 1 */\n' ' line-height: 1.15;\n' ' /* 2 */\n' ' -ms-text-size-adjust: 100%;\n' ' /* 3 */\n' ' -webkit-text-size-adjust: 100%;\n' ' /* 3 */\n' '}\n' '\n' '/* Sections\n' ' ' '========================================================================== ' '*/\n' '/**\n' ' * Remove the margin in all browsers (opinionated).\n' ' */\n' 'body {\n' ' margin: 0;\n' '}\n' '\n' '/**\n' ' * Add the correct display in IE 9-.\n' ' */\n' 'article,\n' 'aside,\n' 'footer,\n' 'header,\n' 'nav,\n' 'section {\n' ' display: block;\n' '}\n' '\n' '/**\n' ' * Correct the font size and margin on `h1` elements within `section` and\n' ' * `article` contexts in Chrome, Firefox, and Safari.\n' ' */\n' 'h1 {\n' ' font-size: 2em;\n' ' margin: 0.67em 0;\n' '}\n' '\n' '/* Grouping content\n' ' ' '========================================================================== ' '*/\n' '/**\n' ' * Add the correct display in IE 9-.\n' ' * 1. Add the correct display in IE.\n' ' */\n' 'figcaption,\n' 'figure,\n' 'main {\n' ' /* 1 */\n' ' display: block;\n' '}\n' '\n' '/**\n' ' * Add the correct margin in IE 8.\n' ' */\n' 'figure {\n' ' margin: 1em 40px;\n' '}\n' '\n' '/**\n' ' * 1. Add the correct box sizing in Firefox.\n' ' * 2. Show the overflow in Edge and IE.\n' ' */\n' 'hr {\n' ' box-sizing: content-box;\n' ' /* 1 */\n' ' height: 0;\n' ' /* 1 */\n' ' overflow: visible;\n' ' /* 2 */\n' '}\n' '\n' '/**\n' ' * 1. Correct the inheritance and scaling of font size in all browsers.\n' ' * 2. Correct the odd `em` font sizing in all browsers.\n' ' */\n' 'pre {\n' ' font-family: monospace, monospace;\n' ' /* 1 */\n' ' font-size: 1em;\n' ' /* 2 */\n' '}\n' '\n' '/* Text-level semantics\n' ' ' '========================================================================== ' '*/\n' '/**\n' ' * 1. Remove the gray background on active links in IE 10.\n' ' * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.\n' ' */\n' 'a {\n' ' background-color: transparent;\n' ' /* 1 */\n' ' -webkit-text-decoration-skip: objects;\n' ' /* 2 */\n' '}\n' '\n' '/**\n' ' * Remove the outline on focused links when they are also active or hovered\n' ' * in all browsers (opinionated).\n' ' */\n' 'a:active,\n' 'a:hover {\n' ' outline-width: 0;\n' '}\n' '\n' '/**\n' ' * 1. Remove the bottom border in Firefox 39-.\n' ' * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and ' 'Safari.\n' ' */\n' 'abbr[title] {\n' ' border-bottom: none;\n' ' /* 1 */\n' ' text-decoration: underline;\n' ' /* 2 */\n' ' text-decoration: underline dotted;\n' ' /* 2 */\n' '}\n' '\n' '/**\n' ' * Prevent the duplicate application of `bolder` by the next rule in Safari ' '6.\n' ' */\n' 'b,\n' 'strong {\n' ' font-weight: inherit;\n' '}\n' '\n' '/**\n' ' * Add the correct font weight in Chrome, Edge, and Safari.\n' ' */\n' 'b,\n' 'strong {\n' ' font-weight: bolder;\n' '}\n' '\n' '/**\n' ' * 1. Correct the inheritance and scaling of font size in all browsers.\n' ' * 2. Correct the odd `em` font sizing in all browsers.\n' ' */\n' 'code,\n' 'kbd,\n' 'samp {\n' ' font-family: monospace, monospace;\n' ' /* 1 */\n' ' font-size: 1em;\n' ' /* 2 */\n' '}\n' '\n' '/**\n' ' * Add the correct font style in Android 4.3-.\n' ' */\n' 'dfn {\n'... <trimmed 456157 bytes string> |
forced | True |
mode | 'file' |
new_filepath | 'CACHE/css/camara_deputados.0673d43c05f4.css' |
self | <compressor.css.CssCompressor object at 0x7fc072fae9b0> |
/usr/lib/python3.6/site-packages/django/core/files/storage.py
in save
if name is None:
name = content.name
if not hasattr(content, 'chunks'):
content = File(content, name)
name = self.get_available_name(name, max_length=max_length)
return self._save(name, content)...
# These methods are part of the public API, with default implementations.
def get_valid_name(self, name):
"""
Returns a filename, based on the provided filename, that's suitable for
Variable | Value |
---|---|
content | <ContentFile: Raw content> |
max_length | None |
name | 'CACHE/css/camara_deputados.0673d43c05f4.css' |
self | <compressor.storage.CompressorFileStorage object at 0x7fc0738f5f60> |
/usr/lib/python3.6/site-packages/django/core/files/storage.py
in _save
_file = None
try:
locks.lock(fd, locks.LOCK_EX)
for chunk in content.chunks():
if _file is None:
mode = 'wb' if isinstance(chunk, bytes) else 'wt'
_file = os.fdopen(fd, mode)
_file.write(chunk)...
finally:
locks.unlock(fd)
if _file is not None:
_file.close()
else:
os.close(fd)
Variable | Value |
---|---|
_file | <_io.BufferedWriter name=10> |
chunk | (b'/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */' b'\n/**\n * 1. Change the default font family in all browsers (opinionated).' b'\n * 2. Correct the line height in all browsers.\n * 3. Prevent adjustment' b's of font size after orientation changes in\n * IE on Windows Phone an' b'd in iOS.\n */\n/* Document\n ===========================================' b"=============================== */\n@import 'https://fonts.googleapis.com" b"/css?family=Open+Sans:300,400,600,700,800';\n@import url(/wikilegis/stati" b'c/bower_components/fontastic-labhacker/styles.css?837660ffc16a);\nhtml {\n' b' font-family: sans-serif;\n /* 1 */\n line-height: 1.15;\n /* 2 */\n -m' b's-text-size-adjust: 100%;\n /* 3 */\n -webkit-text-size-adjust: 100%;\n ' b'/* 3 */\n}\n\n/* Sections\n ==============================================' b'============================ */\n/**\n * Remove the margin in all browsers' b' (opinionated).\n */\nbody {\n margin: 0;\n}\n\n/**\n * Add the correct di' b'splay in IE 9-.\n */\narticle,\naside,\nfooter,\nheader,\nnav,\nsection {\n ' b' display: block;\n}\n\n/**\n * Correct the font size and margin on `h1` elem' b'ents within `section` and\n * `article` contexts in Chrome, Firefox, and ' b'Safari.\n */\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Groupin' b'g content\n ===========================================================' b'=============== */\n/**\n * Add the correct display in IE 9-.\n * 1. Add th' b'e correct display in IE.\n */\nfigcaption,\nfigure,\nmain {\n /* 1 */\n ' b'display: block;\n}\n\n/**\n * Add the correct margin in IE 8.\n */\nfigure' b' {\n margin: 1em 40px;\n}\n\n/**\n * 1. Add the correct box sizing in Fi' b'refox.\n * 2. Show the overflow in Edge and IE.\n */\nhr {\n box-sizing: co' b'ntent-box;\n /* 1 */\n height: 0;\n /* 1 */\n overflow: visible;\n /' b'* 2 */\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in ' b'all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n *' b'/\npre {\n font-family: monospace, monospace;\n /* 1 */\n font-size: 1em;' b'\n /* 2 */\n}\n\n/* Text-level semantics\n ===========================' b'=============================================== */\n/**\n * 1. Remove the ' b'gray background on active links in IE 10.\n * 2. Remove gaps in links und' b'erline in iOS 8+ and Safari 8+.\n */\na {\n background-color: transparent;' b'\n /* 1 */\n -webkit-text-decoration-skip: objects;\n /* 2 */\n}\n\n/**' b'\n * Remove the outline on focused links when they are also active or hov' b'ered\n * in all browsers (opinionated).\n */\na:active,\na:hover {\n out' b'line-width: 0;\n}\n\n/**\n * 1. Remove the bottom border in Firefox 39-.' b'\n * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and S' b'afari.\n */\nabbr[title] {\n border-bottom: none;\n /* 1 */\n text-dec' b'oration: underline;\n /* 2 */\n text-decoration: underline dotted;\n /* ' b'2 */\n}\n\n/**\n * Prevent the duplicate application of `bolder` by the next' b' rule in Safari 6.\n */\nb,\nstrong {\n font-weight: inherit;\n}\n\n/**\n *' b' Add the correct font weight in Chrome, Edge, and Safari.\n */\nb,\nstrong ' b'{\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and sc' b'aling of font size in all browsers.\n * 2. Correct the odd `em` font sizi' b'ng in all browsers.\n */\ncode,\nkbd,\nsamp {\n font-family: monospace, ' b'monospace;\n /* 1 */\n font-size: 1em;\n /* 2 */\n}\n\n/**\n * Add the c' b'orrect font style in Android 4.3-.\n */\ndfn {\n font-style: italic;\n}' b'\n\n/**\n * Add the correct background and color in IE 9-.\n */\nmark {\n ' b' background-color: #ff0;\n color: #000;\n}\n\n/**\n * Add the correct fo' b'nt size in all browsers.\n */\nsmall {\n font-size: 80%;\n}\n\n/**\n * Pre' b'vent `sub` and `sup` elements from affecting the line height in\n * all b' b'rowsers.\n */\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n positi' b'on: relative;\n vertical-align: baseline;\n}\n\nsub {\n... <trimmed 72767 bytes string> |
content | <ContentFile: Raw content> |
directory | '/var/labhacker/wikilegis/wikilegis/public/CACHE/css' |
fd | 10 |
flags | 193 |
full_path | '/var/labhacker/wikilegis/wikilegis/public/CACHE/css/camara_deputados.0673d43c05f4.css' |
mode | 'wb' |
name | 'CACHE/css/camara_deputados.0673d43c05f4.css' |
self | <compressor.storage.CompressorFileStorage object at 0x7fc0738f5f60> |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
CONTENT_LENGTH | '0' |
CSRF_COOKIE | '6J9BJ7ctWSoMiyiHz8W4YLQscp9CWcE3WtOu6IWi56cNEY5TMsDxfnab7PMMnHE4' |
CSRF_COOKIE_USED | True |
HTTP_ACCEPT | '*/*' |
HTTP_ACCEPT_ENCODING | 'identity' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'wikilegis:8000' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '44.221.45.48, 10.42.6.8' |
HTTP_X_FORWARDED_HOST | 'edemocracia.novafriburgo.rj.leg.br' |
HTTP_X_FORWARDED_PORT | '443' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_FORWARDED_SCHEME | 'https' |
HTTP_X_REAL_IP | '44.221.45.48' |
HTTP_X_REQUEST_ID | '1880ad5a88ac306458514106ae7683f7' |
HTTP_X_SCHEME | 'https' |
PATH_INFO | '/bill/2' |
QUERY_STRING | '' |
RAW_URI | '/bill/2' |
REMOTE_ADDR | '10.42.87.7' |
REMOTE_PORT | '58254' |
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.87.251', 8000), raddr=('10.42.87.7', 58254)> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7fc07395b400> |
wsgi.file_wrapper | '' |
wsgi.input | <gunicorn.http.body.Body object at 0x7fc0735c6a90> |
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.novafriburgo.rj.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 0x7fc074412e18> |
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': 'novafriburgo-rj-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]" <edemocracia@novafriburgo.rj.leg.br>' |
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.