On Mar 22, 6:49 pm, jim_rain <j...@rainville.net> wrote: > I'm running Django 1.2.5 on a linux (Centos 5.5) server and I'm trying > to use a datepicker widget written by Aaron Williamson (http:// > copiesofcopies.org/webl/2010/04/26/a-better-datetime-widget-for- > django/) > > I followed all the steps in his write up but when I try to access the > form with the datepicker on it I don't see anything and the runserver > outputs: "GET /myApp/jtest/ HTTP/1.1" 200 409 > > I'm pretty sure this is because Django can't find my media files but I > can't figure out why. I have added this to my urls.py: > > (r'^site_media/(?P<path>.*)$', 'django.views.static.serve', > {'document_root': '/home/jim/work_area/site_base/site_media', > 'show_indexes': True}), > > and when I go tohttp://localhost/site_mediaI see a directory listing > of all the media directories and files. > > In my widget class I have the following inner class: > > class Media: > css = { > 'all' : ("site_media/css/ui-lightness/jquery- > ui-1.8.11.custom.css", ), > } > js = ( > "site_media/js/jqsplitdatetime.js", > "site_media/js/jquery-1.5.1.min.js", > "site_media/js/jquery-ui-1.8.11.custom.min.js", > ) > > I thought that would do it but apparently not. Can anybody tell me > what I"m missing? > > Thank you.
Did you output {{ form.media }} in your template? Best, BN -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.