Added testing urls
This commit is contained in:
parent
9513fd7be1
commit
eb80c30b81
1 changed files with 3 additions and 4 deletions
|
@ -1,14 +1,13 @@
|
||||||
from django.conf.urls import include, url
|
from django.conf.urls import include, url
|
||||||
from django.views.generic import TemplateView
|
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
from project.pages.views import Custom404View
|
from project.pages.views import Custom404View, NoJavascriptView
|
||||||
|
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(r'^site-admin/', include(admin.site.urls)),
|
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'))
|
url(r'', include('project.pages.urls', namespace='pages'))
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
handler404 = Custom404View
|
handler404 = Custom404View
|
||||||
|
|
Reference in a new issue