Hello DAJAXICE_DEBUG = True
in my settings.py is set already..

On 3 ún, 20:22, Jorge Bastida <neo2...@gmail.com> wrote:
> Hello Alexis,
> Dajaxice returns DAJAXICE_EXCEPTION if your ajax function
> (maps.ajax.sendRoute) raises any Exception.
> Try to set DAJAXICE_DEBUG=True and see the server console or try:except: the
> code inside your ajax function to see what Exception was raised
>
> Hope it helps you.
>
> 2010/2/3 Alexis Selves <petr.pej...@gmail.com>
>
>
>
> > Hey there,
> >  I have problem with dajaxice. I am trying to save vertex from google
> > route to my db.
> > Call of JS function:
> > Dajaxice.maps.sendRoute('sendRoute_callBack',{'data':array});
>
> > function sendRoute_callBack(data){
> >                        if(data!='DAJAXICE_EXCEPTION'){
> >                                alert(data.message);
> >                        }
> >                        else{
>
> >                                alert('Error');
> >                        }
> >                }
>
> > Problem is that I always get Error.
>
> > Admin.py:
> > from django.utils import simplejson
> > from django.contrib.gis.geos import Point,Multipoint
> > from maps.models import Route
>
> > def sendRoute(request, data, name):
> >    mp=MultiPoint()
> >    counter = 0
> >    for coord in data:
> >        if counter == 0:
> >            lng=coord
> >        elif counter == 1:
> >            lat=coord
> >            p = Point(lng,lat)
> >            mp.append(p)
> >            counter=0
> >    route = Route()
> >    route.name=name
> >    route.coordinates=mp;
> >    route.save()
>
> > return simplejson.dumps({'message':'Data stored' })
>
> > I don't know what to do.. Can anyone help me...
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To post to this group, send email to django-us...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/django-users?hl=en.
>
> --
> Benito Jorge Bastida
> jo...@thecodefarm.com
>
> thecodefarm SL
> Av. Gasteiz 21, 1º Derecha
> 01008 Vitoria-Gasteizhttp://thecodefarm.com
> Tel: (+34) 945 06 55 09

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to