from django.conf import settings
from django.conf.urls import include, url
from django.contrib import admin
from django.views.generic import TemplateView

urlpatterns = [
    url(r'^$', TemplateView.as_view(template_name='index.html')),
    url(r'^jquery/$', TemplateView.as_view(template_name='jquery/index.html')),
    url(r'^mootools/$', TemplateView.as_view(template_name='mootools/index.html')),
    url(r'^prototype/$', TemplateView.as_view(template_name='prototype/index.html')),
    url(r'^admin/', include(admin.site.urls)),
]

if settings.DEBUG:
    import debug_toolbar
    urlpatterns += [
        url(r'^__debug__/', include(debug_toolbar.urls)),
    ]

from django.conf import settings
from django.conf.urls import include, url
from django.contrib import admin
from django.views.generic import TemplateView

urlpatterns = [
    url(r'^$', TemplateView.as_view(template_name='index.html')),
    url(r'^jquery/$', TemplateView.as_view(template_name='jquery/index.html')),
    url(r'^mootools/$', TemplateView.as_view(template_name='mootools/index.html')),
    url(r'^prototype/$', TemplateView.as_view(template_name='prototype/index.html')),
    url(r'^admin/', admin.site.urls),
]

if settings.DEBUG:
    import debug_toolbar
    urlpatterns += [
        url(r'^__debug__/', include(debug_toolbar.urls)),
    ]

Fix example.urls to work with Django 2.0