Commit b2941941 authored by iceman2434's avatar iceman2434

added forum to urls and views

parent c183186a
...@@ -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