2 ms·
Falsehoods programmers believe about this HN thread: it links to Django's documentation. It linked to a 13-year-old unmaintained community wiki page, and peopl
by ubernostrum 8y ago
Falsehoods programmers believe about this HN thread: it links to Django's documentation.
It linked to a 13-year-old unmaintained community wiki page, and people apparently didn't look too closely at it. I stuck a big honkin' warning at the top of the page to clarify that.
If you want to handle US zip codes, UK postcodes, or other country-specific data types in Django, may I suggest this, which formerly was bundled with Django and now is maintained as a separate add-on:
https://django-localflavor.readthedocs.io/en/latest/ https://django-localflavor.readthedocs.io/en/latest/
It includes such things as a correct dedicated US zip code field, and a correct dedicated UK postcode field.