Skip to main content

All Questions

58 questions with no upvoted or accepted answers
3 votes
0 answers
2k views

Django Crispy Forms Inline Fields in Horizontal Form

I want to be able to do the ff: I was following this SO answer. However, I can't fully implement how I want it. I have the following set-up: self.helper.form_class = 'form-horizontal' self.helper....
user2853084's user avatar
3 votes
0 answers
2k views

Change width for an input on Bootstrap3 horizontal forms

Reading django-crispy-forms I noticed than: The way you do horizontal forms in Bootstrap version 3 is setting some col-lg-X classes in labels and divs wrapping fields. This would mean a lot of ...
dani herrera's user avatar
  • 50.9k
2 votes
0 answers
244 views

Styling an Accordion Table

I made this accordion table using bootstrap accordion. It works well, but it looks terrible. The way I have it set up is a nested accordion. the code can be seen as follows: <!DOCTYPE html> &...
Big_VAA's user avatar
  • 774
2 votes
0 answers
677 views

Handling post back of Django all-auth in bootstrap 3 modal popup in Django App

I am using the Django All-Auth app in my Django website with bootstrap 3 navbar template where in the Log In button is in the navbar on the top-right. The navigation is in a different file navbar.html ...
Jayesh's user avatar
  • 1,513
2 votes
1 answer
383 views

Prevent django widthratio calculating more than 100 %

Im trying to put together a bootstrap 3 progress bar with multiple percentage values (see docs example). The combined value of all the values can not be more than 100%, but django is rounding up, and ...
Tomas Jacobsen's user avatar
2 votes
1 answer
681 views

Correct workflow for modal forms in django (example from 'effective django')

The example setup from the 'effective django' tutorial works in the following manner: On the contacts_list page, the user clicks 'delete'. The DeleteView re-directs to the confirm delete page. The ...
user2963197's user avatar
1 vote
1 answer
229 views

How to highlight the current section

When navigating in the menu bar, some of the options are not selected. I have tried to do it with JQuery but my attempts are in vain. Briefly what I am looking for is that if the user clicks Home Page ...
Martin Vargas's user avatar
1 vote
1 answer
200 views

Django in template using if tag compare one variable with a number always give false

I first use widthratio tag to calculate a ratio percentage number and assgign it to a variable named Ratio Then when I try to compare it with an integer in if and elif tag, the if and elif tag seems ...
Whilding Tso's user avatar
1 vote
1 answer
945 views

Bootstrap 3 display 3 blog posts in each row using in Django templates

I'm working on a project using Django(2.1.7) and Bootstrap (3.1), I need to display 3 blog posts in each row: Note: I have taken a look at various related questions but couldn't find any solution ...
Abdul Rehman's user avatar
  • 5,546
1 vote
0 answers
710 views

ugettext_lazy/pgettext_lazy not working in Django sub-application

I am translating a Django site with a sub-application. Let's say the top level site is called 'main_site' and the sub application is called 'sub_app'. In main_site, I am using only trans and ...
buzzdriving's user avatar
1 vote
1 answer
81 views

My repeated HTML Bootstrap collapse function only works for the first set

So I'm creating a page that is a directory where each issue has a set of articles and authors. I'm implementing a function that cuts a list of articles after its fourth element and collapses the ...
Marie Konopacki's user avatar
1 vote
0 answers
228 views

difficulty with bootstrap container - django-bootstrap3

How can I fix this problem without removing the bootstrap template tags? Context: I have the following template schema: layout.html is my base template And I have another templates which inherit ...
bgarcial's user avatar
  • 3,153
1 vote
0 answers
252 views

django view i get this error Synchronous XMLHttpRequest

went i run this code y get this error in the browser error browser chrome Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. ...
Hitokirilv4's user avatar
1 vote
0 answers
456 views

Bootstrap Modal not closing in Safari

I have an issue with bootstrap where Modals are not closing upon form submission in Safari but it is fine in Chrome. Note this is a Django project but I don't think that is the issue. Also I am using ...
Ryan Rushton's user avatar
1 vote
0 answers
107 views

Using Mathjax in multiple spots (different bootstrap tabs) on webpage causes error

I am making a website with Django. I am using Bootstrap for scaffolding, and I have some Bootstrap tabs on this one page. One of the tabs has a div with math which utilizes MathJax, and another tab ...
tscizzle's user avatar
  • 11.9k

15 30 50 per page