# Path: utils/error_handler.py
# def error404(request):
#     return render(request, template_name='index/404.html')


from django.conf.urls import include, url
from django.contrib import admin
from utils.error_handler import error404

urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^search/', include('search.urls')),
    url(r'^', include('index.urls')),
    url(r'^', include('table.urls')),

# Path: utils/error_handler.py
# def error404(request):
#     return render(request, template_name='index/404.html')


# Path: NTHU_Course/urls.py
from django.conf.urls import include, url
from django.contrib import admin
from utils.error_handler import error404


urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^search/', include('search.urls')),
    url(r'^', include('index.urls')),
    url(r'^', include('table.urls')),

]