I did it :D
Here are my information :
Here is my Form.Field definition :
dob = forms.DateField(label="Date of birth", input_formats=['%Y-%m-
%d'], widget=forms.DateTimeInput(attrs={'class':'vDateField'}))
And that's it :D
On 13 oct, 08:52, Natim <[EMAIL PROTECTED]> wrote:
> You have t
You have to do like that :
And define in you urls.py
(r'^jsi18n/$', 'django.views.i18n.javascript_catalog', {'packages':
'django.conf'}),
Let me know if it does works :)
On 8 sep, 14:37, ykb <[EMAIL PROTECTED]> wrote:
> Could you please let us know in a little more detail on how to set the
Could you please let us know in a little more detail on how to set the
jsi18n path.
Where is "/admin/jsi18n/" referring to?
Thanks,
Yadu.
On Aug 20, 1:38 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> That did it. Many Thanks!
>
> On Aug 19, 3:09 pm, Daniel Roseman <[EMAIL PROTECTED]>
> w
That did it. Many Thanks!
On Aug 19, 3:09 pm, Daniel Roseman <[EMAIL PROTECTED]>
wrote:
> On Aug 19, 5:28 pm, "[EMAIL PROTECTED]"
>
>
>
> <[EMAIL PROTECTED]> wrote:
> > Hello,
>
> > I'm trying to use the datetime picker widget from the admin widgets.
>
> > My form is displaying, but the datetime
On Aug 19, 5:28 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm trying to use the datetime picker widget from the admin widgets.
>
> My form is displaying, but the datetime picker is not. When I check
> the error console, I see the message:
>
> Error: gettext is not defined
> S
On Mon, 2007-11-05 at 12:00 -0800, ygneo wrote:
> I use Django 0.96 in a SuSE with Python 2.3.3.
>
> I'm getting this JavaScript error: "gettext is not defined" when I try
> to edit an object with date field in the admin site. I have seen that
> occurs when calendar.js is trying to populate the m
Some advances in my investigation about this error.
The problem seems to be in the characters codification. I don't know
if django or maybe apache are codifying badly the special characteres
in spanish needed for translations. The same error happened when I try
to translate title and branding in
It is OK now.
Thanks a lot.
Bye, Olivier.
>Bingo!
>There is no problem with en, but with fr ...
Yep, fr still has no djangojs.po. Ok, I committed a patch, please svn
up and try wether that solves your problem. It should give you now
english strings in the javascript code (as fr still has no
djangojs.po), but at least the error should be
Bingo!
There is no problem with en, but with fr ...
Olivier.
>Exception Type: KeyError
>Exception Value:''
>Exception Location: C:\soft\django_src\django\views\i18n.py in
>javascript_catalog, line 156
Outch. That's a broken translation catalog - the '' entry in .po/.mo
files is important, it's the metadata stuff. If you click the
disclo
Request Method: GET
Request URL:http://127.0.0.1:8000/admin/jsi18n/
Exception Type: KeyError
Exception Value:''
Exception Location: C:\soft\django_src\django\views\i18n.py in
javascript_catalog, line 156
Traceback (innermost last)
C:\soft\django_src\django\core\han
There is nothing strange in there, it's mostly as expected.
This line is what pulls in the JS translation library. Check the URL
where the problem is, apply the relative URL to that to reach the real
URL for the lib and try it directly in your browser and see what it
produces.
bye, Georg
>have you removed your .pyc files after svn up?
yes
>heck the source of the HTML pages wether there is a reference to the script
>library in there and wether the path is correct
The looks strange:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.org/1999/xhtml"; lang="fr" xm
>The problem appears the last time calendar.js and DateTimeShortcuts.js
>have been updated by svn up.
Not reproduceable here - have you removed your .pyc files after svn up?
svn doesn't update .pyc files, and since .pyc are created based on the
date/time of the .py file, sometimes old modules sti
Georg,
I did not overload any admin template.
The problem appears the last time calendar.js and DateTimeShortcuts.js
have been updated by svn up.
Do I need to add a parameter in the corresponding model meta.Admin ?
Olivier.
>While gettext is in the PATH, I get the following javascript errors
>browsing an admin page with calendar and DateTime widgets:
JavaScript doesn't have anything to do with PATH ;-)
You need to check what is in the pages - if you for example overloaded
admin templates with your own, you will nee
17 matches
Mail list logo