Request data from database using Django
        Posted  
        
            by user21901
        on Server Fault
        
        See other posts from Server Fault
        
            or by user21901
        
        
        
        Published on 2009-10-03T17:19:55Z
        Indexed on 
            2010/03/15
            21:10 UTC
        
        
        Read the original article
        Hit count: 180
        
django
I have somehow two variables for example x and y. I have also made a model with 3 fields (longitude,latitude,name) and have it activated in mysql database. I need to send these two variables(x,y) to the django server so as to search if there is an object with longitude=x and latitude=y.If there is one i want to get back it's name.
How can i do this?
© Server Fault or respective owner