简体   繁体   中英

why sorl thumbnail cache folder is not created?

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM