Skip to content
How to Use Bootstrap 4 Forms With Django – Crispy Forms
Python HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
core
product
templates
README.md
db.sqlite3
manage.py
requirements.txt

README.md

How to Use Bootstrap 4 Forms With Django – Crispy Forms

Tutorial Link - https://studygyaan.com/django/how-to-use-bootstrap-4-forms-with-django-crispy-forms

Integrating Bootstrap Form with Django is very easy and simple. There are lots of Django Libraries for Bootstrap. In this tutorial, we are going to use django-crispy-forms for Bootstrap Form in Django. Crispy-Forms is a great package that gives good control over rendering Bootstrap form in your Django Project.

Setup

  1. Create a folder and put all the files inside it.
  2. Create a virtual environtment - virtualenv env
  3. Activate VirtualENV - ubuntu : source env/bin/activate || windows : . .\env\Scripts\activate
  4. Run requirements.txt - pip install -r requirements.txt
  5. Run the Application - python manage.py runserver

Product add url - http://localhost:8000/product-add/

Product update url - http://localhost:8000/product-update/3

You can’t perform that action at this time.