I am new to django framework .I created simple welcome page now i want to include css file in my project.i cant apply css file in project .i got error like "NetworkError: 404 NOT FOUND - /static/css/hai.css"
this is my project structure
setting.py
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
STATIC_URL = '/static/'
TEMPLATE_DIRS=(
os.path.join(os.path.dirname(BASE_DIR),"static","templates"),
)
if DEBUG:
MEDIA_URL='/media/'
STATIC_ROOT=os.path.join(os.path.dirname(BASE_DIR),"static","static-only")
MEDIA_ROOT=os.path.join(os.path.dirname(BASE_DIR),"static","media")
STATICFILE_DIRS=(
os.path.join(os.path.dirname(BASE_DIR),"static","static"),
)
url.py
if settings.DEBUG:
urlpatterns += static(settings.STATIC_URL,document_root=settings.STATIC_ROOT)
urlpatterns += static(settings.MEDIA_URL,document_root=settings.MEDIA_ROOT)
base.html
<link href="/static/css/bootstrap.min.css" rel="stylesheet">
and i tried to following links but i cant apply css https://www.youtube.com/watch?v=8t80DMAAps8