moneropro/users/urls.py

25 lines
1.1 KiB
Python
Raw Normal View History

2022-06-30 13:43:56 +00:00
from django.urls import path
from django.contrib.auth import views as auth_views
from . import views
urlpatterns = [
2022-07-19 17:01:52 +00:00
# Pages URLs
# Everyone can use these,
2022-06-30 13:43:56 +00:00
path('register/', views.register, name="register"),
2022-07-19 17:01:52 +00:00
path('login/', auth_views.LoginView.as_view(template_name='users/login.html'), name='login'),
# URLs pages users might want to visit
# Only registered users can use these
2022-06-30 13:43:56 +00:00
path('contract/', views.contract, name="contract"),
2022-07-19 17:01:52 +00:00
path('logout/', views.logout_view, name="logout"),
2022-06-30 13:43:56 +00:00
2022-07-19 17:01:52 +00:00
# URLs administration pages
# Only admins can use these
path('edit_user/<str:identification>/<str:type>/', views.edit_user, name="edit_user"),
path('delete_user/<str:identification>/', views.delete_user, name="delete_user"),
path('block_user/<str:identification>/', views.block_user, name="block_user"),
path('unblock_user/<str:identification>/', views.unblock_user, name="unblock_user"),
path('delete_subscriber/<str:identification>/', views.delete_subscriber, name="delete_subscriber"),
path('users/', views.users, name="users"),
2022-06-30 13:43:56 +00:00
]