I have a form for geocoding an address in my app. If a non-address is entered, the geocoder raises a “GQueryError”. Using try/except I’d like to catch this error and send a custom error back to the form that would show up in the “errorlist” like the other errors and be appropriately displayed and styled. Can this be done?
Share
You should write a
clean_field_namemethod and in it capture the error and raise aValidationErrore.gRead how to clean specific fields