urls.py 1.2 KB

1234567891011121314151617181920
  1. from django.urls import path
  2. from .views import (create_multiple_shifts, current_week_shifts, edit_shift, delete_shift, delete_event, edit_event,
  3. create_event, public, create_helper, edit_helper, delete_helper)
  4. from django.contrib.auth import views as auth_views
  5. urlpatterns = [
  6. path('create-multiple-shifts/', create_multiple_shifts, name='create_multiple_shifts'),
  7. path('create-event/', create_event, name='create_event'),
  8. path('create-helper/', create_helper, name='create_helper'),
  9. path('current-week-shifts/', current_week_shifts, name='current_week_shifts'),
  10. path('edit-shift/<int:pk>/', edit_shift, name='edit_shift'),
  11. path('edit-helper/<int:pk>/', edit_helper, name='edit_helper'),
  12. path('delete-shift/<int:pk>/', delete_shift, name='delete_shift'),
  13. path('delete-helper/<int:pk>/', delete_helper, name='delete_helper'),
  14. path('edit-event/<int:pk>/', edit_event, name='edit_event'),
  15. path('delete-event/<int:pk>/', delete_event, name='delete_event'),
  16. path('login/', auth_views.LoginView.as_view(template_name='registration/login.html'), name='login'),
  17. path('logout/', auth_views.LogoutView.as_view(next_page='/public'), name='logout'),
  18. path('public/', public, name='public'),
  19. ]