Favicon configuration
List of favicon configurations for different sizes and formats. Supports ICO, PNG, SVG, and Apple Touch icons.
settings.py
Favicon object structure
Each favicon object in the array supports the following properties:Link relationship type. Common values:
icon- Standard faviconapple-touch-icon- Apple device iconshortcut icon- Legacy favicon (ICO format)
Icon dimensions in
WIDTHxHEIGHT format (e.g., 32x32, 180x180).MIME type of the icon file:
image/png- PNG formatimage/svg+xml- SVG formatimage/x-icon- ICO format
Path to the icon file relative to your static files directory.
Complete favicon set
For comprehensive browser and device support, include multiple sizes:settings.py
File structure
Organize your favicon files in your static directory:Recommended sizes
Standard favicons
- 16x16 - Browser tab (legacy)
- 32x32 - Browser tab (standard)
- 48x48 - Windows site icons
Apple devices
- 180x180 - Apple Touch Icon (iOS home screen)
Android devices
- 192x192 - Android Chrome
- 512x512 - Android Chrome (high resolution)
Modern format
- SVG - Scalable vector icon (recommended for modern browsers)
SVG favicon
SVG favicons are scalable and support theme colors:favicon.svg
settings.py
Generating favicons
Tools for creating favicon sets:- RealFaviconGenerator - Generate complete favicon sets
- Favicon.io - Simple favicon generator
- Figma - Design custom icons
Static files setup
Ensure static files are properly configured:settings.py
Browser caching
Favicons are heavily cached by browsers. To force updates:- Clear browser cache
- Add a version query parameter:
settings.py
If no favicons are configured, browsers will look for
/favicon.ico at your site root.