Why was the Sorl thumbnail cache folder not created?

sorl

- the thumbnail

image is not displayed ...

after a lot of debugging I found that the cache folder was not created, could it be the cause of this problem?

settings.py

INSTALLED_APPS = (
    'sorl.thumbnail,
)

MEDIA_URL = '/media/'

MEDIA_ROOT = os.path.join(BASE_DIR, 'media')

      

How do I debug this?

+3


source to share


2 answers


set in settings.py

THUMBNAIL_DEBUG = True

      



and see why it is not showing.

you need to migrate sorl.thumbnail

for it to create its tables I think

+1


source


You are missing '

at the end of 'sorl.thumbnail,

the INSTALLED_APPS

c settings.py

.



+1


source







All Articles