Skip to content

Instantly share code, notes, and snippets.

@vaad2
Created January 4, 2016 04:19
Show Gist options
  • Save vaad2/7d3058c378246f0c128e to your computer and use it in GitHub Desktop.
Save vaad2/7d3058c378246f0c128e to your computer and use it in GitHub Desktop.
import os
import django
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ru4you.settings")
django.setup()
from sorl.thumbnail import get_thumbnail
import logging
logging.basicConfig(level=logging.DEBUG)
print get_thumbnail('t1232est.png', '100x100').url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment