1

I'm new to Django and looking at some old packages. I have 1.5 installed and see that one some of the older apps they use the syntax _( a lot for example...

help_text=_(u'something')

What is this? Was it depreciated? Will it give me issues with 1.5?

4

1 回答 1

2

That is gettext for internationalizing an application

Django provides documentation on their site.

according to the docs, In django 1.5 it is located at

from django.utils.translation import ugettext as _

It was not deprecated

于 2013-03-12T16:12:20.307 回答