From b3afd4f2fdc95ca028bdb051dfd5f60ec398b3b9 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Wed, 6 Mar 2013 16:28:39 +0000 Subject: [PATCH] Add catchall 404 URL if nothing else matches Signed-off-by: Paul Eggleton --- urls.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/urls.py b/urls.py index 174a370..af2be13 100644 --- a/urls.py +++ b/urls.py @@ -6,6 +6,7 @@ # All rights reserved. from django.conf.urls.defaults import patterns, include, url +from django.views.defaults import page_not_found from django.contrib import admin admin.autodiscover() @@ -15,5 +16,6 @@ urlpatterns = patterns('', url(r'^admin/', include(admin.site.urls)), url(r'^accounts/', include('registration.urls')), url(r'^captcha/', include('captcha.urls')), + url(r'.*', page_not_found) )