From eb80c30b818dc429a489db1f9143a8af555a4445 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 25 Nov 2015 08:31:17 +0000 Subject: [PATCH] Added testing urls --- project/urls.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/project/urls.py b/project/urls.py index 389e6be..207aa27 100644 --- a/project/urls.py +++ b/project/urls.py @@ -1,14 +1,13 @@ from django.conf.urls import include, url -from django.views.generic import TemplateView from django.contrib import admin -from project.pages.views import Custom404View +from project.pages.views import Custom404View, NoJavascriptView urlpatterns = [ url(r'^site-admin/', include(admin.site.urls)), - url(r'^404/', TemplateView.as_view(template_name='core/404.html')), + url(r'^404/', Custom404View.as_view(), name="404"), + url(r'^no-js/', NoJavascriptView.as_view(), name="no-js"), url(r'', include('project.pages.urls', namespace='pages')) ] - handler404 = Custom404View