from django.urls importreverse
from django.views.generic.edit import CreateView
from django.views.generic.detail import DetailView
from django.contrib.messages.views import SuccessMessageMixin
from .forms import ArticleForm
from .models importArticle
class AddArticle(SuccessMessageMixin, CreateView):
form_class = ArticleForm
model = Article
template_name = "add_articles.html"
success_message = "Added Succesfully"