(Django1.5, Python2.7)
apps/urls.py
from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns( '', url(r'^admin/', include(admin.site.urls)), url(r'^contact/', include('contacts.urls', namespace='contact')), )
contacts/urls.py
: url(r'^created/?$', TemplateView.as_view(template_name='formtools/done.html'), name='created'), :
contacts/forms.py
: return redirect(reverse('contact:created', args=(), kwargs={})) :