Tare Gaskin
Tare Gaskin

Reputation: 1489

Django: CSS and Images (Static Files) loaded successfully but not applied

I'm using Django Dev Server and trying to test some templates I've made. When I visit addresses, I can see from the server prompt that CSS and images are loaded, but when I'm looking in a browser it is not applied. I'm also using Bootstrap and strangely enough, it does get applied.

I would really like some help. I've seen (and implemented) the solution from various other threads with no avail. Please Help!

Threads I've seen:

Django -- Can't get static CSS files to load

CSS loaded but not applied

Django Static Files - CSS File Won't Load

Django CSS Attachment

Django - CSS problems

CSS loaded but empty

Upvotes: 1

Views: 1009

Answers (1)

bchunggg
bchunggg

Reputation: 21

Moving the CSS after bootstrap worked for me.

Like this

<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" type="text/css" rel="stylesheet"> <link rel="stylesheet" type="text/css" href="{% static 'css/checkout.css' %}">

Upvotes: 2

Related Questions