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

Python Django Basics Django Templates Static Assets

css is given 404.

I've tried many ways in my local and workspaces. I'm getting 404 . https://teamtreehouse.com/workspaces/36699472 https://github.com/yunielgarcia/learning_site.git

nakalkucing
nakalkucing
12,964 Points

Hey Yuniel! I'd love to help... But when I click on the link you gave it tells me that the page I am looking for doesn't exist. Could you check it out and see if you could fix the link? Thanks :)

2 Answers

Jaan Talvet
Jaan Talvet
4,950 Points

I'm getting the same thing. i'm using a local development environment with Django 2.1

In my case, I mistyped STATICFILES_DIRS - check your spelling and also whether assets/css/layout.css exists

STATICFILES_DIRS = (
    os.path.join(BASE_DIR, 'assets'),
)