Commit 973a354c authored by Jonathan Talbot's avatar Jonathan Talbot

Merge branch 'forum' into 'main'

added forum to urls and views

See merge request !1
parents c183186a b2941941
...@@ -15,9 +15,10 @@ Including another URLconf ...@@ -15,9 +15,10 @@ Including another URLconf
""" """
from django.contrib import admin from django.contrib import admin
from django.urls import path from django.urls import path
from .views import homepage from .views import homepage, forum
urlpatterns = [ urlpatterns = [
path('admin/', admin.site.urls), path('admin/', admin.site.urls),
path('homepage/', homepage, name='homepage'), path('homepage/', homepage, name='homepage'),
path('forum/', forum, name='forum'),
] ]
...@@ -2,3 +2,6 @@ from django.http import HttpResponse ...@@ -2,3 +2,6 @@ from django.http import HttpResponse
def homepage(request): def homepage(request):
return HttpResponse('Welcome to Widget!') return HttpResponse('Welcome to Widget!')
def forum(request):
return HttpResponse('Welcome to Widget’s Forum!')
\ No newline at end of file
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