Skip to main content

All Questions

0 votes
2 answers
107 views

Bootstrap grid content position

I have the following code for django-oscar <ul class="row"> {% for product in products %} <li class="col-xs-6 col-sm-4 col-md-3 col-lg-3">{% render_product product %}</li&...
Hyun Kyu Han's user avatar
0 votes
0 answers
132 views

Django/Bootstrap RadioButton Rendered appears to be disabled

I am using Django1.8.6 along with django-bootstrap3. This is my model for companies to set there program status and privacy class CompanyInformationSetting(models.Model): PROGRAM_PRIVACY = ( ('...
Aman Raparia's user avatar
5 votes
1 answer
9k views

Different css margins for mobile & desktop without multiple {% block content %} in Django template

I need to change the margin-left that is applied to my main {% block content %} in my base.html template (that contains my navbar and other common elements) based on if the viewer is using mobile or ...
TimJ's user avatar
  • 399
0 votes
0 answers
426 views

crispy forms + Bootstrap3: bad position of error field with input-group-addon

When using a input-group-addon, when there's an error, the span element of the error is wrapped by the input-group-addon: the html: <div class="controls col-md-6 input-group"> <input name=...
ThePhi's user avatar
  • 2,523
1 vote
1 answer
55 views

Ajax issue of Django user login using bootstrap 3.x modal

My purpose is once modal form submitted, ajax pass the username and password to a view and get back the json info to update the modal form, I trace the djanog code ,and 100% sure the JsonResponse(...
wu peter's user avatar
0 votes
1 answer
374 views

Post action not working in form inside bootstrap popover

I am trying to save a url from an input field(form is inside bootstrap popover)but nothing happens when I click save button. This is my html code: <div id="popover-content" class="hide"> <...
Rashi Goel's user avatar
1 vote
1 answer
2k views

Django CreateView messes up bootstrap-modal

Rather a curious problem: My modal works perfectly until I associate the template containing it with a CreateView! So for example if I change template_name in BrandCreateView to new_brand_form1.html, ...
zerohedge's user avatar
  • 3,555
-1 votes
1 answer
103 views

bootstrap3, django: pull-right didn't work

I am facing a problem building a django project: the pull-right class in bootstrap 3 didn't work in django template pull-right here is my code {% block content %} <div class="row"> <...
Mosaab Ehab'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
0 votes
1 answer
51 views

Overflow after inserting image in column

I know this is a one setting issue but I'm quite new and don't know what the exact terminology to get the answer i'm looking for. I'm using Bootstrap-3.3.7 on Django 1.11 When I insert an image the ...
Mr Panda's user avatar
  • 101
2 votes
3 answers
3k views

How to load css as static in Django

Hi I have the following structure in my project: myapp ├── app │   ├── app | | ├── settings.py │ │ ├── [...] │   ├── templates │   │   ├── base.html │   │   ├── my_test.html │   └── app2 │   ...
nicksheen's user avatar
  • 582
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
0 votes
0 answers
414 views

Bootstrap Form Control - Django Form HTML

I've been having trouble adding HTML for Form Control to my Django form. I know (from other features) that I have Bootstrap properly integrated into the project. No fields are showing when I try to ...
user7518095's user avatar
0 votes
2 answers
2k views

How to override bootstrap cdn in Django?

I'm new to Django, and even more so to CSS. In the base.html of my site I included a bootstrap cdn as follows: <meta charset="UTF-8"> <link rel="shortcut icon" href="{% static '...
Shoval Sadde's user avatar
  • 1,182
0 votes
1 answer
584 views

Django with Bootstrap 2nd Modal (or subsequent modals) not working

Using the Django for loop It am generating a paginated list from the database. This works. The generated list has a delete button to the right of each entry. At the same page load I an using the the ...
Tony Sherman's user avatar

15 30 50 per page
1 2
3
4 5
11