2015-01-24 16:23:17 +01:00
|
|
|
"""
|
|
|
|
This module defines the URL patterns for hosting package related views.
|
|
|
|
|
|
|
|
"""
|
2023-02-18 22:46:48 +01:00
|
|
|
from __future__ import absolute_import
|
2015-01-20 00:51:05 +01:00
|
|
|
|
2023-07-22 19:43:10 +02:00
|
|
|
from django.urls import path, re_path
|
2015-01-20 00:51:05 +01:00
|
|
|
|
2015-01-24 16:23:17 +01:00
|
|
|
from .views import (
|
2015-01-25 15:15:39 +01:00
|
|
|
AddHostingOption,
|
2015-01-24 23:34:15 +01:00
|
|
|
AllCustomerHostingPackageList,
|
|
|
|
CreateCustomerHostingPackage,
|
2015-01-25 14:04:32 +01:00
|
|
|
CreateHostingPackage,
|
2015-01-24 16:23:17 +01:00
|
|
|
CustomerHostingPackageDetails,
|
2023-07-22 19:43:10 +02:00
|
|
|
CustomerHostingPackageDiskUsageDetails,
|
2015-01-25 14:04:32 +01:00
|
|
|
HostingOptionChoices,
|
2023-07-22 19:43:10 +02:00
|
|
|
UploadCustomerPackageDiskUsage,
|
2015-01-24 16:23:17 +01:00
|
|
|
)
|
2015-01-20 00:51:05 +01:00
|
|
|
|
2015-12-19 20:11:23 +01:00
|
|
|
urlpatterns = [
|
2023-02-18 22:46:48 +01:00
|
|
|
re_path(r"^create$", CreateHostingPackage.as_view(), name="create_hosting_package"),
|
|
|
|
re_path(
|
|
|
|
r"^allpackages/",
|
|
|
|
AllCustomerHostingPackageList.as_view(),
|
|
|
|
name="all_hosting_packages",
|
|
|
|
),
|
|
|
|
re_path(
|
|
|
|
r"^(?P<user>[-\w0-9@.+_]+)/create$",
|
2015-01-24 23:34:15 +01:00
|
|
|
CreateCustomerHostingPackage.as_view(),
|
2023-02-18 22:46:48 +01:00
|
|
|
name="create_customer_hosting_package",
|
|
|
|
),
|
|
|
|
re_path(
|
|
|
|
r"^(?P<user>[-\w0-9@.+_]+)/(?P<pk>\d+)/$",
|
2015-01-24 16:23:17 +01:00
|
|
|
CustomerHostingPackageDetails.as_view(),
|
2023-02-18 22:46:48 +01:00
|
|
|
name="hosting_package_details",
|
|
|
|
),
|
|
|
|
re_path(
|
|
|
|
r"^(?P<pk>\d+)/option-choices$",
|
|
|
|
HostingOptionChoices.as_view(),
|
|
|
|
name="hosting_option_choices",
|
|
|
|
),
|
|
|
|
re_path(
|
|
|
|
r"^(?P<package>\d+)/add-option/(?P<type>\w+)/(?P<optionid>\d+)$",
|
|
|
|
AddHostingOption.as_view(),
|
|
|
|
name="add_hosting_option",
|
|
|
|
),
|
2023-07-22 19:43:10 +02:00
|
|
|
path(
|
2023-07-22 22:34:09 +02:00
|
|
|
"<str:user>/<int:package>/disk-usage/",
|
2023-07-22 19:43:10 +02:00
|
|
|
CustomerHostingPackageDiskUsageDetails.as_view(),
|
|
|
|
name="disk_usage_details",
|
|
|
|
),
|
|
|
|
path(
|
|
|
|
"upload-disk-usage/",
|
|
|
|
UploadCustomerPackageDiskUsage.as_view(),
|
|
|
|
name="upload_disk_usage",
|
|
|
|
),
|
2015-12-19 20:11:23 +01:00
|
|
|
]
|