For using jquery datepicker in a django form, I included four external files:
in the base.html and then added a script
So on viewing the book.html page (that contains the form), I viewed its source and found id of the date input field(#id_date) and then assigned it accordingly in the script above. In the script, I also added input id of hall(#id_hall) to show it as a nice looking dropdown list.
Also added some styles:
The commit can be seen @ https://github.com/rvirdiz/booking_system/commit/c9e65898170af181915f1e53952c5a1037ca01cf
I’d also downloaded the jquery files and css in the static folder but it didn’t work may be because of some path error.