Added the Assignments widget app with a message displayed on its page

parent 7fcf77cc
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class AssignmentsConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'assignments'
from django.db import models
# Create your models here.
from django.test import TestCase
# Create your tests here.
from django.urls import path
from .views import assignments
urlpatterns = [
path('', assignments, name='assignments')
]
app_name = 'assignments'
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def assignments(request):
return HttpResponse("This is the Assignments page!")
......@@ -18,7 +18,7 @@ from django.urls import include, path
urlpatterns = [
path('admin/', admin.site.urls),
#path('', include('homepage.urls', namespace="homepage")),
path('forum/',include('forum.urls',namespace="forum"))
path('homepage/', include('homepage.urls', namespace="homepage"))
path('forum/',include('forum.urls',namespace="forum")),
path('homepage/', include('homepage.urls', namespace="homepage")),
path('assignments/', include('assignments.urls', namespace="assignments")),
]
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