1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
from django.contrib import admin
from django.urls import include, path
from django.views.generic import TemplateView
from example.views import increment
urlpatterns = [
path("", TemplateView.as_view(template_name="index.html"), name="home"),
path("jquery/", TemplateView.as_view(template_name="jquery/index.html")),
path("mootools/", TemplateView.as_view(template_name="mootools/index.html")),
path("prototype/", TemplateView.as_view(template_name="prototype/index.html")),
path(
"htmx/boost/",
TemplateView.as_view(template_name="htmx/boost.html"),
name="htmx",
),
path(
"htmx/boost/2",
TemplateView.as_view(
template_name="htmx/boost.html", extra_context={"page_num": "2"}
),
name="htmx2",
),
path(
"turbo/", TemplateView.as_view(template_name="turbo/index.html"), name="turbo"
),
path(
"turbo/2",
TemplateView.as_view(
template_name="turbo/index.html", extra_context={"page_num": "2"}
),
name="turbo2",
),
path("admin/", admin.site.urls),
path("ajax/increment", increment, name="ajax_increment"),
path("__debug__/", include("debug_toolbar.urls")),
]
|