Home>

If i examine the definition method of the model, you can find the following way of writing, but "What does the (_ (" part mean?

username = models.CharField (_ ('username'), unique = True)

  • Answer # 1

    In

    _ (), username is marked for multilingual support.

    https://docs.python.org/en/3/library/gettext.html