no debug in wsgi mode
This commit is contained in:
parent
14f41d44c5
commit
cefcc94b84
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue