django display message after POST form submit
The django admin uses django.contrib.messages, you use it like this: In your view: And in your templates:
The django admin uses django.contrib.messages, you use it like this: In your view: And in your templates:
Your problem is in this line: Message messageObject = new Message ();This error says that the Message class is not known at compile time. So you need to import the Message class. Something like this: Check this out. http://docs.oracle.com/javase/tutorial/java/package/usepkgs.html
Your problem is in this line: Message messageObject = new Message ();This error says that the Message class is not known at compile time. So you need to import the Message class. Something like this: Check this out. http://docs.oracle.com/javase/tutorial/java/package/usepkgs.html