Skip to content

Instantly share code, notes, and snippets.

danielatdattrixdotcom /
Created Oct 3, 2012
Source Generator for Django app easy-thumbnails that uses Wand (ImageMagick)
from cStringIO import StringIO
except ImportError:
from StringIO import StringIO
from PIL import Image as PILImage
from wand.image import Image
# Source Generator for the easy-thumbnails Django application
danielatdattrixdotcom /
Created Jul 10, 2012
Django authentication backend using a Magento API
from django.contrib.auth.models import User
from magento import Customer
import hashlib
import random
# Requires magento -
# Note proper use of HTTP/HTTPS for your setup
# If you run multiple stores, set STORE_ID and WEBSITE_ID as-needed or adapt to your setup
class Magento: