Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Problem with static files

4 views
Skip to first unread message

Ewa Adamus

unread,
Mar 30, 2025, 3:47:21 PMMar 30
to django...@googlegroups.com
Hi everybody,

I have problem with my static files in my Django project, running local. Actually Django-Oscar, but settings files is Django.  There are not founded (404 error). I have all my static files in ‘static’ in my project directory (where 'manage.py' is).
My settings:

STATIC_URL = 'static/'

STATIC_ROOT = BASE_DIR / 'static'

In my templates:

{% load static %}

<link href="{% static "main.css" %}" rel="stylesheet">

<link rel="shortcut icon" href="{% static "logo3.gif" %}" />

I stuck with that problem. Earlier in my Django simple project, all was ok. So my settings should be right. 

Any help will be appreaciate. Or any idea how to check, in simple way, what is wrong with my static loading

With all the best 


Ewa


Reply all
Reply to author
Forward
0 new messages