cleanups
This commit is contained in:
parent
f9b1274edc
commit
7fc6cd215f
|
@ -1,10 +1,12 @@
|
|||
from os.path import exists, join
|
||||
from editor.models import *
|
||||
from settings import MEDIA_ROOT
|
||||
|
||||
import Image
|
||||
|
||||
def checkImages():
|
||||
for i in ImageBox.objects.all():
|
||||
full_path = join(MEDIA_ROOT, i.original_print())
|
||||
if not exists(full_path):
|
||||
try:
|
||||
x = Image.open(full_path)
|
||||
except:
|
||||
print full_path
|
||||
|
|
Loading…
Reference in New Issue
Block a user