Getting fullcalendar javascript click data to django modelform

i want to click event on Fullcalendar, then it open another page, like this

    document.addEventListener('DOMContentLoaded', function() {
        var calendarEl = document.getElementById('calendar');
        var calendar = new FullCalendar.Calendar(calendarEl, {
            dateClick: function(info) {
      "{% url 'create-book' %}","_self");

but how to get data from fullcalendar ?
there are function dateStr for show date, and, to show resource in timeline view(fullcalendar)

 alert('clicked ' + info.dateStr + ' on resource ' +;           

what i want is bring dateStr and clicked data to django modelform,


def create_book(request):
    booking_forms = BookingForm(initial={

im not sure what should i put on xxxx to get this through url on other page..


67 thoughts on “Getting fullcalendar javascript click data to django modelform”