added some cleanups
This commit is contained in:
parent
b8856912ec
commit
f9b1274edc
10
edgware/editor/cleanups.py
Normal file
10
edgware/editor/cleanups.py
Normal 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
|
Loading…
Reference in New Issue
Block a user