apollo1616

Django安装django-bootstrap3库

命令行安装django-bootstrap3库

pip install django-bootstrap3

配置文件settings.py设置

INSTALLED_APPS = [
	...
	# 第三方应用程序
    \'bootstrap3\'
]
### 安装jquery文件
BOOTSTRAP3 = {
    \'include_jquery\':True,
}

网页中加载bootstrap3的js,css文件

{% load bootstrap3 %}
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Bootstrap Learning</title>
    {% bootstrap_css %}
    {% bootstrap_javascript %}
</head>
<body>
	<div class="page-header">
		<h1>
			Example page header 
			<small>Subtext for header</small>
		</h1>
	</div>
</body>
</html>
发表于 2019-01-19 21:03  阿波罗Apollo  阅读(2290)  评论(0编辑  收藏  举报
 

分类:

技术点:

相关文章:

  • 2021-11-06
  • 2021-11-30
  • 2021-12-06
  • 2021-11-03
  • 2021-11-07
  • 2021-08-30
  • 2021-11-02
  • 2021-12-03
猜你喜欢
  • 2021-11-01
  • 2021-12-18
  • 2021-09-24
  • 2021-11-19
  • 2021-10-07
  • 2021-10-19
  • 2021-08-06
相关资源
相似解决方案