how to import class from views.py to urls code example
Example: import generic
from django.views.generic import (
CreateView,
ListView,
DetailView,
UpdateView,
DeleteView,
TemplateView,
)
from django.views.generic import (
CreateView,
ListView,
DetailView,
UpdateView,
DeleteView,
TemplateView,
)