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.
- Create a folder and put all the files inside it.
- Create a virtual environtment -
virtualenv env
- Activate VirtualENV - ubuntu :
source env/bin/activate
|| windows :. .\env\Scripts\activate
- Run requirements.txt -
pip install -r requirements.txt
- Run the Application -
python manage.py runserver
Product add url - http://localhost:8000/product-add/
Product update url - http://localhost:8000/product-update/3