django static files for template code example Example: add static file in django STATICFILES_DIRS = [ BASE_DIR / "static", '/var/www/static/', ]