title: Python Django: You're using the staticfiles app without having set the STATIC_ROOT setting
body: <p>I'm trying to deploy my Django application to the web, but I get the following error:</p>
  
  <blockquote>
    <p>You're using the staticfiles app without having set the STATIC_ROOT
    setting to a filesystem path</p>
  </blockquote>
  
  <p>However, I did in my <strong>production.py</strong>:</p>
  
  <pre><code>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'
  </code></pre>