Update to my part

parent 2854ca3c
......@@ -59,3 +59,4 @@ class Course(models.Model):
course_code = models.CharField(max_length = 10)
course_title = models.CharField(max_length = 100)
section = models.CharField(max_length = 3)
assignment = models.ForeignKey(Assignment, )
from django.http import HttpResponse
from .models import WidgetUser, Forum, Announcement, Assignments,
def homepage(request):
return HttpResponse('Welcome to Widget!')
......@@ -8,13 +9,6 @@ def assignments(request):
def announcements(request):
return HttpResponse('This is the Announcement Board!')
return HttpResponse('<br>')
return HttpResponse('ASSIGNMENTS: ')
return HttpResponse('Assignment Name: ' <name>)
return HttpResponse('Description: ' <description>)
return HttpResponse('Perfect Score: ' <max_points>)
return HttpResponse('Passing Score: ' <passing_score>)
return HttpResponse('Course/Section: ' <course_code> <course_title> <section>)
def forum(request):
return HttpResponse('Welcome to Widget’s Forum!')
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