X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/e15a5c7e20d1314575e2ee85b8b238e8f41084df..78943ca7de03a0f59b072c71540be92b5a6d433f:/apps/wiki/views.py?ds=sidebyside diff --git a/apps/wiki/views.py b/apps/wiki/views.py index ec43deea..d64a5292 100644 --- a/apps/wiki/views.py +++ b/apps/wiki/views.py @@ -41,7 +41,6 @@ def document_detail(request, name, template_name='wiki/document_details.html'): def document_gallery(request, directory): try: base_dir = os.path.join(settings.MEDIA_ROOT, settings.FILEBROWSER_DIRECTORY, directory) - print base_dir images = ['%s%s%s/%s' % (settings.MEDIA_URL, settings.FILEBROWSER_DIRECTORY, directory, f) for f in os.listdir(base_dir) if os.path.splitext(f)[1].lower() in ('.jpg', '.jpeg', '.png')] return HttpResponse(json.dumps(images)) except (IndexError, OSError), e: