Re: Django point field

2009-09-25 Thread Nabil Servais
Hello, I solve your probleme in changing the output format into json, then I convert the coordinates into Float. def get_lat_long(location): key = '' output = "json" location = urllib.quote_plus(location) request = "http://maps.google.com/maps/geo?q=%s&output=%s";

Re: Django point field

2009-09-25 Thread Nabil Servais
Hello, I use json for output instead of cvs, and it works. Also I convert the lattitude and longitude into float. enjoy def get_lat_long(location): key = settings.GOOGLE_API_KEY output = "json" location = urllib.quote_plus(location) request = "http://maps.g

Re: Possible to do location detection?

2010-08-25 Thread Nabil Servais
Hello, Le 25/08/2010 09:37, Andy a écrit : I'd like to detect the location of each user and then set the default language and location for him accordingly. The homepage would also be tailored to each location (country and city). Can anyone share information on how to do that with Django? You

Re: Geodjango tutorials?

2010-04-04 Thread Nabil Servais
Le 3 avr. 2010 à 04:16, Benjamin Welton a écrit : > Hey All, > > Im wondering if anyone has some good links to geodjango tutorials (outside > of the main one featured on geodjango.org)? Specifically any related to > Google Map integration (since that subsection appears to be missing in the

Re: Python Database Framework

2010-05-14 Thread Nabil Servais
Hello Le 14 mai 2010 à 16:47, Ozgur Yılmaz a écrit : > Hi everybody, > > Do anyone knows a Python Database framework, which resembles Django's > approach to database programming? Yes, Elixir : http://elixir.ematia.de/trac/wiki. > I need it to use outside of Django, for other Python scripts.

Re: Accessing schemas in django

2010-09-27 Thread Nabil Servais
Hello, Le 27/09/2010 08:53, Jean-Pierre De Villiers a écrit : Hi, Is there a way to access an existing database schema in Django? Any help would be appreciated! J You can use the inspectdb option of the project manager, you will find more information in the official documentation : htt