file_utils

This commit is contained in:
Sanj 2011-05-09 21:22:31 +05:30
parent bf1651c22b
commit a4ee86629b

View File

@ -9,7 +9,8 @@ def clean_nulls():
if not fil.startswith("/static"): if not fil.startswith("/static"):
print fil print fil
except ValueError: except ValueError:
f.delete() x.append(f)
print len(x)
def clean_relative_links(): def clean_relative_links():
for f in File.objects.all(): for f in File.objects.all():