added some cleanups

This commit is contained in:
Sanj 2011-05-27 15:43:30 +05:30
parent b8856912ec
commit f9b1274edc

View File

@ -0,0 +1,10 @@
from os.path import exists, join
from editor.models import *
from settings import MEDIA_ROOT
def checkImages():
for i in ImageBox.objects.all():
full_path = join(MEDIA_ROOT, i.original_print())
if not exists(full_path):
print full_path