Debian Codegraph @

demo/demoproject/urls.py

raw
1 from django.urls import include, path
2 from django.views.generic import TemplateView
3
4 home = TemplateView.as_view(template_name="home.html")
5
6
7 urlpatterns = [
8 # ObjectDownloadView.
9 path(
10 "object/",
11 include("demoproject.object.urls", namespace="object"),
12 ),
13 # StorageDownloadView.
14 path(
15 "storage/",
16 include("demoproject.storage.urls", namespace="storage"),
17 ),
18 # PathDownloadView.
19 path("path/", include("demoproject.path.urls", namespace="path")),
20 # HTTPDownloadView.
21 path("http/", include("demoproject.http.urls", namespace="http")),
22 # VirtualDownloadView.
23 path(
24 "virtual/",
25 include("demoproject.virtual.urls", namespace="virtual"),
26 ),
27 # Nginx optimizations.
28 path(
29 "nginx/",
30 include("demoproject.nginx.urls", namespace="nginx"),
31 ),
32 # Apache optimizations.
33 path(
34 "apache/",
35 include("demoproject.apache.urls", namespace="apache"),
36 ),
37 # Lighttpd optimizations.
38 path(
39 "lighttpd/",
40 include("demoproject.lighttpd.urls", namespace="lighttpd"),
41 ),
42 # An informative homepage.
43 path("", home, name="home"),
44 ]