2026-11-19 21:30:25 +01:00
|
|
|
from django.contrib.auth.views import LoginView, LogoutView
|
|
|
|
|
from django.urls import path
|
|
|
|
|
|
|
|
|
|
from . import views
|
|
|
|
|
|
|
|
|
|
app_name = "panel"
|
|
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
|
path("", views.AccountList.as_view(), name="accounts"),
|
|
|
|
|
path(
|
|
|
|
|
"sign-in/",
|
|
|
|
|
LoginView.as_view(
|
|
|
|
|
template_name="hosting/login.html",
|
|
|
|
|
redirect_authenticated_user=True,
|
|
|
|
|
),
|
|
|
|
|
name="login",
|
|
|
|
|
),
|
|
|
|
|
path("sign-out/", LogoutView.as_view(), name="logout"),
|
|
|
|
|
path("accounts/new/", views.AccountCreate.as_view(), name="account_create"),
|
|
|
|
|
path("accounts/<int:pk>/", views.AccountDetail.as_view(), name="account"),
|
|
|
|
|
path("accounts/<int:pk>/edit/", views.AccountEdit.as_view(), name="account_edit"),
|
2026-11-21 00:28:31 +01:00
|
|
|
path("customers/", views.CustomerList.as_view(), name="customers"),
|
|
|
|
|
path("customers/new/", views.CustomerCreate.as_view(), name="customer_create"),
|
|
|
|
|
path(
|
|
|
|
|
"customers/<int:pk>/access/",
|
|
|
|
|
views.CustomerAccess.as_view(),
|
|
|
|
|
name="customer_access",
|
|
|
|
|
),
|
2026-11-19 22:40:47 +01:00
|
|
|
path(
|
|
|
|
|
"accounts/<int:pk>/databases/new/",
|
|
|
|
|
views.DatabaseCreate.as_view(),
|
|
|
|
|
name="database_create",
|
|
|
|
|
),
|
|
|
|
|
path(
|
|
|
|
|
"databases/<int:pk>/manifest/",
|
|
|
|
|
views.DownloadDatabaseManifest.as_view(),
|
|
|
|
|
name="database_manifest",
|
|
|
|
|
),
|
2026-11-21 01:26:10 +01:00
|
|
|
path(
|
|
|
|
|
"databases/<int:pk>/provision/",
|
|
|
|
|
views.RequestDatabaseProvisioning.as_view(),
|
|
|
|
|
name="database_provision",
|
|
|
|
|
),
|
2026-11-19 23:11:39 +01:00
|
|
|
path(
|
|
|
|
|
"accounts/<int:pk>/dns-zones/new/",
|
|
|
|
|
views.DnsZoneCreate.as_view(),
|
|
|
|
|
name="dns_zone_create",
|
|
|
|
|
),
|
|
|
|
|
path("dns-zones/<int:pk>/edit/", views.DnsZoneEdit.as_view(), name="dns_zone_edit"),
|
|
|
|
|
path(
|
|
|
|
|
"dns-zones/<int:pk>/manifest/",
|
|
|
|
|
views.DownloadDnsZoneManifest.as_view(),
|
|
|
|
|
name="dns_zone_manifest",
|
|
|
|
|
),
|
2026-11-21 01:41:06 +01:00
|
|
|
path(
|
|
|
|
|
"dns-zones/<int:pk>/publish/",
|
|
|
|
|
views.RequestDnsPublication.as_view(),
|
|
|
|
|
name="dns_zone_publish",
|
|
|
|
|
),
|
2026-11-19 23:24:40 +01:00
|
|
|
path(
|
|
|
|
|
"accounts/<int:pk>/mailboxes/new/",
|
|
|
|
|
views.MailboxCreate.as_view(),
|
|
|
|
|
name="mailbox_create",
|
|
|
|
|
),
|
|
|
|
|
path(
|
|
|
|
|
"mailboxes/<int:pk>/manifest/",
|
|
|
|
|
views.DownloadMailboxManifest.as_view(),
|
|
|
|
|
name="mailbox_manifest",
|
|
|
|
|
),
|
2026-11-19 21:30:25 +01:00
|
|
|
path(
|
|
|
|
|
"accounts/<int:pk>/plans/", views.RequestWebPlan.as_view(), name="request_plan"
|
|
|
|
|
),
|
2026-11-19 22:09:10 +01:00
|
|
|
path("hosting-plans/", views.HostingPlanList.as_view(), name="hosting_plans"),
|
|
|
|
|
path(
|
|
|
|
|
"hosting-plans/new/",
|
|
|
|
|
views.HostingPlanCreate.as_view(),
|
|
|
|
|
name="hosting_plan_create",
|
|
|
|
|
),
|
|
|
|
|
path(
|
|
|
|
|
"hosting-plans/<int:pk>/edit/",
|
|
|
|
|
views.HostingPlanEdit.as_view(),
|
|
|
|
|
name="hosting_plan_edit",
|
|
|
|
|
),
|
2026-11-19 21:30:25 +01:00
|
|
|
path("plans/", views.PlanList.as_view(), name="plans"),
|
|
|
|
|
path("plans/<int:pk>/", views.PlanDetail.as_view(), name="plan"),
|
2026-11-21 01:17:01 +01:00
|
|
|
path(
|
|
|
|
|
"plans/<int:pk>/activate/",
|
|
|
|
|
views.RequestWebActivation.as_view(),
|
|
|
|
|
name="plan_activate",
|
|
|
|
|
),
|
2026-11-19 21:35:59 +01:00
|
|
|
path(
|
|
|
|
|
"plans/<int:pk>/smoke-bundle/",
|
2026-11-19 21:44:15 +01:00
|
|
|
views.DownloadWebPlan.as_view(),
|
2026-11-19 21:35:59 +01:00
|
|
|
name="download_smoke_bundle",
|
|
|
|
|
),
|
2026-11-19 21:44:15 +01:00
|
|
|
path(
|
|
|
|
|
"plans/<int:pk>/deployment-manifest/",
|
|
|
|
|
views.DownloadWebPlan.as_view(manifest=True),
|
|
|
|
|
name="download_deployment_manifest",
|
|
|
|
|
),
|
2026-11-19 21:30:25 +01:00
|
|
|
]
|