Questions tagged [django-bootstrap5]

django_bootstrap5 can be installed via pip as pip install django-bootstrap5 or through conda as conda install -c conda-forge django-bootstrap5.

Please note this is not the same as django_bootstrap_v5, which is a similarly named packaged endeavoring to accomplish the same goals, but has different syntax.

5 questions
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…
1
vote
1 answer

ModuleNotFoundError: No module named 'bootstrap5' getting this error after moving my django project to docker

Hi I just moved my Django project on the docker. And created an image successfully. But when,I tried running it using docker run -p 8000:8000 my-django-app I am getting the error Watching for file changes with StatReloader Exception in thread…
1
vote
1 answer

combine "url" tag with "bootstrap_button" tag?

I can't get this incantation right. I want a button that acts like a link. I'm using django-bootstrap5, which has a nice {% bootstrap_button %} tag. But I can't figure out how to use django's {% url %} tag to supply the href value. This clearly…
Chris Curvey
  • 9,738
  • 10
  • 48
  • 70
0
votes
1 answer

How can I use the FloatingField function with an email input in Django crispy forms with Bootstrap 5?

I have a Django project where I'm using crispy forms with the Bootstrap 5 version. https://github.com/django-crispy-forms/crispy-bootstrap5 I have two floating fields for the username and password input, but I also need to add an email…
0
votes
1 answer

How to indicate required fields on initial form render, using Bootstrap 5 styling and Django?

I am using Django 4.1 and Bootstrap 5. I think I'd like to mark required fields in a form as required, or maybe optional fields as optional, as suggested in this question. Django/Bootstrap already styles fields as green/red after form submission, if…
dfrankow
  • 20,191
  • 41
  • 152
  • 214