1###### views.py #####
2from .forms import CreateArticleForm
3from django.views.generic import CreateView
4class ArticleCreateView(CreateView):
5 form_class = CreateArticleForm
6 template_name = 'articles/create_article.html'
7
8###### urls.py ######
9from .views import ArticleCreateView
10urlpatterns =[ path('articles/create/', ArticleCreateView.as_view()),]