Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Images In 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
<img src="{% static 'images/myimage.jpg' %}"/>
</div>  
    </html>
    #almost the same as stylesheets except different folder name. The folder names were self made.
Comment

PREVIOUS NEXT
Code Example
Python :: clear text box tkinter python 
Python :: how to find the number of times a number appears in python 
Python :: how to use google sheet link in pandas dataframe 
Python :: adding static file and its usage in Django 
Python :: sqlite3 delete row python 
Python :: python remove element from list 
Python :: sum of any numbers in python 
Python :: csrf token fetch django 
Python :: how to use inverse trigonometric functions in python 
Python :: delete spaces in string python 
Python :: python input function 
Python :: generate random number from range python 
Python :: adf test python 
Python :: logistic regression algorithm in python 
Python :: python get pixel color from screen 
Python :: pandas row from dict 
Python :: pyspark overwrite schema 
Python :: integer to datetime python 
Python :: django orm count 
Python :: sort by multiple keys in object python 
Python :: merge two dictionaries in a single expression 
Python :: In file included from psycopg/psycopgmodule.c:28:./psycopg/psycopg.h:35:10: fatal error: Python.h: No such file or directory35 | #include <Python.h| ^~~~~~~~~~compilation terminated. 
Python :: correlation analysis of dataframe python 
Python :: mediafileupload python example 
Python :: datetime to int in pandas 
Python :: how to check if text is in upper case in python 
Python :: curl python 
Python :: change column names with number pd dataframe 
Python :: how to convert cost to float in python 
Python :: how to make a venv python 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =