Project

General

Profile

Bug #30482

crash sur 404

Added by Frédéric Péters 5 months ago. Updated 5 months ago.

Status:
Solution déployée
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
08 Feb 2019
Due date:
% Done:

0%

Patch proposed:
Yes
Planning:
No

Description

Internal Server Error: /favicon.ico

AttributeError at /favicon.ico
'Settings' object has no attribute 'THEME_SKELETON_URL'

Request Method: GET
Request URL: https://.../favicon.ico
Django Version: 1.11.18
Python Executable: /usr/bin/uwsgi-core
Python Version: 2.7.13
Python Path: ['.', '', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat',
'/usr/lib/pymodules/python2.7']
Server time: ven, 8 Fév 2019 12:05:16 +0100
Installed Applications:
''
Installed Middleware:
''

Traceback:

File "/usr/lib/python2.7/dist-packages/django/core/handlers/exception.py" in get_exception_response
  109.             response = callback(request, **dict(param_dict, exception=exception))

File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py" in _wrapped_view
  149.                     response = view_func(request, *args, **kwargs)

File "/usr/lib/python2.7/dist-packages/django/views/defaults.py" in page_not_found
  47.         body = template.render(context, request)

File "/usr/lib/python2.7/dist-packages/django/template/backends/django.py" in render
  66.             return self.template.render(context)

File "/usr/lib/python2.7/dist-packages/django/template/base.py" in render
  207.                     return self._render(context)

File "/usr/lib/python2.7/dist-packages/django/template/base.py" in _render
  199.         return self.nodelist.render(context)

File "/usr/lib/python2.7/dist-packages/django/template/base.py" in render
  990.                 bit = node.render_annotated(context)

File "/usr/lib/python2.7/dist-packages/django/template/base.py" in render_annotated
  957.             return self.render(context)

File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py" in render
  154.         compiled_parent = self.get_parent(context)

File "/usr/lib/python2.7/dist-packages/django/template/loader_tags.py" in get_parent
  137.         parent = self.parent_name.resolve(context)

File "/usr/lib/python2.7/dist-packages/django/template/base.py" in resolve
  708.                 obj = self.var.resolve(context)

File "/usr/lib/python2.7/dist-packages/django/template/base.py" in resolve
  849.             value = self._resolve_lookup(context)

File "/usr/lib/python2.7/dist-packages/django/template/base.py" in _resolve_lookup
  911.                             current = current()

File "/usr/lib/python2.7/dist-packages/hobo/context_processors.py" in get_template
  74.         self.theme_skeleton_url = settings.THEME_SKELETON_URL

File "/usr/lib/python2.7/dist-packages/hobo/multitenant/apps.py" in <lambda>
  134.             conf.LazySettings.__getattr__ = lambda self, name: getattr(self._wrapped, name)

File "/usr/lib/python2.7/dist-packages/hobo/multitenant/settings.py" in __getattr__
  76.         return getattr(self.get_wrapped(), name)

File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py" in __getattr__
  172.         return getattr(self.default_settings, name)

Exception Type: AttributeError at /favicon.ico
Exception Value: 'Settings' object has no attribute 'THEME_SKELETON_URL'

0001-misc-handle-shared-template-used-for-404-for-hobo-it.patch View (1.25 KB) Frédéric Péters, 08 Feb 2019 12:14 PM

Associated revisions

Revision a56d928d (diff)
Added by Frédéric Péters 5 months ago

misc: handle shared template (used for 404) for hobo itself (#30482)

History

#1 Updated by Frédéric Péters 5 months ago

#2 Updated by Christophe Siraut 5 months ago

  • Status changed from Solution proposée to Solution validée

#3 Updated by Frédéric Péters 5 months ago

  • Status changed from Solution validée to Résolu (à déployer)
commit a56d928d9b8c804dad26f7a28f95a63758553678
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Fri Feb 8 12:14:14 2019 +0100

    misc: handle shared template (used for 404) for hobo itself (#30482)

#4 Updated by Frédéric Péters 5 months ago

  • Status changed from Résolu (à déployer) to Solution déployée

Also available in: Atom PDF