Jan Dittberner
9815bd1f5b
- implement new hostingpackages.views.HostingOptionChoices - add URL pattern 'hosting_option_choices' to hostingpackages.urls - add template hostingpackages/customerhostingpackage_option_choices.html - link from hostingpackages/customerhostingpackage_detail.html to 'hosting_package_choices'
35 lines
1,023 B
Python
35 lines
1,023 B
Python
"""
|
|
This module defines the URL patterns for hosting package related views.
|
|
|
|
"""
|
|
from __future__ import absolute_import, unicode_literals
|
|
|
|
from django.conf.urls import patterns, url
|
|
|
|
from .views import (
|
|
AllCustomerHostingPackageList,
|
|
CreateCustomerHostingPackage,
|
|
CreateHostingPackage,
|
|
CustomerHostingPackageDetails,
|
|
HostingOptionChoices,
|
|
)
|
|
|
|
|
|
urlpatterns = patterns(
|
|
'',
|
|
url(r'^create$', CreateHostingPackage.as_view(),
|
|
name='create_hosting_package'),
|
|
url(r'^(?P<user>[\w0-9@.+-_]+)/create$',
|
|
CreateCustomerHostingPackage.as_view(),
|
|
name='create_customer_hosting_package'),
|
|
url(r'^(?P<user>[\w0-9@.+-_]+)/hostingpackage/(?P<pk>\d+)/$',
|
|
CustomerHostingPackageDetails.as_view(),
|
|
name='hosting_package_details'),
|
|
url(r'^allpackages/',
|
|
AllCustomerHostingPackageList.as_view(),
|
|
name='all_hosting_packages'),
|
|
url(r'^(?P<pk>\d+)/option-choices$',
|
|
HostingOptionChoices.as_view(),
|
|
name='hosting_option_choices'),
|
|
)
|