dynamicweb2/hosting/urls.py

37 lines
1.7 KiB
Python
Raw Normal View History

2023-11-22 10:12:05 +00:00
from django.urls import re_path
from django.contrib.auth import views as auth_views
from .views import SSHKeyCreateView, AskSSHKeyView
from .views import (
#PaymentVMView,
LoginView, SignupView, SignupValidateView, SignupValidatedView, IndexView,
#OrdersHostingListView, OrdersHostingDetailView,
#VirtualMachinesPlanListView, VirtualMachineView, OrdersHostingDeleteView,
#MarkAsReadNotificationView,
PasswordResetView, PasswordResetConfirmView,
#HostingPricingView, CreateVirtualMachinesView, HostingBillListView,
#HostingBillDetailView, SSHKeyDeleteView, SSHKeyListView,
#SSHKeyChoiceView, DashboardView, SettingsView,
2023-11-30 09:32:21 +00:00
ResendActivationEmailView, DashboardView, CustomLogoutView
2023-11-22 10:12:05 +00:00
#InvoiceListView, InvoiceDetailView, CheckUserVM
)
app_name = 'hosting'
urlpatterns = [
2023-11-26 03:55:58 +00:00
#re_path(r'/', IndexView.as_view(), name='index'),
2023-11-22 10:12:05 +00:00
re_path(r'login/?$', LoginView.as_view(), name='login'),
re_path(r'signup/?$', SignupView.as_view(), name='signup'),
re_path(r'signup-validate/?$', SignupValidateView.as_view(),
name='signup-validate'),
re_path(r'resend-activation-link/?$', ResendActivationEmailView.as_view(),
name='resend_activation_link'),
re_path(r'reset-password/?$', PasswordResetView.as_view(),
name='reset_password'),
re_path(r'reset-password-confirm/(?P<uidb64>[0-9A-Za-z]+)-(?P<token>.+)/$',
PasswordResetConfirmView.as_view(), name='reset_password_confirm'),
2023-11-30 09:32:21 +00:00
re_path('^logout/', CustomLogoutView.as_view(), name='logout'),
2023-11-22 10:12:05 +00:00
re_path(r'^validate/(?P<validate_slug>.*)/$',
2023-11-30 09:32:21 +00:00
SignupValidatedView.as_view(), name='validate'),
re_path(r'dashboard/?$', DashboardView.as_view(), name='dashboard'),
2023-11-22 10:12:05 +00:00
]