-1

I created a website (on local host for now), so I linked html with css and my css is ready. I wrote everything, but then the css doesnt show on the website

I opened the inspect element > sources > style.css and I found the css empty, but in vs code it has 1200 lines in Chrome its 0 (I saved the folder after writing the css)

Here is the template code that I used to link with css

<!DOCTYPE html>
{% load static %}
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta content="width=device-width, initial-scale=1.0" name="viewport">
  <link href="{% static 'css/style.css' %}" rel="stylesheet">
Ivan Starostin
  • 8,798
  • 5
  • 21
  • 39
SIDAL
  • 13
  • 6

2 Answers2

0

Changing the server port works for me. First I run this command: py manage.py runserver 3000 And when I tried again: py manage.py runserver ->it starts to work fine.

-1

Try to change the Server Port. For example:

py manage.py runserver 3000
Tyler2P
  • 2,324
  • 26
  • 22
  • 31