Re: Manage exception from external services in a form

2011-11-16 Thread Ivo Brodien
Hi, As stated in the answer on SO you should write a custom clean method for your field. Bye On Nov 16, 2011, at 5:31, youpsla wrote: > Sorry, > > I've not search enough, > > I think this post : > http://stackoverflow.com/questions/6365318/custom-field-error-from-try-except-in-django-view

Re: Manage exception from external services in a form

2011-11-15 Thread youpsla
Sorry, I've not search enough, I think this post : http://stackoverflow.com/questions/6365318/custom-field-error-from-try-except-in-django-view give me the solution . but one question left, can I do this solution in the form_valid part of my class ... I'll try ... Regards Alain On 16 nov

Manage exception from external services in a form

2011-11-15 Thread youpsla
Hello, I hope, despite my poor english, to be enough clear. In my Django app, users fill a form with adress, Zip, CIty informations. I like to geocode those informations to fill the lat and lng field of the table db. FOt this tak I use geocoders method from geopy module. It works fine if Google d