Questions tagged [django-bootstrap3]

59 questions
7
votes
1 answer

Best Way to Use Borders Bootstrap 3

I am just having fun building my own stuff with bootstrap. I am wondering what is the best way to add a border to a container with Bootstrap 3? I am having a hard time finding built in functionality in bootstrap and I am wondering what the best way…
Dave
  • 89
  • 1
  • 1
  • 6
3
votes
2 answers

Invalid block tag - bootstrap-form, expected endblock

I am working on a django project, but for some reason the template I am using brings up an invalid block tag error. I have looked at some other similar questions, but nothing seems helpful, so if you can see the problem please do tell me.Here is the…
Milo.D
  • 355
  • 1
  • 4
  • 15
3
votes
3 answers

Modal doesn't open with django

I'm having a little problem with a modal in django. I have a link which calls an id and the id is a modal. However, the modal isn't opening. I'm pretty sure that this is happening because the link is inside a "automatic" form, but I'm new in django…
3
votes
2 answers

How can I add javascript file to my ModelForm in django?

I want to display a separate div tags based on the selection of dropdown, I am using ModelForm to create my template. I am not sure how to add a javascript in my ModelForm. forms.py class CustomerForm(forms.ModelForm): name =…
itsecurity
  • 49
  • 1
  • 2
  • 8
2
votes
1 answer

django_bootstrap5 not formatting anything

I'm trying to get basic bootstrap formatting working in a django app, and installed django_bootstrap5 to do so. No formatting, however, is getting applied to any of the pages. Here's the various pages: base.html: {% load…
2
votes
1 answer

django template set all columns of a table at the same size

here is my templates, and what they display : template.html
{% for field in fields %} {% if field !=…
2
votes
1 answer

How to add custom image as Logo with Bootstrap class navbar-brand in Django?

Many thanks for your support.I am a newbee to Django and Bootstrap. When I downloaded a bootstrap template it came with a logo.png.If I point to this image with below code all works
chilledout
  • 23
  • 1
  • 5
2
votes
1 answer

I can't seem to figure out why my hamburger button wont work on my nav bar

I was wondering if anyone knew why my hamburger button wont drop down on my navbar? I am not sure if I am not uploading the right JS files or what? I also have a scrollspy function in my JS file as well.
Gkata
  • 21
  • 1
  • 2
2
votes
3 answers

Get value of bootstrap-tagsinput while on change event in jquery using bootstrap3

I am using bootstrap3. I need to get value of tagsinput while on change event in jquery. I mentioned the belpow code i am not able to get those…
Python Team
  • 1,143
  • 4
  • 21
  • 50
2
votes
2 answers

Can't change inactive color of bootstrap button text

I am new to bootstrap,css and html, but it seems pretty friendly so far. I have some button troubles and I'm not sure what to think. Mainly, I want the text in the button to be black and then only underline on hover. I tried doing some inl ine css…
ThisGuyCantEven
  • 1,095
  • 12
  • 21
1
vote
2 answers

data-keyboard="false" doesn't work in bootstrap for the following code

I dont want the esc key to toggle my dropdown. so I added the data-keyboard="false". But that doesn't seem to work and my code still toggles on esc key. code: https://jsfiddle.net/4dkfj63v/21/
1
vote
2 answers

Site on django doesn't load static

My site on django doesn't load static files base.html: {% load static %}