1👍
✅
LOCALE_FUNC
should be set to the full path of a callable function. Here, "path.to.callable"
is just an example that is not to be taken literraly, as that would mean need to create a file "path/to.py"
with a def callable
defined inside.
I suggest you avoid a path to a callable and directly inline the callable, like this:
'LOCALE_FUNC': lambda request: 'en-US
Source:stackexchange.com