Reputation: 79
Im about to deploy my django-app to heroku. I will then use whitenoise to handle the static files. The tutorial im following tells me i have to add this to my wsgi.py file:
So the problem is that pycharm tells me: "Cannot find reference 'DjangoWhiteNoise' in 'django.py'" However i have installed whitenoise! and it is located in the "External libraries". I even went down into the whitenoise.django file, and there is nothing named DjangoWhiteNoise there...
Thanks in advance. Havent found anythin about this concrete problem anywhere.
Upvotes: 1
Views: 1662
Reputation: 3292
The tutorial you are following is for an older, outdated version of WhiteNoise.
There are up-to-date instructions here: http://whitenoise.evans.io/en/stable/django.html
Upvotes: 3