Hi,

Despite the high likelihood that I'll be chewed out as an ignoramus
who can't seem to read docs (I have... for about a day), I'm going to
try to ask a seemingly basic question (without even posting my model;)

I'm using the Django 1.2 enhanced localization feature to setup
formatting constants.  This works fine and my tree looks like this-

myapp->formats->en->formats.py

In this file, I have a constant  DATETIME_FORMAT = "n/j/Y"

I have a Japanese file

myapp->formats->en->formats.py

In this file, I have a constant  DATETIME_FORMAT = "Y/n/j"

This all works great for my templating puposes!  Problem is that I
need to know this mask in a view.  Trying to use
settings.DATETIME_FORMAT producing something completely wrong... "N j,
Y, P"... so that's not the answer.

How can I do something like strptime(request.POST["start-date"],
mycurrent_DATETIME_FORMAT)... There's got to be an undocumented way of
referencing the constant currently being used?

Any help would be appreciated.

-jim

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to