3. Django Python – Static Files dan Bootstrap

django python bahasa indonesia

1. Static Files

  1. Buat file style.css di direktori static.
body {
   background-color: #FCFCFC;

2. Include-kan style.css di base.html.

{% load static %}
 <link rel="stylesheet" href="{% static 'css/style.css' %}">

2. Bootstrap

  1. Copy file-file bootstrap ke direktori static.
  2. Link kan file bootstrap di base.html.

3. Bootstrap CDN + Starter Template

Opsi lain: menggunakan online source.

Lanjutkan Membaca Materi Lengkap

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.