- return ['/media/images/' + folder + '/' + fn for fn
- in os.listdir(os.path.join(settings.IMAGE_DIR, folder))
- if not fn.startswith('.')]
+ 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('.'))