mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 14:13:21 +00:00
pedagogy: more comprehensible urls for development
This commit is contained in:
parent
57f2a5c260
commit
b49f204e20
@ -27,6 +27,7 @@ from django.conf.urls import url
|
|||||||
from pedagogy.views import *
|
from pedagogy.views import *
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
|
# Urls displaying the actual application for visitors
|
||||||
url(r"^$", UVListView.as_view(), name="guide"),
|
url(r"^$", UVListView.as_view(), name="guide"),
|
||||||
url(r"^uv/(?P<uv_id>[0-9]+)$", UVDetailFormView.as_view(), name="uv_detail"),
|
url(r"^uv/(?P<uv_id>[0-9]+)$", UVDetailFormView.as_view(), name="uv_detail"),
|
||||||
url(
|
url(
|
||||||
@ -39,8 +40,10 @@ urlpatterns = [
|
|||||||
UVCommentReportCreateView.as_view(),
|
UVCommentReportCreateView.as_view(),
|
||||||
name="comment_report",
|
name="comment_report",
|
||||||
),
|
),
|
||||||
|
# Moderation
|
||||||
url(r"^reported$", UVCommentReportListView.as_view(), name="comment_report_list"),
|
url(r"^reported$", UVCommentReportListView.as_view(), name="comment_report_list"),
|
||||||
url(r"^moderation$", UVModerationFormView.as_view(), name="moderation"),
|
url(r"^moderation$", UVModerationFormView.as_view(), name="moderation"),
|
||||||
|
# Administration : Create Update Delete Edit
|
||||||
url(r"^uv/create$", UVCreateView.as_view(), name="uv_create"),
|
url(r"^uv/create$", UVCreateView.as_view(), name="uv_create"),
|
||||||
url(r"^uv/(?P<uv_id>[0-9]+)/delete$", UVDeleteView.as_view(), name="uv_delete"),
|
url(r"^uv/(?P<uv_id>[0-9]+)/delete$", UVDeleteView.as_view(), name="uv_delete"),
|
||||||
url(
|
url(
|
||||||
|
Loading…
Reference in New Issue
Block a user