jobportal/users/urls.py

22 lines
1.4 KiB
Python
Raw Normal View History

2020-12-28 20:28:52 +01:00
from django.urls import path
from .views import *
2021-01-17 13:23:56 +01:00
from django.contrib.auth import views as authViews
2020-12-28 20:28:52 +01:00
2020-12-31 15:10:53 +01:00
app_name = "users"
2020-12-28 20:28:52 +01:00
urlpatterns = [
2020-12-31 15:39:01 +01:00
path('register/', UserRegisterView.as_view(), name='register'),
path('login/', UserLoginView.as_view(), name='login'),
path('logout/', UserLogoutView.as_view(), name='logout'),
2021-01-17 13:23:56 +01:00
path('password-change/', authViews.PasswordChangeView.as_view(), name='password_change'),
path('password-change-done/', authViews.PasswordChangeDoneView.as_view(), name='password_change_done'),
2021-01-11 21:01:47 +01:00
path('update-profile/<int:pk>/', UserUpdateView.as_view(), name='update_profile'),
2021-01-15 15:19:10 +01:00
path('employee-profile/<int:employee_id>/<int:job_id>/', EmployeeProfileView.as_view(), name='employee_profile'),
path('employer-jobs/', EmployerPostedJobsView.as_view(), name='employer_jobs'),
2021-01-17 11:30:13 +01:00
path('employee-jobs/', EmployeeAppliedJobsView.as_view(), name='employee_jobs'),
2021-01-15 16:03:10 +01:00
path('employee-messages/<int:pk>/', EmployeeMessagesView.as_view(), name='employer_messages'),
2021-01-15 18:10:05 +01:00
path('employee-display-messages/<int:pk>/', EmployeeDisplayMessages.as_view(), name='employer_display_messages'),
2021-01-16 18:35:18 +01:00
path('add-wishlist/<int:pk>/', AddWishListView.as_view(), name='add_wishlist'),
path('remove-from-wishlist/<int:pk>/', RemoveFromWishListView.as_view(), name='remove_from_wishlist'),
2021-01-16 19:22:06 +01:00
path('mywishlist/<int:pk>/', MyWishList.as_view(), name='my_wish_list'),
2020-12-28 20:28:52 +01:00
]