Commit 95d700c2 authored by Mario Franco C. Deuna's avatar Mario Franco C. Deuna

added forum app and url routes

parent c66db24d
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class ForumConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'forum'
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 forum
urlpatterns = [
path('', forum, name='forum'),
]
app_name = 'forum'
from django.shortcuts import render
from django.http import HttpResponse
def forum(request):
return HttpResponse("Welcome to Widget's Forum!")
......@@ -44,6 +44,7 @@ INSTALLED_APPS = [
'assignments',
'announcements',
'homepage',
'forum'
]
MIDDLEWARE = [
......
......@@ -20,5 +20,6 @@ urlpatterns = [
path('admin/', admin.site.urls),
path('assignments/', include('assignments.urls')),
path('announcements/', include('announcements.urls')),
path('homepage/', include('homepage.urls'))
path('homepage/', include('homepage.urls')),
path('forum/', include('forum.urls'))
]
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