My django project is located at c:/django/project
and static folder is at c:/django/project/app/static
. I put bootstrap and jquery files to my template under link href="/static/
and src="/static/
. But if i change name of folder with static files, they become unavailable. I tried to change settings.py
settings and here is the code, but it isn't help also.
STATIC_URL = '/static/
TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'templates')]
STATICFILES_DIRS = (os.path.join(BASE_DIR,'/django/lingsite/inputs/static'),)
STATIC_ROOT = os.path.join(BASE_DIR, '../static/')
Where static files folder is defined?
You are doing it wrong, see the docs: https://docs.djangoproject.com/en/1.8/howto/static-files/
this is correct way to locate static files:
But anyway, you have a misconfigured paths: