You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In 2.0.6 partner sites have a bug where the site crashes if a request is made without the language part of the path included and settings.DEBUG = False. Changing DEBUG to True solves the issue.
The text was updated successfully, but these errors were encountered:
The gist of this bug is that the CSRF middleware accesses the rendering of the template at a point where the template loading and the urlconf are out of synch so we try to render the RSR base template with the partner sites urlconf. This of course won't work and manifests as errors trying to reverse the {% url %} tags. And this happens in the middleware sequence before the language middleware figures out that we need to redirect to a url with a language prepended to the path. That it works when DEBUG = True is because the rendering of the debugging template circumvents the CSRF rendering problem.
Digging deeper into this we find that the reason we try to render the RSR base template is that the 404 handler uses the same templates for both RSR and partner sites. This is the actual reason for the bug.
In 2.0.6 partner sites have a bug where the site crashes if a request is made without the language part of the path included and settings.DEBUG = False. Changing DEBUG to True solves the issue.
The text was updated successfully, but these errors were encountered: