I'm trying to get an understanding of using maps with Django. I've installed Geopy and totally understand how it works. I also can produce a Google map with data I provide in the javascript. My question is how do I get the data from Django into the Google Maps javascript?
Example: I have a class named Precincts. In this class, I have precinct_name, precinct_address, precinct_lat, and precinct_lng fields. I'm displaying a list of precincts. When the user selects one, I have a details page (using generic list detail) which displays precinct information (i.e. Precinct Name and address). Beneath this, I want to display a map of the location of the precinct. I can do this manually by entering the lat and lng values directly in the javascript. What do I need to do to pass the values that are stored in my table to the javascript? I'm sure its something simple and because its Friday, I'm missing it. Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---