[Answered ]-Django1.8 cannot include css, js files in template

1👍

I got the media files !!.. I added in settings.py

STATICFILES_DIRS = ( os.path.join(BASE_DIR,"static"),  
                    '/var/www/test_media/', )  

& changed in index.html

{% load staticfiles %}
<link rel="stylesheet" href="{% static "css/style.css" %}" >  
<script src="{% static "jquery/jquery.js" %}"></script>  

1👍

You need to setup and use the static files by first setting STATIC_ROOT and STATICFILES_DIRS to say where the files are and should go

Leave a comment