static css is not fetching style in django
CSS
STATICFILES_DIRS = [os.path.join(BASE_DIR, 'static'), ]First : create static folder in this path (tree path):
-------manage.py
-------db.sqlite3
-------static #this si your static folder!
-------appfolder
Second : put you CSS (or JavaScript or an image) in your static folder like this:
-----static
---------1.css
---------2.js
Third : put this at the bottom of your setting.py file:
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
4th : call your static file in your template:
{ % load staticfiles %}
<link rel="stylesheet" href="src="{ % static "1.css" %}"">
<link rel="stylesheet" href="src="{ % static "1.css" %}"">
It should work.
Note : use { % load static %} at the start of the css file
Also in CSS:
- Title
- disable scroll css
- Category
- CSS
- Title
- css first of type
- Category
- CSS
- Title
- image orientation css
- Category
- CSS
- Title
- css hover
- Category
- CSS
- Title
- jquery add external css to head
- Category
- CSS
- Title
- how to apply different properties to different paragraphs in css
- Category
- CSS
- Title
- border shadow css
- Category
- CSS
- Title
- ::-ms-clear
- Category
- CSS
- Title
- css keep background image from scrolling
- Category
- CSS
- Title
- css transform size
- Category
- CSS
- Title
- generate random grid in css
- Category
- CSS
- Title
- full page background image
- Category
- CSS
- Title
- QAnon Won't believe who
- Category
- CSS
- Title
- css focus change color
- Category
- CSS
- Title
- how to overlay text on an image css
- Category
- CSS
- Title
- add css file to html
- Category
- CSS
- Title
- font color css
- Category
- CSS
- Title
- html5 input required length
- Category
- CSS
- Title
- text shadow css generator
- Category
- CSS
- Title
- background image overlay
- Category
- CSS
- Title
- background color css rgb
- Category
- CSS
- Title
- css in sql query
- Category
- CSS
- Title
- how to style input fields in css
- Category
- CSS
- Title
- comentarios en archivo scss
- Category
- CSS
- Title
- hidden vs visible
- Category
- CSS
- Title
- jQuery remove a CSS style
- Category
- CSS
- Title
- center page css
- Category
- CSS
- Title
- css grid-template
- Category
- CSS
- Title
- css change class name start with
- Category
- CSS
- Title
- spring boot
- Category
- CSS
- Title
- css first td
- Category
- CSS
- Title
- line-height css
- Category
- CSS
- Title
- html font white text with black border
- Category
- CSS
- Title
- css grid gap
- Category
- CSS
- Title
- select second element of type css
- Category
- CSS
- Title
- css grid
- Category
- CSS
- Title
- css font style
- Category
- CSS
- Title
- input type file css
- Category
- CSS
- Title
- how to use visited hover active and visited in css
- Category
- CSS
- Title
- how to cover full image in css
- Category
- CSS
- Title
- ordered list indent
- Category
- CSS
- Title
- center vertically and horizontally css
- Category
- CSS
- Title
- css flex center
- Category
- CSS
- Title
- css padding attribute order
- Category
- CSS
- Title
- how to space out buttons css
- Category
- CSS
- Title
- stop text from wrapping
- Category
- CSS
- Title
- transition prefixes css
- Category
- CSS
- Title
- fontawesome cdn
- Category
- CSS
- Title
- lier class et css
- Category
- CSS
- Title
- orientation css max and min width media query
- Category
- CSS
- Title
- como fazer listrada css
- Category
- CSS
- Title
- add background image css
- Category
- CSS
- Title
- how to create polaroid effect in css
- Category
- CSS
- Title
- vertical align span tailwindscss
- Category
- CSS
- Title
- css selectors w3schools
- Category
- CSS
- Title
- how to change svg image color on hover using css
- Category
- CSS
- Title
- opacity transition in css
- Category
- CSS
- Title
- css overlapping divs
- Category
- CSS
- Title
- static css is not fetching style in django
- Category
- CSS
- Title
- make image darker in css
- Category
- CSS
- Title
- AppData\Roaming\npm\react-native.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
- Category
- CSS
- Title
- large input box bootstrap 4
- Category
- CSS
- Title
- css hide mark border
- Category
- CSS
- Title
- css before after
- Category
- CSS
- Title
- how to get my footer to the bottom of the page using css
- Category
- CSS
- Title
- aliceblue hex
- Category
- CSS
- Title
- Scaling Images and Videos css
- Category
- CSS
- Title
- no select css
- Category
- CSS
- Title
- get element with href css
- Category
- CSS
- Title
- repeat autofill css grid minmax
- Category
- CSS
- Title
- move bullets in css
- Category
- CSS
- Title
- css transition
- Category
- CSS
- Title
- rel css
- Category
- CSS
- Title
- css transition on hover
- Category
- CSS
- Title
- html hide list bullet
- Category
- CSS
- Title
- text underline hover css
- Category
- CSS
- Title
- css font families
- Category
- CSS
- Title
- gradient background css for all browsers
- Category
- CSS
- Title
- avd device reboot
- Category
- CSS
- Title
- comfirm before delete
- Category
- CSS
- Title
- css border style
- Category
- CSS
- Title
- css psedo class
- Category
- CSS
- Title
- css hover rounded corners
- Category
- CSS
- Title
- css bold text
- Category
- CSS
- Title
- overlay in css
- Category
- CSS
- Title
- hide scrollbar html css
- Category
- CSS
- Title
- tint image with background color css
- Category
- CSS
- Title
- css remove list indent
- Category
- CSS
- Title
- list text wont center properly css
- Category
- CSS
- Title
- remove underline from link css
- Category
- CSS
- Title
- tint image css
- Category
- CSS
- Title
- media query min and max
- Category
- CSS
- Title
- css animation library
- Category
- CSS
- Title
- css style scrollbar
- Category
- CSS
- Title
- free css templates
- Category
- CSS
- Title
- w3 link css
- Category
- CSS
- Title
- neomorphic box
- Category
- CSS
- Title
- docker exec bash
- Category
- CSS
- Title
- how to stick a text to a div in css
- Category
- CSS
- Title
- static css in django
- Category
- CSS