Skip to main content

All Questions

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
0 votes
0 answers
52 views

Django: Bootstrap 3 modal darkens when being clicked

This is a quiz app where several quiz can be added to a particular topic. However, when I click on the button to start the quiz, the modal asking for confirmation pops up but in a darkened way. It ...
Alpha's user avatar
  • 217
0 votes
1 answer
165 views

Django modal bootstrap not displaying

I have been blocked on this problem for several days. I have bootstrap 3.3.7 in the project root folder. I am rendering some buttons in the django template that should open modal windows when clicked. ...
psolomon's user avatar
  • 173
0 votes
2 answers
515 views

Django + Bootstrap modal form still shows Djangos default errors, not bootstrapped errors?

I am struggling with displaying bootstraps form errors in a popup form modal. When I submit the form, with some missing required fields, I am still getting Django's built in basic form error messages, ...
master_j02's user avatar
0 votes
1 answer
274 views

Django + Bootstrap collapsed table front-end issue?

I have been trying to figure out a front-end issue I've been on for a few days. I am using Django + Bootstrap collapsed accordion. What I am trying to do is completely hide a div, and all spacing ...
master_j02's user avatar
0 votes
1 answer
110 views

DJANGO initial values in form not shown in template (some do some don't)

I have these Models, Tipos, Prioridad and Estado, related to Tarea as defined below: class Tipos(models.Model): tipo = models.CharField(max_length=16, verbose_name='...
carolvs's user avatar
  • 13
0 votes
0 answers
69 views

Djnago: Bootstrap3 form dropdown options display issue

I am using bootstrap3 in django template to display dropdown menu so that user can select the option they chooses. After selecting the option, selected option is not displaying clearly. See below ...
sreekanthkura7's user avatar
2 votes
1 answer
346 views

Python Django multiple attributes in search

So I have this search form: [Doctor][Specialty][City] This is the form in HTML: <form data-provide="validation" data-disable="true" class="input-glass mt-7" method='POST' action='...
Kaiss B.'s user avatar
  • 317
0 votes
1 answer
110 views

Django dropdown menu not working with tag 'load bootstrap3'

I am creating a website with django and I have a dropdown menu like this: <li class="dropdown"> <a data-toggle="dropdown" href="#">{{ user.username }}</a> <ul class="dropdown-...
Yacine Rouizi's user avatar
0 votes
1 answer
547 views

How to show popup "Success" or "Error" after I clicked the update button in which it is a modal

I am working on this employee registration project and Im not exactly sure how to implement this one on django. How could I show popupbox or like a small modal box "Success" or "Error" after I ...
Asmodeus Glaive's user avatar
0 votes
1 answer
180 views

Adding dropdown to bootstrap3 nav bar

I'm working with bootstrap3 and django. I want to update my navbar to add a dropdown list of links in my navbar on the right . My bootstrap code: <!-- Navigation --> <nav class="navbar ...
user1592380's user avatar
  • 35.5k
0 votes
1 answer
477 views

Create a Bootstrap accordian for items in a python for loop

I am trying to create a Bootstrap accordian for a list of items in a Django database. When rendered, currently my code will only collapse and expand on the first item in the for loop. For other items, ...
Jon's user avatar
  • 25
0 votes
1 answer
946 views

How fix to upload image from bootstrap modal form in django

I can not find the information how to load image through django modal form. How to upload a file through a django modal form? my file models.py class Meal(models.Model): restaurant = models....
Nick Seniytitch'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
0 votes
0 answers
58 views

How to trigger jquery on bootstrap 3 modal close

I have a django project with the following hidden modal embedded in the page, which is displayed on form submit: <div class="modal fade" id="thanksModal" tabindex="-1" role="dialog" aria-...
user1592380's user avatar
  • 35.5k
1 vote
1 answer
64 views

Set if error condition for value attribute

In the following template code, I set value="{{ form.title.value }}" and it displays as I intended, <div class="form-group"> <label for="title" class="col-sm-1 control-label">Title&...
Wizard's user avatar
  • 21.3k
0 votes
2 answers
47 views

Both `name="button"` and `name="submit" work properly in the form

When working in Django, Both name="button" and name="submit" work properly when I submit the form {% buttons %} <button name="button" class='btn btn-primary'>Save</button> ...
Wizard's user avatar
  • 21.3k
0 votes
1 answer
195 views

Bootstrap alert closing on page load

I have a view in which I send some messages, like this: messages.warning(request, 'Nothing found") In my settings.py I have edited the message tags like: MESSAGE_TAGS = { messages.DEBUG: 'alert-...
Onilol's user avatar
  • 1,333
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
0 votes
0 answers
150 views

Enable markdown to render text submitted from a form

When employ the bootstrap in Django to format the form, it display nicely. {% for entry in entries %} <div class="panel panel-default"> <div class="panel-heading"> ...
Wizard's user avatar
  • 21.3k
0 votes
1 answer
359 views

Wrap button in `{% buttons %}`

I learns the button from bootstrap with Django template {% buttons %} <button name="button" class="btn btn-primary">log in</button> {% endbuttons %} I test it make no difference when ...
Wizard's user avatar
  • 21.3k
0 votes
2 answers
2k views

bootstrap collapse span is breaking lines when it shouldn't be

I am having a difficulties with a bootstrap collapse button, I am trying to stop a line from breaking after the collapse button. I saw this thread at stackoverflow answer which gives the answer that ...
user3655574's user avatar
0 votes
0 answers
450 views

Bootstrap javascript not working in Django

I downloaded bootstrap and configured it in my Django application and everything was good after sometime the JavaScript stopped working but the CSS is working. I don't know what is wrong with it. The ...
ade desmond'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
0 votes
1 answer
729 views

Which bootstrap column is the mouse hovering over?

I'm making a `django` website, where I have to change the color of text and make a box appears when hovering over their bootstrap column. The problem I'm having is trying to individually refer to the ...
timtti's user avatar
  • 25
4 votes
2 answers
5k views

Django: Bootstrap CDN or loading Bootstrap files from local server?

I am trying to make my first website. I am using Django for it. I have a question related to the inclusion of css/js from Bootstrap. What is the difference between installing it and linking it using ...
Hamid Khan's user avatar
0 votes
1 answer
542 views

Loading form from URL in Bootstrap 3 (Django)

I have a form in a url. I want to load it in an existing page. I'm following this tutorial https://www.abidibo.net/blog/2014/05/26/how-implement-modal-popup-django-forms-bootstrap/ This is the form ...
Kotlinboy's user avatar
  • 3,885
-2 votes
1 answer
1k views

jquery not working on django

jquery does not work on django project I used with bootstrap. please help me .html <div class="domains-slider marquee"> <ul> <li><a href="#">BTC/USD</a&...
Ömer's user avatar
  • 131
0 votes
1 answer
69 views

JQuery: div class-specific hover not working with bootstrap css

Context: Developing a "google-calendar-like" hardware booking tool at work using DJango. View reservations (their time slot and reserving user). Click empty space to create another reservation (...
Patrick Dallaire's user avatar

15 30 50 per page
1
2 3 4 5 6