Having problem with staticfiles in Django 2.
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
TEMPLATE_DIR = os.path.join(BASE_DIR, "templates")
STATIC_URL = '/static/'
STATIC_ROOT = BASE_DIR + '/static/'
STATICFILES_DIR = [
(BASE_DIR + "static/"),
]
STATICFILES_FINDERS = [
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
]
And my static structure is like below
I am getting 404 for statics. Tried different things but no success. btw collectstatic has been already performed. Another thing is when i make changes in the static folder, collectstatic is not collecting anything. it says "unmodified".
i am newbie in Django. appreciate for your help.
UPDATE 2:
and the settings is like
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static' )
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'static_files')
]
STATICFILES_FINDERS = [
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
]
When i try to collectstatic, there is no change. seems it is not collecting. and 404 returns for statics naturally since it is not collecting.