Why does this Django code use _ in front of \'has favicon\'
_
has_favicon = models.BooleanField(_(\'has favicon\'))
_ is usually a macro/function from gettext, it means the argument is a localized string. this is not limited to Django or Python. in fact gettext is originally a package for C programs, ported to many other languages over the years.