My app is experiencing an issue with using a CSS file, even though I have followed tutorials on how to configure it. In the root urls.py file of the site (not belonging to any specific app), I have added:
(r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.STATIC_DOC_ROOT}),
Within the template, I am referencing the CSS file like this:
<link href="/site_media/default.css" rel="stylesheet" type="text/css" />
I have also specified the STATIC_DOC_ROOT in the settings:
STATIC_DOC_ROOT = '/site_media'
Despite following these steps, something seems to be going wrong. Can anyone help me troubleshoot this? Thank you.