[Answered ]-In Django, form isn't rendered on browser

2👍

You didn’t instantiate the form.
You need to instantiate the form, for rendering in a template, like this,

form = TweetForm()

Note:

The params variable is already a dict(), you could just add form into the params like this,

params['form'] = form

Then, render the template with context as params,

render(request, 'profile.html', params)

Leave a comment