djangosnippets.org: Latest snippets posted by FarmKinghttp://djangosnippets.org/users/FarmKing/2012-02-13T04:59:20.017352-06:00FarmKingAsync PIL resize of images
2012-02-13T04:59:20.017352-06:00FarmKinghttp://djangosnippets.org/snippets/2682/<p>Call resize_image to replace the image with a resized and normalized version of itself. I recommend doing this with celery, but you could also hook it up to the admin interface if you're not impatient.</p>
Freely redistributablepre_save hook for checking state changes to models
2011-11-03T08:16:23.959136-05:00FarmKinghttp://djangosnippets.org/snippets/2590/<p>Trying to build a state-machine that stores state in the model or in settings.py rather then in the database, I wrote this small generic pre_save hook that lets me leave all the data in the Model.</p>
Freely redistributable