added assignments path

parent c183186a
...@@ -15,9 +15,10 @@ Including another URLconf ...@@ -15,9 +15,10 @@ Including another URLconf
""" """
from django.contrib import admin from django.contrib import admin
from django.urls import path from django.urls import path
from .views import homepage from .views import homepage, assignments
urlpatterns = [ urlpatterns = [
path('admin/', admin.site.urls), path('admin/', admin.site.urls),
path('homepage/', homepage, name='homepage'), path('', homepage, name='homepage'),
path('assignments/', assignments, name='assignments')
] ]
from django.http import HttpResponse from django.http import HttpResponse
def homepage(request): def homepage(request):
return HttpResponse('Welcome to Widget!') return HttpResponse('Welcome to Widget!')
\ No newline at end of file
def assignments(request):
return HttpResponse('This is the Assignments page!')
\ No newline at end of file
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