1👍
Django keeps its built-in validators in the django.core.validators
module.
If you followed this you could create a validators.py
in your app.
You’d then import validators
and use validators.zipValidate(s)
or from validators import zipValidate
and use zipValidate(s)
as you are.
I hope that helps.
Source:stackexchange.com