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