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, \
|
2016-06-30 06:23:14 +00:00
|
|
|
MarkAsReadNotificationView, PasswordResetView, PasswordResetConfirmView, HostingPricingView
|
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'),
|
2016-05-20 21:13:17 +00:00
|
|
|
url(r'cancel_order/(?P<pk>\d+)/?$', OrdersHostingDeleteView.as_view(), name='delete_order'),
|
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'),
|
2016-05-20 21:11:42 +00:00
|
|
|
url(r'my-virtual-machines/(?P<pk>\d+)/key/?$', GenerateVMSSHKeysView.as_view(),
|
|
|
|
name='virtual_machine_key'),
|
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
|
|
|
]
|