Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Akhilesh Gandhe](https://secure.gravatar.com/avatar/cc5a30e7521114b8dbc10cd13e14283b?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Akhilesh Gandhe
1,177 PointsDoubt with static files library
Here one thing I cannot understand is that in the work space is that we have different files for layout.html and home.html but here in the objective test all are in one place..am getting confused and also here {% block title %} hello {% endblock %} it is like this {% block content %} <h1> welcome </h1> {% endblock %} I could not understand this as I am new to the Django. Finally what it is being asked in the objective
Please help me with this Thanks
{% load static from staticfiles %}
{% extends 'base.html' %}
{% block static %}
<link rel="stylesheet" href="css/style.css">
{% endblock %}
{% block content %}
{% for article in articles %}
{{ article.headline }}
{% endfor %}
{% endblock %}
1 Answer
![Jeff Muday](https://uploads.teamtreehouse.com/production/profile-photos/5900142/micro_jeff_face.jpg)
Jeff Muday
Treehouse Moderator 28,718 PointsCheck out this reference page: https://docs.djangoproject.com/en/2.0/howto/static-files/
static builds the real path to your stylesheet.
{% load static from staticfiles %}
{% extends 'base.html' %}
{% block static %}
<link rel="stylesheet" href="{% static 'css/styles.css' %}">
{% endblock %}
{% block content %}
{% for article in articles %}
{{ article.headline }}
{% endfor %}
{% endblock %}