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-05-29 18:37:43 +00:00
|
|
|
VirtualMachineDetailView, GenerateVMSSHKeysView, OrdersHostingDeleteView, NotificationsView, \
|
|
|
|
MarkAsReadNotificationView
|
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-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-05-14 06:42:42 +00:00
|
|
|
url(r'my-virtual-machines/(?P<pk>\d+)/?$', VirtualMachineDetailView.as_view(),
|
2016-05-04 05:16:41 +00:00
|
|
|
name='virtual_machines'),
|
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'),
|
|
|
|
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
|
|
|
]
|