//settings.py
STATICFILES_DIRS = [
BASE_DIR, "static",
]
//urls.py
from django.conf import settings
from django.conf.urls.static import static
+ static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter