What version of dajaxice are you using?
The server console hasn't got any output?

Try to print out the logging info:
import logging logging.basicConfig(level=logging.DEBUG)

2010/2/3 Alexis Selves <[email protected]>

> Hello DAJAXICE_DEBUG = True
> in my settings.py is set already..
>
> On 3 ún, 20:22, Jorge Bastida <[email protected]> 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 <[email protected]>
> >
> >
> >
> > > 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 [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected]<django-users%[email protected]>
> <django-users%[email protected]<django-users%[email protected]>
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/django-users?hl=en.
> >
> > --
> > Benito Jorge Bastida
> > [email protected]
> >
> > 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<django-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
Benito Jorge Bastida
[email protected]

thecodefarm SL
Av. Gasteiz 21, 1º Derecha
01008 Vitoria-Gasteiz
http://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 [email protected].
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.

Reply via email to