All Questions
Tagged with twitter-bootstrap-3 django
161
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 ...
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 ...
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. ...
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, ...
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 ...
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='...
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 ...
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='...
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-...
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 ...
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 ...
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, ...
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....
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 ...
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 ...
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-...
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&...
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>
...
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-...
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 ...
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">
...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
-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&...
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 (...