djangowhitenoise

Django WhiteNoise module not found


I'm using Docker to deploy my application and for some reason every time my Django server keeps returning the following error: ImportError: No module named 'whitenoise', even though it says that the module is already installed: Requirement already satisfied: whitenoise in /usr/local/lib/python3.5/dist-packages (3.3.1).

Any help on this issue is greatly appreciated.


Solution

  • You are installing at wrong place... probabily you are forgeting to create/install/activate your virtualenv in your docker container, so when you login it installed globaly and your code in trying to find at VM, or you installed in VM and your code is lookings globaly.

    http://tinystruggles.com/2014/11/16/docker-virtualenv.html