Commit 65a57193 authored by Joan Denise Nocos's avatar Joan Denise Nocos

feat: added newassignment view and URL to assignments app

parent 9b64c645
...@@ -8,4 +8,6 @@ urlpatterns = [ ...@@ -8,4 +8,6 @@ urlpatterns = [
path('', views.index, name='index'), path('', views.index, name='index'),
# assignments/<assignment_id>/details/ # assignments/<assignment_id>/details/
path('<int:assignment_id>/details/', views.details, name='details'), path('<int:assignment_id>/details/', views.details, name='details'),
# assignments/add/
path('add/', views.newassignment, name='newassignment'),
] ]
\ No newline at end of file
...@@ -27,6 +27,9 @@ def details(request, assignment_id): ...@@ -27,6 +27,9 @@ def details(request, assignment_id):
} }
return render(request, "assignments/details.html", context) return render(request, "assignments/details.html", context)
def newassignment(request):
return HttpResponse("New Assignment Page")
# Code from previous labs: # Code from previous labs:
# #
# def index(request): # def index(request):
......
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