diff options
Diffstat (limited to 'examples/objectstore/views.py')
| -rw-r--r-- | examples/objectstore/views.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/objectstore/views.py b/examples/objectstore/views.py index 2a222529..8f997d7e 100644 --- a/examples/objectstore/views.py +++ b/examples/objectstore/views.py @@ -13,6 +13,9 @@ import operator OBJECT_STORE_DIR = os.path.join(settings.MEDIA_ROOT, 'objectstore') MAX_FILES = 10 +if not os.path.exists(OBJECT_STORE_DIR): + os.makedirs(OBJECT_STORE_DIR) + def remove_oldest_files(dir, max_files): """ |
