Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Bootstrap: Getting Started | Templates
Django: Build Your First Website

book
Bootstrap: Getting Started

Bootstrap is a powerful CSS framework for building responsive and visually appealing web pages and applications, making the development process smoother and more efficient. If you're working with Django, integrating Bootstrap can significantly enhance your user interface.

Getting Started

You don't need to download Bootstrap if you want to leverage its features through a CDN. Add the following code snippet to the <head> section of your HTML file:

html

base.html

copy
<!-- base.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}My Site{% endblock %}</title>
<!-- Start Bootstrap CDN -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
<!-- End Bootstrap CDN -->
</head>
<body>
<!-- Main content of the page will be inserted here -->
{% block content %}{% endblock %}
</body>
</html>

Using Bootstrap

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 5. Розділ 4
We use cookies to make your experience better!
some-alt