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"),
|
|
|
|
|
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-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
|
|
|
]
|