This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
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 | |
# https://github.com/SmileyChris/easy-thumbnails |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.contrib.auth.models import User | |
from magento import Customer | |
import hashlib | |
import random | |
# Requires magento - http://pypi.python.org/pypi/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: |