Skip to content
Advertisement

Tag: postal-code

Using uk-postcode-utils in a python form

I am creating a form for the user to enter a valid UK postcode. I currently have the following code for the form: and the template is: but getting the error: TypeError: argument of type ‘StringField’ is not iterable. What can I do to fix this? Edit: Here are the complete form entry and the template for the webpage. Thanks

Python Module for Distance between UK postcodes

I need to calculate distances between UK postcodes. I don’t want to use a web api. Does a python module/ library exist for this? Or do I have to put together something of my own using data from the OrdnanceSurvey? Thanks, Answer 1/You can use any rest geolocation api eg google maps, that would provide you accurate distance based on

Advertisement