Cannot find reference 'DjangoWhiteNoise' in 'django.py' in wsgi.py

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:

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

Answers (1)

D. Evans
D. Evans

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

Related Questions