from django.conf.urls import patterns, include, url

urlpatterns = patterns(
    '',
    url(r'^', include('tinyblog.urls')),
)

handler404 = 'tinyblog.tests.views.test_404'

from django.conf.urls import patterns, include, url

urlpatterns = patterns(
    '',
    url(r'^', include('tinyblog.urls')),
)

handler404 = 'tests.views.test_404'

Fix path to 404 handler