Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Setting Up Stylesheet Django

{% load static %}
<!DOCTYPE html>
    <head>

        <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
        <link rel="stylesheet" href="{% static 'css/blog.css' %}">
   
    </head>
<body>second second
<div class="container">
this now works
</div>  
    </html>


#the stylesheet is located in static/css/blog.css
 
PREVIOUS NEXT
Tagged: #Setting #Up #Stylesheet #Django
ADD COMMENT
Topic
Name
6+5 =