27👍
Please read up on Internationalization (i18n)
http://docs.djangoproject.com/en/dev/topics/i18n/
The _
is a commonly-used name for the function that translates strings to another language.
http://docs.djangoproject.com/en/dev/topics/i18n/translation/#standard-translation
Also, read all of these related questions on SO:
13👍
Not an answer to your case but the more general “What’s the meaning of ‘_’ in python?”:
In interactive mode, a _
will return the last result that wasn’t assigned to a variable
>>> 1 # _ = 1
1
>>> _ # _ = _
1
>>> a = 2
>>> _
1
>>> a # _ = a
2
>>> _ # _ = _
2
>>> list((3,)) # _ = list((3,))
[3]
>>> _ # _ = _
[3]
Not sure, but it seems like every expression that’s not assigned to a variable is actually assigned to _
.
- [Django]-Which database engine to choose for Django app?
- [Django]-Connecting to EC2 Django development Server
- [Django]-Generate a Unique String in Python/Django
6👍
- [Django]-Django : Is it impossible to static tag into block tag?
- [Django]-Google Static Maps URL length limit
- [Django]-Why there are two process when i run python manage.py runserver
0👍
_ indicates last valid output on the screen. System by default stores copy of the output to this _ variable. It does not applies to string that is printed using print function but I stores for the string stored into the variable.
- [Django]-AttributeError: 'WSGIRequest' object has no attribute 'is_ajax'
- [Django]-What are the best practices to use AngularJS with Django
- [Django]-Reload django object from database