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
The site works but when I try to bake it, it throws an error:
AttributeError: 'WSGIRequest' object has no attribute '_messages'
During handling of the above exception, another exception occurred
django.contrib.messages.api.MessageFailure: You cannot add messages without installing django.contrib.messages.middleware.MessageMiddleware
This happens because in one of my views I add a message
from django.contrib import messages
messages.add_message(request, messages.INFO, "Hello world.")
I have all the required apps installed and it works when running the site normally:
Doesn't bakery support showing messages? The use case is that you want to show messages that are not dynamic (hey, I delivered you this site, but it has these errors and these warnings). Obviously I can do it by storing the messages in a variable and not use the django messages framework. Since they are not dynamic, it isn't much work, but would be nicer to go the django way.
The text was updated successfully, but these errors were encountered:
For anyone finding this later, I wouldn't see how this could work without a server. The Django messages framework either uses sessions for logged in users or cookies. In both cases a server is performing some logic. How would it work for an error message one user sees to be stored in a CDN?
The site works but when I try to bake it, it throws an error:
This happens because in one of my views I add a message
I have all the required apps installed and it works when running the site normally:
Doesn't bakery support showing messages? The use case is that you want to show messages that are not dynamic (hey, I delivered you this site, but it has these errors and these warnings). Obviously I can do it by storing the messages in a variable and not use the django messages framework. Since they are not dynamic, it isn't much work, but would be nicer to go the django way.
The text was updated successfully, but these errors were encountered: