Web/Django
장고에서 '_'(underbar) 뜻
SweetDev
2019. 7. 31. 19:29
_ 가 뭔지 몰라서 runserver가 안되서 한참 찾았는뎀...
"from django.utils.translation import ugettext_lazy as _" 가 빠진거였다고 한다 ㅂㄷㅂㄷ
ugettext_lazy는 뭘까
"_ in Django is a convention that is used for localizing texts. It is an alias for ugettext_lazy. Read Lazy translation in the docs for more info about it."
아 뭔가 text localizing이랑 관련이 있는 듯??