简体   繁体   English

将Twitter Bootstrap主题应用于Django网站

[英]Applying Twitter Bootstrap theme to Django website

How would I go about installing a Twitter Bootstrap theme such as http://bootswatch.com/flatly/ to an existing Django website? 我如何在现有的Django网站上安装Twitter Bootstrap主题,如http://bootswatch.com/flatly/ I'm quite new to all of this, so I'm a little lost as to where I should begin. 我对这一切都很陌生,所以我对于我应该从哪里开始有点失落。 I'm well acquainted with Javascript, CSS, and JQuery, but I'm not too familiar with Django. 我很熟悉Javascript,CSS和JQuery,但我对Django不太熟悉。

I've looked into demo projects such as https://github.com/dyve/django-bootstrap-toolkit , but I'm not sure where I should begin for an existing project. 我已经研究了https://github.com/dyve/django-bootstrap-toolkit这样的演示项目,但我不确定我应该从哪个项目开始。

Thanks in advance for all your help! 在此先感谢您的帮助!

您可以将css放入static文件夹并在html中调用css

<link rel="stylesheet" href="{{STATIC_URL}}bootstraptheme/css/styles.css">

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM