sorl
- thumbnail
image not displaying ...
after the long debug i found that cache folder is not created may be that's cause this issue ?
settings.py
INSTALLED_APPS = (
'sorl.thumbnail,
)
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
How to debug this ?
set in settings.py
THUMBNAIL_DEBUG = True
and see why it is not displaying.
you need to migrate sorl.thumbnail
, so it will get its tables created, i think
你错过了'
在结束'sorl.thumbnail,
在INSTALLED_APPS
在你的settings.py
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.