[Answer]-Django 1.8 Not Serving Static Files in Development

1đź‘Ť

You haven’t used the exact settings in the docs…Which is fine, but you need to at least do the following, if DEBUG = False:

  1. Set up STATICFILES_DIRS. This should be the absolute path to the folder where your static assets live (before they’re “collected”).
  2. Set up STATIC_ROOT. This is different than the above path, and is where all of your static assets will be collected when you run collectstatic.
  3. Run the collectstatic command to collect (i.e. copy) your assets from your STATICFILES_DIRS to your STATIC_ROOT

Depending on your configuration, and if DEBUG = True, you don’t even need to define STATIC_ROOT in development mode.

👤rnevius

Leave a comment