2015-08-27 16:20:08 +00:00
|
|
|
from django.conf.urls import url
|
2017-07-18 21:39:52 +00:00
|
|
|
from django.contrib.auth import views as auth_views
|
2015-08-27 16:20:08 +00:00
|
|
|
|
2016-05-29 18:37:43 +00:00
|
|
|
from .views import DjangoHostingView, RailsHostingView, PaymentVMView,\
|
2017-06-10 23:45:48 +00:00
|
|
|
NodeJSHostingView, LoginView, SignupView, SignupValidateView, SignupValidatedView, IndexView, \
|
2016-05-04 05:16:41 +00:00
|
|
|
OrdersHostingListView, OrdersHostingDetailView, VirtualMachinesPlanListView,\
|
2017-06-03 13:03:55 +00:00
|
|
|
VirtualMachineView, OrdersHostingDeleteView, NotificationsView, \
|
2017-05-04 04:19:32 +00:00
|
|
|
MarkAsReadNotificationView, PasswordResetView, PasswordResetConfirmView, HostingPricingView,\
|
2017-06-03 13:03:55 +00:00
|
|
|
CreateVirtualMachinesView, HostingBillListView, HostingBillDetailView, \
|
2017-07-05 13:57:49 +00:00
|
|
|
SSHKeyDeleteView, SSHKeyCreateView, SSHKeyListView, SSHKeyChoiceView
|
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'),
|
2017-08-16 21:18:35 +00:00
|
|
|
url(r'cancel_order/(?P<pk>\d+)/?$',
|
|
|
|
OrdersHostingDeleteView.as_view(), name='delete_order'),
|
|
|
|
url(r'create_virtual_machine/?$', CreateVirtualMachinesView.as_view(),
|
|
|
|
name='create_virtual_machine'),
|
|
|
|
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'),
|
2017-06-03 13:03:55 +00:00
|
|
|
url(r'ssh_keys/?$', SSHKeyListView.as_view(),
|
|
|
|
name='ssh_keys'),
|
2017-07-05 13:57:49 +00:00
|
|
|
url(r'ssh_keys_choice/?$', SSHKeyChoiceView.as_view(),
|
|
|
|
name='choice_ssh_keys'),
|
2017-06-03 11:33:05 +00:00
|
|
|
url(r'delete_ssh_key/(?P<pk>\d+)/?$', SSHKeyDeleteView.as_view(),
|
|
|
|
name='delete_ssh_key'),
|
2017-06-03 13:03:55 +00:00
|
|
|
url(r'create_ssh_key/?$', SSHKeyCreateView.as_view(),
|
|
|
|
name='create_ssh_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'),
|
2017-06-10 23:45:48 +00:00
|
|
|
url(r'signup-validate/?$', SignupValidateView.as_view(), name='signup-validate'),
|
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'),
|
2017-07-18 21:39:52 +00:00
|
|
|
url(r'^logout/?$', auth_views.logout,
|
2017-06-10 23:45:48 +00:00
|
|
|
{'next_page': '/hosting/login?logged_out=true'}, name='logout'),
|
2017-08-16 21:18:35 +00:00
|
|
|
url(r'^validate/(?P<validate_slug>.*)/$',
|
|
|
|
SignupValidatedView.as_view(), name='validate')
|
2015-08-27 16:20:08 +00:00
|
|
|
]
|