I think in your case is quite the same, take a look at
http://www.oracle.com/technology/tech/globalization/htdocs/nls_lang%20faq.htm
and the set the enviornment variable NLS_LANG on your application. In
the setting perhaps.
Hope it helps!
--
Antoni Aloy López
Blog: http://trespams.com
Site: http://apsl.net
> another thing is that I don't understand why NLS_TERRITORY has to be
> set to 'AMERICA'.
Because the region determines how the days of the week are numbered.
I have no idea what mapping POLAND uses, but if it's different from
AMERICA, then expect to get incorrect results from the 'weekday'
lookup.
> I know it's not quite elegant to fix a source code of Django (but I
> don't how can I subclass a db backend and then use it in my Django
> project - maybe someone can guide me to some docs?).
> So my question(?) would be:
> Shouldn't this be fixed?
We could add keys to the DATABASE_OPTIONS setting that would cause
this to be set. I would be concerned about allowing NLS_TERRITORY to
be changed in this manner unless we also implement a different
solution for the weekday inconsistency.
Regards,
Ian
This won't work, because the Oracle backend will override the NLS_LANG
setting with ".UTF8" when it loads. There may be a use case for
changing it to only override the character set part of the variable.
Ian