2015-01-24 16:23:17 +01:00
|
|
|
"""
|
|
|
|
This module defines the URL patterns for hosting package related views.
|
|
|
|
|
|
|
|
"""
|
2015-01-20 00:51:05 +01:00
|
|
|
from __future__ import absolute_import, unicode_literals
|
|
|
|
|
|
|
|
from django.conf.urls import patterns, url
|
|
|
|
|
2015-01-24 16:23:17 +01:00
|
|
|
from .views import (
|
2015-01-24 23:34:15 +01:00
|
|
|
AllCustomerHostingPackageList,
|
2015-01-24 16:23:17 +01:00
|
|
|
CreateHostingPackage,
|
2015-01-24 23:34:15 +01:00
|
|
|
CreateCustomerHostingPackage,
|
2015-01-24 16:23:17 +01:00
|
|
|
CustomerHostingPackageDetails,
|
|
|
|
)
|
2015-01-20 00:51:05 +01:00
|
|
|
|
|
|
|
|
|
|
|
urlpatterns = patterns(
|
|
|
|
'',
|
2015-01-24 23:34:15 +01:00
|
|
|
url(r'^create$', CreateHostingPackage.as_view(),
|
2015-01-20 00:51:05 +01:00
|
|
|
name='create_hosting_package'),
|
2015-01-24 23:34:15 +01:00
|
|
|
url(r'^(?P<user>[\w0-9@.+-_]+)/create$',
|
|
|
|
CreateCustomerHostingPackage.as_view(),
|
|
|
|
name='create_customer_hosting_package'),
|
2015-01-24 16:23:17 +01:00
|
|
|
url(r'^(?P<user>[\w0-9@.+-_]+)/hostingpackage/(?P<pk>\d+)/$',
|
|
|
|
CustomerHostingPackageDetails.as_view(),
|
|
|
|
name='hosting_package_details'),
|
2015-01-24 23:34:15 +01:00
|
|
|
url(r'^allpackages/',
|
|
|
|
AllCustomerHostingPackageList.as_view(),
|
|
|
|
name='all_hosting_packages'),
|
2015-01-20 00:51:05 +01:00
|
|
|
)
|