Code Monkey home page Code Monkey logo

django-bootstrap4's Issues

Parameter "form" should contain a valid Django Form.

Here's something I have:

<form action="." method="POST" enctype="multipart/form-data">
                  {% csrf_token %}
                  {% bootstrap_form userform %}
                  {{ formset.management_form }}
                  {% bootstrap_form formset %}
                  <div class="form-group">
                    <input type="submit" name="Update" value="Update" class="btn btn-primary" />
                  </div>
</form>

I get the error: Parameter "form" should contain a valid Django Form.. I guess django-bootstrap4 doesn't support formsets, right?

Can't install

I get the following result:

pip install django-bootstrap4
Collecting django-bootstrap4
Could not find a version that satisfies the requirement django-bootstrap4 (from versions: )
No matching distribution found for django-bootstrap4

Other packages work just fine

radio buttons template outdated

Hello,

I tried this project with some radio buttons and the template need some changes:

  • form-group does not work with radio button, they need form-check
  • the label should have the class form-check-label, for now they have none

I pasted the example from the bootstrap doc to explain better:

<fieldset class="form-group row">
  <legend class="col-form-legend col-sm-2">Radios</legend>
    <div class="col-sm-10">
      <div class="form-check">
        <label class="form-check-label">
          <input class="form-check-input" type="radio" name="gridRadios" id="gridRadios1" value="option1" checked>
            Option one is this and that&mdash;be sure to include why it's great
        </label>
      </div>
      <div class="form-check">
        <label class="form-check-label">
          <input class="form-check-input" type="radio" name="gridRadios" id="gridRadios2" value="option2">
            Option two can be something else and selecting it will deselect option one
        </label>
      </div>
      <div class="form-check disabled">
        <label class="form-check-label">
          <input class="form-check-input" type="radio" name="gridRadios" id="gridRadios3" value="option3" disabled>
            Option three is disabled
        </label>
      </div>
    </div>
</fieldset>

Install question

The docs state:

Download or clone this repo add it to the main file structure of your project.

but I'm not sure where inside my django project repo I should place the entire django-bootstrap4 repo folder? I just get the error:

ModuleNotFoundError: No module named 'bootstrap4'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.