update
This commit is contained in:
33
reports/urls.py
Normal file
33
reports/urls.py
Normal file
@@ -0,0 +1,33 @@
|
||||
"""
|
||||
URL configuration for reports app.
|
||||
"""
|
||||
from django.urls import path
|
||||
from django.views.generic import TemplateView
|
||||
from . import views
|
||||
|
||||
app_name = 'reports'
|
||||
|
||||
urlpatterns = [
|
||||
# Home page
|
||||
path('', views.HomeView.as_view(), name='home'),
|
||||
|
||||
# Public views
|
||||
path('reports/', views.ReportListView.as_view(), name='list'),
|
||||
path('reports/<int:pk>/', views.ReportDetailView.as_view(), name='detail'),
|
||||
path('create/', views.ReportCreateView.as_view(), name='create'),
|
||||
|
||||
# User views
|
||||
path('my-reports/', views.MyReportsView.as_view(), name='my_reports'),
|
||||
path('reports/<int:pk>/edit/', views.ReportEditView.as_view(), name='edit'),
|
||||
path('reports/<int:pk>/delete/', views.ReportDeleteView.as_view(), name='delete'),
|
||||
|
||||
# Search
|
||||
path('search/', views.ReportSearchView.as_view(), name='search'),
|
||||
|
||||
# Contact
|
||||
path('contact/', views.ContactView.as_view(), name='contact'),
|
||||
|
||||
# Takedown request
|
||||
path('reports/<int:report_pk>/takedown/', views.TakedownRequestView.as_view(), name='takedown_request'),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user