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 diffie hellman 
Python :: pyplot legend outside figure 
Python :: string list into list pandas 
Python :: wait for page to load selenium python 
Python :: drop duplicates pandas first column 
Python :: Python program that takes 2 words as input from the user and prints out a list containing the letters that the 2 words have in common 
Python :: scroll to bottom in selenium python 
Python :: 2 d array in python with zeroes 
Python :: How to create an infinite sequence of ids in python? 
Python :: masking function pyspark 
Python :: numpy array heaviside float values to 0 or 1 
Python :: raatatatatatatatatatatatatatatatatatatatatatatatatatatattatana 
Python :: python regex to match ip address 
Python :: python sort file names with numbers 
Python :: .annotate unique distinct 
Python :: matplotlib axes limits 
Python :: python die 
Python :: join pyspark stackoverflow 
Python :: get package share vs FindPackageShare 
Python :: flask import jsonify 
Python :: load csv file using pandas 
Python :: pygame tetris game tutorial 
Python :: how to cycle through panes in tmux 
Python :: virtual env in python 
Python :: plt.savefig without showing 
Python :: python seconds counter 
Python :: pyqt5 qtwebenginewidgets not found 
Python :: use of the word bruh over time 
Python :: redirect django 
Python :: python alphabet string 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =