简体   繁体   中英

SORL-thumbnail import error in Django project

I've installed SORL-thumbnail through pip . When I try to import it in the Python shell it's OK, but if I add this to INSTALLED_APPS I get:

ImportError (No module named SORL)

pip install sorl-thumbnail

Worked to me.

Notice that this package seems to have been published with a typo on the name.

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