I am trying to link my css files to my Django Project. Not sure where the error is.
This is how my settings file look like:
STATICFILES_FINDERS = (
'/Users/IMAC/work3/Blog/Blog/polls/static',
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
# 'django.contrib.staticfiles.finders.DefaultStorageFinder',
)
STATIC_ROOT = ''
STATIC_URL = '/Users/IMAC/work3/Blog/Blog/polls/static'
This is how my html file looks like:
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="{{ STATIC_URL }}gameserver.css">
This is how my css file looks like:
#tuna{color:red;}
body {background-color:blue;}
Must i change anything else? Why might be my error? Not sure where I am making my mistake...
Where should my static folder be? inside the app or inside the same folder as the app?
STATIC_ROOTandSTATIC_URLfrom your settings.py file