''somewhere' gives error : No module named 'where' for my django app

  • When I import ( like below after doing pip install somewhere ) handle_uploaded_file from 'somewhere library on my linux machine.)*

from somewhere import handle_uploaded_file


Getting following error when trying to run my django application.)-

enter image description here



Solution 1:[1]

Seems I scared previous person that provided a correct answer as it was deleted, but I'm gonna guess you are following this example. As you can see, there is a clear comment that it is supposed to be imaginary function, i.e. one that you need to implement yourself if you want to use it in the actual code. It's not supposed to refer to somewhere module which does not offer any function of that name.

# Imaginary function to handle an uploaded file.
from somewhere import handle_uploaded_file

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 matszwecja