In my settings.py
mention:
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
My folder structure
project_name
static
bootstrap
settings
settings.py
I am not able to access the static files. Though If I add STATIC_DIRS
( and comment STATIC_ROOT
) as below I can access the static files.
STATICFILES_DIRS = (
os.path.join(BASE_DIR, "static"),
)