[Fixed]-How to display multiple forms through a view in Django

1๐Ÿ‘

โœ…

If you need detailed explanation, comment of Daniel Reseman means to write in views.py

def home_page(request):
   tmpl_vars = { 
       'form': M1Form,
       'form2': M2Form,
   }    
   return render(request, 'my_app/test.html',tmpl_vars)

Then in template you can use it as {{form2}}

๐Ÿ‘ค1844144

Leave a comment