I have a template that renders an image:
{% load staticfiles %}
The im
Make folder "staticfiles" in root of your project where settings.py exists
In staticfiles you can go this way..
In settings.py
STATIC_ROOT = os.path.join(PROJECT_DIR,'static')
STATIC_URL = '/static/'
STATICFILES_DIRS = (
os.path.join(PROJECT_DIR,'staticfiles'), # if your static files folder is named "staticfiles"
)
TEMPLATE_DIRS = (
os.path.join(PROJECT_DIR,'template'), # if your static files folder is named "template"
)
In base.html
In other template files in which you include base.html
{% extends "base.html" %}
{% load static %}