Ahhh, I think I have it!
It seems I needed to add this to my urls:
(r'^jsi18n/$', 'django.views.i18n.javascript_catalog', {'packages':
'django.conf'}),

Thanks for the help!
Dan.

2008/6/6 Daniel Kersten <[EMAIL PROTECTED]>:
> Thanks for the reply.
> I tried using the calendar from the admin interface, but I cannot seem
> to get it working (ie it wont display the calendar). I must be missing
> something, since it works fine for the admin interface :-/
> I copied the javascript and css files mentioned into my site media
> directory and ensured the paths are all correct...
>
> Dan.
>
> 2008/6/6 Michael Twomey <[EMAIL PROTECTED]>:
>>
>> On Fri, Jun 6, 2008 at 14:10, Daniel Kersten <[EMAIL PROTECTED]> wrote:
>>>
>>> Hi again,
>>>
>>> I need to store a date, which the user can input. Since I couldn't get
>>> the little javascript calendar which the admin interface uses working
>>> (if anyone knows, let me know how!)
>>
>> From memory and looking at my admin page:
>>
>> <link rel="stylesheet" type="text/css" href="/media/css/forms.css" />
>> <script type="text/javascript" src="/admin/jsi18n/"></script>
>> <script type="text/javascript" src="/media/js/core.js"></script>
>> <script type="text/javascript"
>> src="/media/js/admin/RelatedObjectLookups.js"></script>
>> <script type="text/javascript" src="/media/js/calendar.js"></script>
>> <script type="text/javascript"
>> src="/media/js/admin/DateTimeShortcuts.js"></script>
>>
>> Then the magic is in the attributes (DateTimeShortcuts.js looks for
>> input tags with these classes):
>>
>> <input type="text" class="vDateField">
>> <input type="text" class="vTimeField">
>>
>>> I created a dropdown list of dates
>>> instead. This works fine, except that in the admin interface it now
>>> also uses the same dropdown list. That in itself is not a problem, but
>>> the admin interface does not know _which_ of the list items to select,
>>> so even though the database stores the dates, the admin interface does
>>> not show which one.
>>
>> At a guess this sounds like you stopped using the date field?
>>
>>> Does anyone have any suggestions? I can't seem to think of a solution
>>> thats not horribly hackish.
>>>
>>
>> I'd leave it as a straight input html + date field, and use either the
>> admin js or some other js calendar picker to tart it up.
>>
>> mick
>>
>> >>
>>
>
>
>
> --
> Daniel Kersten.
> Leveraging dynamic paradigms since the synergies of 1985.
>



-- 
Daniel Kersten.
Leveraging dynamic paradigms since the synergies of 1985.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Python Ireland" 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.ie/group/pythonireland?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to