// template.html <link rel="stylesheet" href="{% static '/bulma-css/bulma-divider.min.css' %}" type="text/css"> <link rel="stylesheet" href="{% static '/bulma-css/bulma-switch.min.css' %}" type="text/css"> <link rel="stylesheet" href="{% static '/bulma-css/bulma.min.css' %}" type="text/css"> <link rel="stylesheet" href="{% static '/css/main.css' %}" type="text/css"> // settings.py STATIC_URL = '/static/' STATIC_ROOT = 'avon/static' STATICFILES_DIRS = [ os.path.join(BASE_DIR, "static") ] // views.py def template(request, self): return render(request, "template.html") // urls.py urlpatterns [] + 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