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
- [Answered ]-Model person to be able to have 1 or more first names out of which one is primary
- [Answered ]-Updating a model instance via a ModelForm: 'unicode' object has no attribute '_meta'
- [Answered ]-No module name books
- [Answered ]-DRF update resource with serializer with source argument
- [Answered ]-Json recognised as String
Source:stackexchange.com