Quantcast
Channel: MarsHut
Viewing all articles
Browse latest Browse all 6551

saving latitude and longitude values in django

$
0
0
models.py

class Geolocation(models.Model):
user = models.ForeignKey(User, null=False)
location_latitude = models.CharField('Latitude', max_length=20, null=True, blank=True)
location_longitude = models.CharField('Longitude', max_length=20, null=True, blank=True)

In my application,i am using google map using Javascript.Latitude and
longitude values are displayed in map using marker,i need to get both
values from map and save to database using Python.

1.I want to know how to get the values from map and save.

2.How to right view function and form.

Viewing all articles
Browse latest Browse all 6551

Trending Articles