no debug in wsgi mode

This commit is contained in:
j 2009-08-28 11:43:14 +02:00
parent 14f41d44c5
commit cefcc94b84
1 changed files with 2 additions and 2 deletions

View File

@ -118,8 +118,8 @@ class Text(models.Model):
if not os.path.exists(os.path.dirname(path)):
os.makedirs(os.path.dirname(path))
old_dir = os.path.dirname(self.file.path)
print 'old', self.file.path
print 'new', path
#print 'old', self.file.path
#print 'new', path
os.rename(self.file.path, path)
#FIXME: remove old dir if its empy
if not glob('%s/*' % old_dir):