Created
January 4, 2016 04:19
-
-
Save vaad2/7d3058c378246f0c128e to your computer and use it in GitHub Desktop.
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
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