How to add value to this “form.content” before rendering
class myform(forms.Form):
title = forms.CharField(max_length = 30)
content = forms.CharField(widget=MarkItUpWidget())
tag = forms.CharField(max_length = 30)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Going on the extremely limited information you’ve given, you would use the
initialattribute of the content field:If you need the field to have dynamic values, you can do something like: