You should use `django.core.urlresolvers.reverse` (https://docs.djangoproject.com/en/dev/ref/urlresolvers/#django.core.urlresolvers.reverse) instead of string formatting in all places where `redirect()` is used.