Jezzy Grey


class from descriptionSun, 19 Feb 2023

django framework. views file Create several classes that implement the task of tearing text in two fields entered by the user. These forms must be passed to the idnex html template

# Create your views here. from django.shortcuts import render class PostForm(forms.Form): class Meta: model = Post fields = ('title', 'text') class CreatePostView(CreateView): model = Post form_class = PostForm template_name = 'create_post.html' success_url = reverse_lazy('index')

Questions about programming?Chat with your personal AI assistant