user4374121
user4374121

Reputation:

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 ?

Upvotes: 3

Views: 959

Answers (2)

Mariusz Jamro
Mariusz Jamro

Reputation: 31663

You're missing ' at the end of 'sorl.thumbnail, in INSTALLED_APPS in your settings.py.

Upvotes: 1

doniyor
doniyor

Reputation: 37904

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

Upvotes: 1

Related Questions