Commit d6cb7c22 authored by Katrina Bernice Tan's avatar Katrina Bernice Tan

Edited urls

parent 248f68aa
......@@ -5,7 +5,6 @@ from .views import MainView, AssignmentListView, AssignmentDetailView
urlpatterns = [
path('', MainView.as_view(), name='assignments'),
path('assignments', AssignmentListView.as_view(), name='assignment-list'),
path('/<int:pk>/details', AssignmentDetailView.as_view(), name ='assignment-detail'),
]
app_name = 'Assignments'
\ No newline at end of file
......@@ -15,6 +15,7 @@ Including another URLconf
"""
from django.contrib import admin
from django.urls import path, include
from Assignments.views import AssignmentDetailView
urlpatterns = [
path('admin/', admin.site.urls),
......@@ -22,4 +23,7 @@ urlpatterns = [
path('homepage/', include('Homepage.urls', namespace="Homepage")),
path('announcements/', include('Announcements.urls', namespace="Announcements")),
path('assignments/', include('Assignments.urls', namespace="Assignments")),
path('assignment/<int:pk>/details', AssignmentDetailView.as_view(), name ='assignment-detail'),
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment