參考文檔: https://docs.djangoproject.com/en/1.9/howto/static-files/html
INSTALLED_APPS = [ ... 'django.contrib.staticfiles', ... ]
STATIC_URL = '/static/' STATICFILES_DIRS = [ os.path.join(BASE_DIR, "static"), ]
{% load staticfiles %} <img src="{% static "my_app/myexample.jpg" %}" alt="My image"/>