API POST endpoints  

Adding an arena can be accomplished using both JSON data and using an HTML form. In this section, we'll create an HTML template, use the AddForm from forms.py, and use it to collect data from the Leaflet.js map included in Chapter 12GeoDjango, code bundle. It also uses the library jQuery to allow the user to click on the map at any location, thus updating the longitude and latitude data from the map:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset