Commit 0ba74979 authored by shibadisaster's avatar shibadisaster

Added initial view to views.py

parent 92bbac9a
# forum/urls.py
from django.urls import path
from .views import index
urlpatterns = [
path('', index, name='index'),
]
# This might be needed, depending on your Django version
app_name = "forum"
from django.shortcuts import render
# appname/views.py
from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse('Hello World! This came from the forum view')
......@@ -42,6 +42,7 @@ INSTALLED_APPS = [
'django.contrib.staticfiles',
'dashboard',
'announcementBoard',
'forum',
]
MIDDLEWARE = [
......
......@@ -20,4 +20,5 @@ urlpatterns = [
path('admin/', admin.site.urls),
path('dashboard/', include('dashboard.urls', namespace="dashboard")),
path('announcementBoard/', include('announcementBoard.urls', namespace="announcementBoard")),
path('forum/', include('forum.urls', namespace="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