djangosnippets.org: Latest snippets tagged with 'validate'http://djangosnippets.org/tags/validate/2011-01-12T01:11:48.105528-06:00Run model validation before saving a model instance
2011-01-12T01:11:48.105528-06:00buriyhttp://djangosnippets.org/snippets/2319/<p>How to validate your model at save using the pre_save signal.
</p>
<p>from http://groups.google.com/group/django-developers/browse_thread/thread/eb2f760e4c8d7911/482d8fd36fba4596?hl=en&lnk=gst&q=problem+with+Model.objects.create#482d8fd36fba4596
</p>
Freely redistributabletypo_comparison
2009-08-23T06:03:13.613111-05:00rogushttp://djangosnippets.org/snippets/1696/<p>This is simple validation weather a string is close enough to what we want. First param is keyword we are comparing to Second is user's input and third is tolerance level. Its very rudimentary. I have my mind fixed upon some imperfections. I am trying to make it good for …</p>
Freely redistributable