Commit 535cddb4 authored by Ray Rafael Abenido's avatar Ray Rafael Abenido

Added a forum app to project along with its URL wiring. Tests were also formed...

Added a forum app to project along with its URL wiring. Tests were also formed to check if URL wiring to other apps is working. All URL wiring to their respective apps is functioning properly as of this commit.
parent 7575e3fd
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
/John Raymon Yu - /John Raymon Yu -
/Jose Emmanuel B. Laurel - Homepage /Jose Emmanuel B. Laurel - Homepage
/Joshua Graham Son - Announcements /Joshua Graham Son - Announcements
/Ray Rafael Abenido - /Ray Rafael Abenido - Forum
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 . import views
urlpatterns = [
path('', views.show_forum_page, name="Show Forum Page")
]
\ No newline at end of file
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def show_forum_page(request):
return HttpResponse("Welcome to Widget's Forum!")
\ No newline at end of file
...@@ -19,5 +19,6 @@ from django.urls import include, path ...@@ -19,5 +19,6 @@ from django.urls import include, path
urlpatterns = [ urlpatterns = [
path('announcements/', include('announcements.urls')), path('announcements/', include('announcements.urls')),
path('homepage/',include("homepage.urls")), path('homepage/',include("homepage.urls")),
path('forum/', include('forum.urls')),
path('admin/', admin.site.urls), path('admin/', admin.site.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