X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/33d3159145359df7638b3ac0268d4a400856a932..317112df0a3aa6652f867da0fd8b7de504156e2b:/apps/explorer/models.py diff --git a/apps/explorer/models.py b/apps/explorer/models.py deleted file mode 100644 index 1f8e93dc..00000000 --- a/apps/explorer/models.py +++ /dev/null @@ -1,14 +0,0 @@ -import os - -from django.conf import settings - - -def get_image_folders(): - return sorted(fn for fn in os.listdir(os.path.join(settings.MEDIA_ROOT, settings.IMAGE_DIR)) if not fn.startswith('.')) - - -def get_images_from_folder(folder): - return sorted(settings.MEDIA_URL + settings.IMAGE_DIR + '/' + folder + '/' + fn for fn - in os.listdir(os.path.join(settings.MEDIA_ROOT, settings.IMAGE_DIR, folder)) - if not fn.startswith('.')) -