Skip to content Skip to sidebar Skip to footer

STATICFILES On Django 1.6.2

This is my settings.py STATIC_URL = '/static/' TEMPLATE_DIRS = ( os.path.join(BASE_DIR, 'templates'), ) STATICFILES_DIRS = ( os.path.join(BASE_DIR, 'static'), ) STATICFI

Solution 1:

You need to make sure that the django.contrib.staticfiles app is listed in INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'django.contrib.staticfiles'
    ...
)

Lastly, you need to make sure that DEBUG is set to True in settings.py.

EDIT:

Try removing 'django.contrib.staticfiles.finders.DefaultStorageFinder' from STATICFILES_FINDERS. Then run $ python manage.py findstatic img/logo.png


Post a Comment for "STATICFILES On Django 1.6.2"