2015-08-27 16:20:08 +00:00
|
|
|
from django.conf.urls import url
|
|
|
|
|
2016-05-29 18:37:43 +00:00
|
|
|
from .views import DjangoHostingView, RailsHostingView, PaymentVMView,\
|
2016-05-03 05:59:40 +00:00
|
|
|
NodeJSHostingView, LoginView, SignupView, IndexView, \
|
2016-05-04 05:16:41 +00:00
|
|
|
OrdersHostingListView, OrdersHostingDetailView, VirtualMachinesPlanListView,\
|
2016-06-10 04:50:49 +00:00
|
|
|
VirtualMachineView, GenerateVMSSHKeysView, OrdersHostingDeleteView, NotificationsView, \
|
2017-05-04 04:19:32 +00:00
|
|
|
MarkAsReadNotificationView, PasswordResetView, PasswordResetConfirmView, HostingPricingView,\
|
2017-05-07 04:29:29 +00:00
|
|
|
CreateVirtualMachinesView, HostingBillListView, HostingBillDetailView
|
2015-08-27 16:20:08 +00:00
|
|
|
|
|
|
|
urlpatterns = [
|
2016-04-20 06:03:32 +00:00
|
|
|
url(r'index/?$', IndexView.as_view(), name='index'),
|
2016-04-19 06:04:15 +00:00
|
|
|
url(r'django/?$', DjangoHostingView.as_view(), name='djangohosting'),
|
2016-04-20 06:03:32 +00:00
|
|
|
url(r'nodejs/?$', NodeJSHostingView.as_view(), name='nodejshosting'),
|
2016-05-03 05:59:40 +00:00
|
|
|
url(r'rails/?$', RailsHostingView.as_view(), name='railshosting'),
|
2016-06-30 06:23:14 +00:00
|
|
|
url(r'pricing/?$', HostingPricingView.as_view(), name='pricing'),
|
2016-04-22 13:36:38 +00:00
|
|
|
url(r'payment/?$', PaymentVMView.as_view(), name='payment'),
|
2016-05-03 05:59:40 +00:00
|
|
|
url(r'orders/?$', OrdersHostingListView.as_view(), name='orders'),
|
|
|
|
url(r'orders/(?P<pk>\d+)/?$', OrdersHostingDetailView.as_view(), name='orders'),
|
2017-05-05 12:59:11 +00:00
|
|
|
url(r'bills/?$', HostingBillListView.as_view(), name='bills'),
|
|
|
|
url(r'bills/(?P<pk>\d+)/?$', HostingBillDetailView.as_view(), name='bills'),
|
2016-05-20 21:13:17 +00:00
|
|
|
url(r'cancel_order/(?P<pk>\d+)/?$', OrdersHostingDeleteView.as_view(), name='delete_order'),
|
2017-05-22 03:46:31 +00:00
|
|
|
url(r'create-virtual-machine/?$', CreateVirtualMachinesView.as_view(), name='create_virtual_machine'),
|
2016-05-03 05:59:40 +00:00
|
|
|
url(r'my-virtual-machines/?$', VirtualMachinesPlanListView.as_view(), name='virtual_machines'),
|
2016-06-10 04:50:49 +00:00
|
|
|
url(r'my-virtual-machines/(?P<pk>\d+)/?$', VirtualMachineView.as_view(),
|
2016-05-04 05:16:41 +00:00
|
|
|
name='virtual_machines'),
|
2016-06-10 04:50:49 +00:00
|
|
|
# url(r'my-virtual-machines/(?P<pk>\d+)/delete/?$', VirtualMachineCancelView.as_view(),
|
|
|
|
# name='virtual_machines_cancel'),
|
2017-05-04 04:19:32 +00:00
|
|
|
url(r'vm-key-pair/?$', GenerateVMSSHKeysView.as_view(),
|
|
|
|
name='key_pair'),
|
2016-05-29 18:37:43 +00:00
|
|
|
url(r'^notifications/$', NotificationsView.as_view(), name='notifications'),
|
|
|
|
url(r'^notifications/(?P<pk>\d+)/?$', MarkAsReadNotificationView.as_view(),
|
|
|
|
name='read_notification'),
|
2016-05-03 05:59:40 +00:00
|
|
|
url(r'login/?$', LoginView.as_view(), name='login'),
|
2016-04-29 06:53:24 +00:00
|
|
|
url(r'signup/?$', SignupView.as_view(), name='signup'),
|
2016-06-21 05:10:38 +00:00
|
|
|
url(r'reset-password/?$', PasswordResetView.as_view(), name='reset_password'),
|
|
|
|
url(r'reset-password-confirm/(?P<uidb64>[0-9A-Za-z]+)-(?P<token>.+)/$',
|
|
|
|
PasswordResetConfirmView.as_view(), name='reset_password_confirm'),
|
2016-04-29 06:53:24 +00:00
|
|
|
url(r'^logout/?$', 'django.contrib.auth.views.logout',
|
2016-05-19 06:17:16 +00:00
|
|
|
{'next_page': '/hosting/login?logged_out=true'}, name='logout')
|
2015-08-27 16:20:08 +00:00
|
|
|
]
|