# Django part 6 tutorial issue

**URL:** https://forum.djangoproject.com/t/django-part-6-tutorial-issue/24610
**Category:** Getting Started
**Created:** [October 18, 2023, 8:22am UTC](https://forum.djangoproject.com/t/django-part-6-tutorial-issue/24610 "2023-10-18T08:22:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![bob\_ination](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@bob\_ination](https://forum.djangoproject.com/u/bob_ination)
#### Post date: [October 18, 2023, 8:22am UTC](https://forum.djangoproject.com/t/django-part-6-tutorial-issue/24610/1 "2023-10-18T08:22:58Z")

</div>

Hey the error I am getting is:

> “GET /static/polls/style.css HTTP/1.1” 404 179"

I have a css file located at: mysite/polls/static/polls/style.css  
and an index.html: mysite/polls/templates/polls/index.html

I have added this at the top of my index.html as instructed in the tutorial:

> {% load static %}  
> \<link rel=“stylesheet” type=“text/css” href=“{% static ‘polls/style.css’ %}”\>

My settings.py contains:

> # STATIC\_URL = ‘static/’  
> STATIC\_URL = ‘/static/’

I have tried both versions and still get the same error.  
I have restarted the server and I have done a hard refresh on the browser.

I have also tried this solution I found on Stack over Flow, but it did not work:

```auto
STATICFILES_DIRS = [os.path.join(BASE_DIR, 'polls/static')]

```

I am not sure what I am doing wrong

---

<div class="post-metadata">

### Author: ![leandrodesouzadev](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/leandrodesouzadev/32/8981_2.png) [@leandrodesouzadev](https://forum.djangoproject.com/u/leandrodesouzadev)
#### Post date: [October 18, 2023, 4:52pm UTC](https://forum.djangoproject.com/t/django-part-6-tutorial-issue/24610/2 "2023-10-18T16:52:40Z")

</div>

Hey there!  
One thing to keep in mind is that Django is actually finding your static file at `polls/style.css`, it’s not serving it apparently. I say it because if you try to use the `{% static some_app/does_not_exist.css %}` you’ll get an error while loading the template, and that does not seem to be the case.

I would recommend that you check if your `DEBUG` setting is defined to `True`, Django will only serve static files when this configuration is set to `True`.  
Another thing is to make sure that you’ve setup the `INSTALLED_APPS` settings correctly as defined on the [part 2 of the tutorial](https://docs.djangoproject.com/en/4.2/intro/tutorial02/#activating-models).

---

<div class="post-metadata">

### Author: ![bob\_ination](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@bob\_ination](https://forum.djangoproject.com/u/bob_ination)
#### Post date: [October 18, 2023, 5:09pm UTC](https://forum.djangoproject.com/t/django-part-6-tutorial-issue/24610/3 "2023-10-18T17:09:38Z")

</div>

Hey,

My debug is not set to true.  
I have set it to false.  
If it is set to false how do we view static files in that scenario ?

Thanks for you input

---

<div class="post-metadata">

### Author: ![leandrodesouzadev](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/leandrodesouzadev/32/8981_2.png) [@leandrodesouzadev](https://forum.djangoproject.com/u/leandrodesouzadev)
#### Post date: [October 18, 2023, 5:37pm UTC](https://forum.djangoproject.com/t/django-part-6-tutorial-issue/24610/4 "2023-10-18T17:37:27Z")

</div>

That’s another topic, this is covered on the [deployment section](https://docs.djangoproject.com/en/4.2/howto/static-files/deployment/) of the documentation.  
But when you’re developing your application you should always have `DEBUG=True` otherwise you won’t be seeing your static files and all of the goodies that comes when the DEBUG mode is set.
