The number can be allocated by the application, but should Identifiers shouldįollow the pattern applabel.X001, where X is one of the lettersĬEWID, indicating the message severity ( C for criticals, E forĮrrors and so). The method is used while reporting all messages and its result precedes the The object should be a model,įield, or manager or any other object that defines a _str_() method. An object providing context for the message (for example, the Hint can be omitted, or a value of None can be used. If no hintĬan be provided, or the hint is self-evident from the error message, the hint A single-line string providing a hint for fixing the problem. msg A short (less than 80 characters) string describing the problem. Reported to the console, but can be silenced. Messages with level lower than ERROR (i.e. If the level is greater orĮqual to ERROR, then Django will prevent management commands fromĮxecuting. Unique identifier that is used for filtering purposes.Ĭonstructor arguments are: level The severity of the message. It also provides context and hints applicable to the message, and a An instance encapsulates a single reportable error or The warnings and errors raised by system checks must be instances ofĬheckMessage. CheckMessage ¶ class CheckMessage( level, msg, hint = None, obj = None, id = None) ¶
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |