I know there are a ton of similiar threads on SO with actually the same question - but I can't solve my problem
Django Version
>>> import django
>>> print django.get_version()
1.6.2
I want to access static files (css, images, ..) from a template.
<link rel="stylesheet" type="text/css" href="styles.css" />
My folder structure
Project
|-- Project
|-- settings.py
|-- ...
|-- app
|-- views.py
|-- ...
|-- templates
|-- a_template.html
|-- static
|-- styles.css
settings.py (important parts)
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'server',
)
STATIC_URL = '/static/'
I tried a lot different solutions for STATIC_URL
(even absolute paths) but none of them worked for me.