I have a task to generate thumbnails of uploaded PDF's. And seems like there no really solid decisions yet. Just garbage on the surface in google results. after googling for a while I found out about many ways to do so. E.g. use python stdin/out to run external command line tool. It might work for you to. But it seemed not so pythonic for me. So I have searched fo better decision. My current is for now to install ImageMagick and MagicWand binding.
I have used PIL a while ago to work with images. But it made me cry, before I have met sorl-thumbnails. It helped me a lot. But now I have to deal with PDF's. And ImageMagick seems like a complete decision to master it all. It has to convert pdf to my direct desirables - jpeg. So to install ImageMagick I have used brew. Like this: brew install imagemagick
However there are many other ways to do so, depending on a platform. But I strongly recommend to look at brew.
I have had a task recently. It was about adding a forms/mechanism for resetting a password in our Django based project. We have had our own registration system ongoing... It's a corporate sector project. So you can not go and register yourself. Admins (probably via LDAP sync) will register your email/login in system. So you have to go there and only set yourself a password. For security reasons you can not register. One word.
First I've tried to find standart decision. From reviewed by me were: django-registration and django password-reset. These are nice tools to install and give it a go. But I've needed a more complex decision. And the idea was that own bicycle is always better. So I've thought of django admin and that it has all the things you need to do this yourself in no time. (Actually it's django.contrib.auth part of django, but used out of the box in Admin UI) You can find views you need for this in there. they are: password_resetpassword_reset_done passwo…
After successful developing python back-end for Sebastian Tschan jQuey Plugin I've decided to make a reusable app for that purpose. So:
This is a plugin, made using multiupload form from Sebastian Tschan.
It uses jQuey UI and jQuery instead of Flash uploader.
On Django side it uses sorl-thumbnails and PIL.
You can use it in your applications with simple inclusion tag
jQuery Features it has: Multiple file upload:
Allows to select multiple files at once and upload them simultaneously.Drag & Drop support:
Allows to upload files by dragging them from your desktop or filemanager and dropping them on your browser window.Upload progress bar:
Shows a progress bar indicating the upload progress for individual files and for all uploads combined.Cancelable uploads:
Individual file uploads can be canceled to stop the upload progress.Resumable uploads:
Aborted uploads can be resumed with browsers supporting the Blob API.Chunked uploads:
Large files can be uploaded in smaller chunks with br…