from django.shortcuts import reverse
OR
from django.urls import reverse,reverse_lazy
difference:
reverse() use in funcation & reverse_lazy() use in class.
reverse() use in string & reverse_lazy() use in object
class NewJobCBV(LoginRequiredMixin, CreateView):
template_name = 'company/job.html'
form_class = newJobForm
# success_url = reverse_lazy('newJob')
def get_success_url(self, **kwargs):
return reverse("newJob")