[Answer]-Linking my CSS file to my Django Project

0👍

My mistake is i forgot context_instance=RequestContext(request).

If {{ STATIC_URL }} isn't working in your template, you're probably not using RequestContext when rendering the template

1👍

Remove '/Users/IMAC/work3/Blog/Blog/polls/static' from STATICFILES_FINDERS = (

And your STATIC_ROOT should be

STATIC_ROOT = '/Users/IMAC/work3/Blog/Blog/polls/static/' 

and

STATIC_URL  = '/static/'

0👍

You’ve misunderstood what the various settings do:

  • STATIC_FILES_FINDERS is a list of Python classes which Django uses to search for static files, it is not a list of places where static files are stored.
  • STATIC_ROOT is the directory where the static files are stored.
  • STATIC_URL is the URL that should point to the static files.

In your case you want something like this:

STATICFILES_FINDERS = (
    'django.contrib.staticfiles.finders.FileSystemFinder',
    'django.contrib.staticfiles.finders.AppDirectoriesFinder',
#    'django.contrib.staticfiles.finders.DefaultStorageFinder',
)
STATIC_ROOT = '/Users/IMAC/work3/Blog/Blog/polls/static' 
STATIC_URL = '/static/'

Leave a comment