[Answered ]-Django css setup not working

2👍

When you view the page’s source code from what path is it trying to load your style?

Try this – <link rel="stylesheet" href="{% static "style.css" %}" />

Also I would change MEDIA_ROOT and STATIC_ROOT to MEDIA_ROOT = os.path.join(BASE_DIR, 'media') and STATIC_ROOT = os.path.join(BASE_DIR, 'static'). This way both paths are being built by the system and it’s harder to mess up.

👤4140tm

Leave a comment