I am trying to create an input form field which can take text, images or videos as we see in Twitter.
I am trying the following:
from django import forms
from .models import Tweet
class TweetModelForm(forms.ModelForm):
content = forms.CharField(label='',
widget=forms.Textarea(
attrs={'placeholder': "Your message",
"class": "form-control"}
))
However, I am trying to use the same input box so that user can upload image, video, GIFs or just type text in the box. I am not sure how to modify the above form field.
Edit: If it is not possible using Django, can this be done using HTML5?

