media/medialibrary/2014/03/
In the database is also storedmedia/medialibrary/2014/03/
/media/_thumbs/media/medialibrary/2014/03/
so it could not be found.
The image is also wrong referenced as
"/media/media/medialibrary/2014/03/P1000851.JPG"
FEINCMS_MEDIALIBRARY_UPLOAD_TO = 'media/medialibrary/%Y/%m/'
Martin, I assume my question was not clear enough. I tried many variants but no variant works satisfactorily. Now I have in my settings: MEDIA_URL = '/media/' FEINCMS_THUMBNAIL_DIR = '_thumbs/' FEINCMS_MEDIALIBRARY_UPLOAD_TO = 'medialibrary/%Y/%m/' The url entry is (r'^media/(?P<path>.*)$', 'django.views.static.serve', \ {'document_root': os.path.join(os.path.dirname(__file__), 'media/')}), If I upload an image then the image is stored in <project>/media/medialibrary/yyyy/mm/ and the thumbnail is stored in <project>7media/_thumbs/medialibrary/yyyy/mm/ What happens? In the admin interface mediafiles the image is listed (admin/medialibrary/mediafile/1/) but there is no preview. The HTML-source is:
<tr class="row1"><td class="action-checkbox"><input class="action-select" name="_selected_action" type="checkbox" value="1" /></td><td> <a href="/media/medialibrary/2014/04/xyz.JPG" target="_blank"> <img src="/media/_thumbs/medialibrary/2014/04/xyz_v_thumb_100x100.JPG" alt="" /> </a></td><th><a href="/admin/medialibrary/mediafile/1/">AntjeSchminkt_CIMG1507_v.JPG</a></th><td><input type="hidden" class="medialibrary_file_path" name="_media_path_1" value="medialibrary/2014/04/AntjeSchminkt_CIMG1507_v.JPG" id="_refkey_1" /> AntjeSchminkt_CIMG1507_v.JPG <br />Bild 150×113, 31,0 KB</td><td>2014-04-18</td></tr>
Now I insert the image into a page. The mediafiles are listed without a preview. Then in the browser is no image shown but the HTML is
<div class="imageHaupt"> <p class="mittig"><img src="/media/medialibrary/2014/04/xyz.JPG" width="580" alt="" > </img> </p> <p class="caption"></p> <p class="description"></p> </div>
(The template: <div class="imageHaupt"> <p class="mittig"><img src="{{ content.mediafile.file.url }}" alt="{{ content.mediafile.translation.caption }}"/></p> <p class="caption">{{ content.mediafile.translation.caption }}</p> {% if content.mediafile.copyright %}<p class="copyright">Foto: {{ content.mediafile.copyright }}</p>{% endif %} <p class="description">{{ content.mediafile.translation.description }}</p> </div> ) Now i copy the image and the thumbnail to /<project>/<app>/media/medialibrary/2014/04/ resp. /<project>/<app>/media/_thumbs/medialibrary/2014/04/ The the image is shown in the page and the thumbnail in the admin interface as preview. That is not satisfactory. Setting? Or bug in feincms? Egon
To view this discussion on the web, visit https://groups.google.com/d/msgid/django-feincms/8de496f5-ccd3-4c3a-a982-862d89f997f6%40googlegroups.com.--
You received this message because you are subscribed to the Google Groups "Django FeinCMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-feincm...@googlegroups.com.
To post to this group, send email to django-...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/django-feincms/05912522-ce35-4510-af71-f33b2c37dbb0%40googlegroups.com.
Excellent Matthias!That did the trick.Thanks a lot.Pablo