urls.py 629 B

123456789101112131415
  1. from django.urls import path
  2. from django.contrib.auth import views as auth_views
  3. from . import views
  4. urlpatterns = [
  5. path('', views.index, name='index'),
  6. path('canvas-list/', views.CanvasList.as_view(), name='canvas-list'),
  7. path('canvas/<int:pk>/', views.CanvasDetailView.as_view(), name='canvas-detail'),
  8. path('register/', views.register, name='register'),
  9. path('new_canvas/', views.new_canvas, name='new-canvas'),
  10. path('accounts/login/', auth_views.LoginView.as_view(template_name='registration/login.html')),
  11. path('accounts/logout/', auth_views.LogoutView.as_view(template_name='registration/logout.html')),
  12. ]