diff options
| author | Tom Christie | 2011-12-30 15:33:08 +0000 |
|---|---|---|
| committer | Tom Christie | 2011-12-30 15:33:14 +0000 |
| commit | b8bfebc83719a7c286fee413bb44fffedac1a8d0 (patch) | |
| tree | 2365a92b80c3682ccf4daa1126ca8383aa2166ba /examples/objectstore | |
| parent | 904f197474ad3561d3d273961a70ab19d8175aaf (diff) | |
| download | django-rest-framework-b8bfebc83719a7c286fee413bb44fffedac1a8d0.tar.bz2 | |
ep.io fixes
Diffstat (limited to 'examples/objectstore')
| -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): """ |
