Is it possible to just use one of the admin generic views anywhere in
the site?
No, the JavaScript that does that is currently coupled to other
JavaScript stuff used in the admin. I'm working on porting all of our
JavaScript to the Dojo toolkit, and one of my goals is to make things
like the fancy admin date/time widgets more easily reusable, but I
don't have any kind of timeframe on when that will hit trunk.
> Is it possible to just use one of the admin generic views anywhere in
> the site?
You'd probably have to hack on them a bit.
--
"May the forces of evil become confused on the way to your house."
-- George Carlin
It's very rushed, as I was on the way to the airport and just wanted to
get the post made before I forgot it, but it does work...
Cheers,
Tone
As a recap to others. These were the steps I took:
1) add an entry to my site's urlpatterns
(r'^jsi18n/$', 'django.views.i18n.javascript_catalog', {'packages':
'django.conf'}),
2) add the following code to the start of the "form" template page.
<script type="text/javascript" src="/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>