Commit 985efa98 authored by Chino Tesoro's avatar Chino Tesoro

added forum app

parent 6ff36ab7
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.index, name='index'),
]
app_name = "forum"
\ No newline at end of file
from django.http import HttpResponse
def index (request):
return HttpResponse ("Welcome to Widget's Forum!")
...@@ -43,6 +43,9 @@ INSTALLED_APPS = [ ...@@ -43,6 +43,9 @@ INSTALLED_APPS = [
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'homepage', 'homepage',
'assignments',
'forum',
'announcement_board',
] ]
MIDDLEWARE = [ MIDDLEWARE = [
......
...@@ -19,6 +19,7 @@ from django.urls import include, path ...@@ -19,6 +19,7 @@ from django.urls import include, path
urlpatterns = [ urlpatterns = [
path('homepage/', include('homepage.urls', namespace="homepage")), path('homepage/', include('homepage.urls', namespace="homepage")),
path('assignments/', include('assignments.urls')), path('assignments/', include('assignments.urls')),
path('forum/', include('forum.urls')),
path('announcement_board/', include('announcement_board.urls')), path('announcement_board/', include('announcement_board.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