How to enter data without Django textarea?

I have a form that looks like this

I am trying to add a product. The description of which will be entered through this form. But I don't know how to insert textarea or inpur here

html

                                            <div class="col-12">
                                                <div class="mb-2">
                                                    <label class="form-label">Текст новости</label>
                                                    <div id="blog-editor-wrapper">
                                                        <div id="blog-editor-container">
                                                            <div class="editor">
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

vievs

def create(request):
    if (request.method == 'POST'):
        obj, created = Posts.objects.get_or_create(title=request.POST.get("title"))
        obj.text=request.POST.get("text")
        obj.preview=request.POST.get("preview")
        obj.date=request.POST.get("date")
        obj.image=request.POST.get("image")

        obj.save()

models

text = models.TextField('Текст статьи')

your models should like this

text = models.TextField(max_length=300, null=True)
Back to Top