No this wont work. The syntax is not right. But as for yesterday as i said,
all was working ok. So i dont know what could have changed within my system
for me to start getting segmentation fault. The reason for the quotes is so
that one can fully understand the problem am having.

Regards

On 18 August 2011 16:50, Dan Carpenter <[email protected]> wrote:

> On Thu, Aug 18, 2011 at 04:46:34PM +0300, roy mukasa wrote:
> > Hey guys am having this problem that has been bothering me the whole day.
> I
> > am creating an app using python and geodjango . Yesturday when i created
> it
> > it was working fine but today i dont know what went wrong but am getting
> > this error when i get onto the python console and the run the following
> > commands:
> >
> > Python 2.7 (r27:82500, Aug 07 2010, 16:54:59) [GCC] on linux2
> >
> >
> > Type "help", "copyright", "credits" or "license" for more information.
> > (InteractiveConsole)
> > >>> from waypoints.models import Waypoint
> > >>> Waypoint(name='Kampala', geometry='POINT(32.56555560.3155556)').save()
>                                         ^                           ^
> Are those quotes needed?
>
> I don't have your python libraries installed (you didn't say what
> libraries they are) but POINT() looks like a function so you might
> as well try calling it.
>
> I would break it up actually:
>
> from waypoints.models import Waypoint
>
> waypoint = Waypoint(name='Kampala', geometry=POINT(32.5655556 0.3155556))
> waypoint.save()
>
> regards,
> dan carpenter
>
> _______________________________________________
> The Uganda Linux User Group: http://linux.or.ug
>
> Send messages to this mailing list by addressing e-mails to:
> [email protected]
> Mailing list archives: http://www.mail-archive.com/[email protected]/
> Mailing list settings: http://kym.net/mailman/listinfo/lug
> To unsubscribe: http://kym.net/mailman/options/lug
>
> The Uganda LUG mailing list is generously hosted by INFOCOM:
> http://www.infocom.co.ug/
>
> The above comments and data are owned by whoever posted them (including
> attachments if any). The mailing list host is not responsible for them in
> any way.
>



-- 
Roy Mukasa
SERVAL (U) LTD
+256794291110
"Smart thinking, Simple world"
_______________________________________________
The Uganda Linux User Group: http://linux.or.ug

Send messages to this mailing list by addressing e-mails to: [email protected]
Mailing list archives: http://www.mail-archive.com/[email protected]/
Mailing list settings: http://kym.net/mailman/listinfo/lug
To unsubscribe: http://kym.net/mailman/options/lug

The Uganda LUG mailing list is generously hosted by INFOCOM: 
http://www.infocom.co.ug/

The above comments and data are owned by whoever posted them (including 
attachments if any). The mailing list host is not responsible for them in any 
way.

Reply via email to