Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Cannot get Django-Bootstrap-Toolkit working on my project

Cannot get Django-Bootstrap-Toolkit working on my project

Problem

Just started to learn Django and Twitter Bootstrap on some project. I use external links to connect css and js files of bootstrap, but today I found Django-Bootstrap-Toolkit, so I wonder how to switch my project to it.

project folder:

myproject/
     /bootstrap_toolkit/
     /myproject/
     /templates/
     /someapp/
     /manage.py

settings.py

 INSTALLED_APPS = (
...
'someapp',
'bootstrap_toolkit',
...)

templates/base.html

{% load bootstrap_toolkit %}




{% block title %}{% endblock %}
...


So, if I'm deleting link tag, all the CSS disappears, so, I wonder what I've done wrong, and my toolkit is not connected?

Problem courtesy of: Sykes

Solution

If you're using bootstrap3, according to the documentation you should instead use this package: https://github.com/dyve/django-bootstrap3

Regarding the CSS files: I have never used either of those packages but you definitely have to have a link to the bootstrap static files somewhere. So just don't remove the link tag and you're fine!

Solution courtesy of: ptrck

Discussion

View additional discussion.



This post first appeared on CSS3 Recipes - The Solution To All Your Style Problems, please read the originial post: here

Share the post

Cannot get Django-Bootstrap-Toolkit working on my project

×

Subscribe to Css3 Recipes - The Solution To All Your Style Problems

Get updates delivered right to your inbox!

Thank you for your subscription

×