Try to import reverse_lazy form "django.core.urlresolvers" in your views.py and declare the DeleteView as:-
class MyDeleteView(DeleteView): model = models.YourModelName success_url = reverse_lazy('Your_app_name_for_urls.py':urlpattern_name_your_wanna_redirect_to) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to email@example.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c3dd772e-a4b1-4777-9b82-54113fddeeb7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.