[Django]-Django Messaging Framework not displaying message despite RequestContext

5👍

You seem to use a very strange way to add a message:

messages.error = (request,"Horsey Bollox!")
messages.add_message = (request, messages.ERROR,"Why won't this f***ing thing work?") 

The correct syntax is:

messages.error(request,"Horsey Bollox!")
messages.add_message(request, messages.ERROR,"Why won't this f***ing thing work?") 

The settings and templates are however fine.

👤Tisho

Leave a comment