Hello friends,
I have a strange problem here. On my local Ubuntu test server the (cartridge) product´s pages shows up correctly, but on my production server (Dreamhost shared hosting) the thumbnails on the product´s pages shows up on full-size, and not "thumbnailed".
Test server:
<ul id="product-images-large" class="list-unstyled list-inline">
<li id="image-5-large" >
<a class="product-image-large" href="/static/media/uploads/fabrica/tijolo_1.jpg">
<img alt="" src="/static/media/uploads/fabrica/.thumbnails/tijolo_1.jpg/tijolo_1-0x300.jpg" class="img-thumbnail img-responsive col-xs-12">
</a>
</li>
Production server:
<ul id="product-images-large" class="list-unstyled list-inline">
<li id="image-5-large" >
<a class="product-image-large" href="/static/media/uploads/fabrica/tijolo_1.jpg">
<img alt="" src="/static/media/uploads/fabrica/tijolo_1.jpg" class="img-thumbnail img-responsive col-xs-12">
</a>
</li>
So far I have found that on test server the image source comes from ".thumbnails" folder, but not on the production server.
pip list is almost identical on both servers, only differs on setuptools:
beautifulsoup4 (4.4.1)
bleach (1.4.2)
Cartridge (0.11.0)
chardet (2.3.0)
distribute (0.7.3)
Django (1.9.4)
django-contrib-comments (1.7.0)
filebrowser-safe (0.4.3)
future (0.15.2)
grappelli-safe (0.4.2)
html5lib (0.9999999)
Mezzanine (4.1.0)
oauthlib (1.0.3)
Pillow (3.1.1)
pip (8.1.1)
pyboleto (0.2.14)
PyPDF2 (1.25.1)
pytz (2016.3)
reportlab (3.3.0)
requests (2.9.1)
requests-oauthlib (0.6.1)
setuptools (12.0.5) (on test server this is 3.3)
six (1.10.0)
tzlocal (1.2.2)
xhtml2pdf (0.0.6)
and this works fine on production server:
$ python3
from PIL import Image
The static folder has been copied from test to production with "rsync -avz source-path/. destiny-path/" with the final dot after origin so dotted folders (.thumbnails) are transfered. And the source code has been copied using git clone.
Both servers are running virtualenvs with Python 3.4.3. The production server makes use of passenger_wsgi.py to run the application.
Any help will be welcome,
Thanks,
Márcio Moreira