website/conservancy/usethesource/urls.py

15 lines
742 B
Python

from django.urls import path
from . import views
app_name = 'usethesource'
urlpatterns = [
path('', views.landing_page, name='landing'),
path('candidate/<slug:slug>/', views.candidate_page, name='candidate'),
path('download/<slug:slug>/<download_type>/', views.download_page, name='download'),
path('add-comment/<slug:slug>/', views.create_comment, name='add_comment'),
path('edit-comment/<int:comment_id>/', views.edit_comment, name='edit_comment'),
path('comment/<int:comment_id>/<show_add>/', views.view_comment, name='view_comment'),
path('delete-comment/<int:comment_id>/<show_add>/', views.delete_comment, name='delete_comment'),
path('add-button/<slug:slug>/', views.add_button, name='add_button'),
]