Project

General

Profile

Bug #48737

KeyError: 'portal_url'

Added by sentry io 15 days ago. Updated 4 days ago.

Status:
Solution déployée
Priority:
Normal
Category:
-
Target version:
-
Start date:
20 Nov 2020
Due date:
% Done:

0%

Estimated time:
Patch proposed:
Yes
Planning:
No

Description

https://sentry.entrouvert.org/entrouvert/publik/issues/10947/

Resolver404: {'tried': [[<RegexURLPattern home ^$>], [<RegexURLResolver <DecoratedURLPattern list> (None:None) ^sites/>], [<RegexURLResolver <DecoratedURLPattern list> (None:None) ^profile/>], [<RegexURLResolver <DecoratedURLPattern list> (None:None) ^franceconnect/>], [<RegexURLResolver <DecoratedURLPattern list> (None:None) ^visits-tracking/>], [<RegexURLResolver <DecoratedURLPattern list> (None:None) ^theme/>], [<RegexURLResolver <DecoratedURLPattern list> (None:None) ^emails/>], [<RegexURLResolver <DecoratedURLPa...
  File "django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)
  File "django/core/handlers/base.py", line 172, in _get_response
    resolver_match = resolver.resolve(request.path_info)
  File "django/urls/resolvers.py", line 394, in resolve
    raise Resolver404({'tried': tried, 'path': new_path})

KeyError: 'portal_url'
(9 additional frame(s) were not displayed)
...
  File "django/template/loader_tags.py", line 137, in get_parent
    parent = self.parent_name.resolve(context)
  File "django/template/base.py", line 708, in resolve
    obj = self.var.resolve(context)
  File "django/template/base.py", line 849, in resolve
    value = self._resolve_lookup(context)
  File "django/template/base.py", line 911, in _resolve_lookup
    current = current()
  File "hobo/context_processors.py", line 78, in get_template
    self.theme_skeleton_url = context['portal_url'] + '__skeleton__/'

Files

Associated revisions

Revision eec5780a (diff)
Added by Frédéric Péters 8 days ago

misc: serve a minimalistic template if no portal have been deployed (#48737)

History

#1

Updated by Frédéric Péters 15 days ago

  • Project changed from Suivi des traces to Hobo
  • Assignee set to Frédéric Péters

L'accès au favicon d'un hobo qui n'a pas/plus de portail déployé.

#2

Updated by Frédéric Péters 15 days ago

Sur le rendu d'une page 404 que l'utilisateur ne verra de toute façon pas, un gabarit ultra minimal suffit.

#3

Updated by Thomas Noël 14 days ago

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

Updated by Frédéric Péters 8 days ago

  • Status changed from Solution validée to Résolu (à déployer)
commit eec5780a80744829713192a093cdd12351e2aed1
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Fri Nov 20 18:20:26 2020 +0100

    misc: serve a minimalistic template if no portal have been deployed (#48737)
#5

Updated by Frédéric Péters 4 days ago

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

Also available in: Atom PDF