from django.conf.urls import include, url from django.contrib import admin from project.pages.views import Custom404View urlpatterns = [ url(r'^site-admin/', include(admin.site.urls)), url(r'', include('project.pages.urls', namespace='pages')) ] handler404 = Custom404View