css django

51

STATICFILES_DIRS = [
    BASE_DIR / "static",
    '/var/www/static/',
]
{% load static %}

<link rel="stylesheet" type="text/css" href="{% static 'polls/style.css' %}">
  <head>
    <link rel="stylesheet"  href="{%  static  'css/style.css'  %}">
    <title>Linguist</title>
  </head>
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR,  'static')

Comments

Submit
0 Comments