[Answered ]-How to make a string visible on a webpage using Django form fields

2👍

Try this with initial

forms.CharField(widget=forms.TextInput(attrs={'placeholder': self.project_name }), initial=self.project_name)

OR

form = EditProjectForm(#your arguments, initial={'project_name': self.project_name})

Leave a comment