Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to add stylesheet in django

  <head>
    <link rel="stylesheet"  href="{%  static  'css/style.css'  %}">
    <title>Linguist</title>
  </head>
Comment

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
Comment

PREVIOUS NEXT
Code Example
Python :: python run powershell command and get output 
Python :: train-test split code in pandas 
Python :: how to check a string is palindrome or not in python 
Python :: python check if string in string 
Python :: pandas row sum 
Python :: concatenate list of strings 
Python :: convert list to set python 
Python :: python async await run thread 
Python :: get all files in pc python 
Python :: concatenating datfra,esin pandas 
Python :: python asyncio gather 
Python :: ModuleNotFoundError: No module named 
Python :: python elapsed time module 
Python :: or statement python 
Python :: filter dict by list of keys python 
Python :: Program to Compute LCM 
Python :: python split list 
Python :: create a virtualenv python3 
Python :: translate french to english 
Python :: get country from city python 
Python :: python split string keep delimiter 
Python :: kpss test python 
Python :: glob python 
Python :: python cv2 write to video 
Python :: overriding update in serializer django 
Python :: convert negative to positive in python 
Python :: os.chdir go back 
Python :: lasso regression 
Python :: beautifulsoup import 
Python :: ip validity checker python 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =