Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

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

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