[Django]-ModuleNotFoundError: No module named 'sorl'

7👍

You haven’t installed a package.

Try this:

pip install sorl-thumbnail

3👍

There are two issues:

  1. You need to install sorl-thumbnail, which is an optional dependency (this isn’t well documented and I’ll file an issue to fix that).

  2. You’re reading the documentation for version 2.0 of Ocsar, but have installed version 2.1. This is why you are getting the second error No module named 'oscar.apps.dashboard.communication'. Make sure you use the version of the documentation that matches the version you are using.

0👍

In settings.py, in your INSTALLED_APPS list add 'communication',, e.g.:

INSTALLED_APPS = [

'communication',

'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
...

If it does not work, check out if the

'`oscar.apps.dashboard.communications'` #plural

module you added in INSTALLED_APPS rather has to be

`oscar.apps.dashboard.communication'` #singular
👤Tms91

0👍

What solved it for me was:

pip install sorl-thumbnail django-haystack pysolr
👤Hel

Leave a comment