| | 90 | === Pre-configured Message Classes/Levels === |
| | 91 | |
| | 92 | Custom message classes may be easily configured for any type of message that does not fit into the pre-set classes, or where more granularity is needed. Consistency is needed regarding what a given class of message means, because multiple, independent Django apps may be combined to form a single project, and consistency is desired in the display of user feedback. It is recommended that reusable apps do not use custom message classes. |
| | 93 | |
| | 94 | * DEBUG: Development-related messages that will be removed before a production deployment |
| | 95 | * INFO: Informational messages for the user |
| | 96 | * SUCCESS: An action was successful, e.g. "Your profile was updated successfully" |
| | 97 | * WARNING: A failure did not occur but may be imminent |
| | 98 | * ERROR: An action was '''not''' successful or some other failure occurred |
| | 99 | |