Python Django: Vous êtes à l'aide de la staticfiles app sans avoir mis le STATIC_ROOT réglage

Je suis en train de déployer mon application Django pour le web, mais j'obtiens l'erreur suivante:

Vous êtes à l'aide de la staticfiles app sans avoir mis le STATIC_ROOT
réglage d'un chemin du système de fichiers

Cependant, je l'ai fait dans mon production.py:

from django.conf import settings

DEBUG = False
TEMPLATE_DEBUG = True
DATABASES = settings.DATABASES

STATIC_ROOT = os.path.join(PROJECT_ROOT, 'static')

# Update database configuration with $DATABASE_URL.
import dj_database_url
db_from_env = dj_database_url.config(conn_max_age=500)
DATABASES['default'].update(db_from_env)

# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.9/howto/static-files/

PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))

STATIC_URL = '/static/'

# Extra places for collectstatic to find static files.
STATICFILES_DIRS = (
    os.path.join(PROJECT_ROOT, 'static'),
)

# Simplified static file serving.
# https://warehouse.python.org/project/whitenoise/

STATICFILES_STORAGE = 'whitenoise.django.GzipManifestStaticFilesStorage'

OriginalL'auteur Henry Zhu | 2016-04-21