Reputation: 994
I have a simple website running on Django. When I load Bootstrap css files, the page loads the formatting just fine. But I try to load the css file I have created and saved in the same folder as the Bootstrap css files, the file does not load. See the file here http://jsfiddle.net/zptkvx5c/ In both case I am making reference to the file in the html head.
<link href="{% static "css/mystyles.css" %}" rel="stylesheet">
<!-- <link href="{% static "css/bootstrap.css" %}" rel="stylesheet"> --> This one works
Could anyone assist to fix this?
Update: I have tried to hardcode the url and still it doesn't work
Upvotes: 2
Views: 1598
Reputation: 3429
you can do this one:
<link href="css/mystyles.css" rel="stylesheet" />
or
{% load staticfiles %}
<link rel="stylesheet" href="{% static "css/mystyles.css" %}" type="text/css">
This one works
Upvotes: 1