python - django static files - don't work -
i have django project , i'm using static files, didn't work , can not include css file or image html file
here
<link rel="icon" href={% static "img/favicon.png" %}>
or
<link href={% static "css/mine.css" %} rel="stylesheet">
i checked direction , ok cant understand why code didn't work
i add static section in settings.py follows
static_url = '/static/'
just change this
<link rel="icon" href="{% static "img/favicon.png" %}">
and
<link href="{% static "css/mine.css" %}" rel="stylesheet">
Comments
Post a Comment