hi! i still cant make it work. this is my html snippet and the .css is located at static/pages/frame.css.
when i run the server the browser displays the hard coded html but not the style. console says "GET /static/frame.css HTTP/1.1" 404 1651
<!DOCTYPE html>
{% load static %}
<html>
<head>
<meta charset="UTF-8">
{% block css %}
<link rel="stylesheet" href="{% static 'frame.css' %}" />
{% endblock %}
אורי <uri@speedy.net> ezt írta (időpont: 2019. dec. 2., H, 3:33):
Hi,Look at these templates for example:--On Mon, Dec 2, 2019 at 3:26 AM Leó Horváth <horvath.leo2001@gmail.com> wrote:Hi guys, I am experiencing an error while trying to Link a .css file to a Html template of one of my Views. What is the correct way to do it?--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b37e10ec-3b9d-4178-8757-1d0277f6cd15%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABD5YeHFgym3pJ4Q5_gE3ATWJiVJ9KDnoBCN8UqM0%2BhWPxXpbg%40mail.gmail.com.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJBcW0w3qc8OcDgCJAFKrr881%2B2wyAyY3ENH6%3D2bi%2Bn%2BFALBDA%40mail.gmail.com.
No comments:
Post a Comment