Commit b2941941 authored by iceman2434's avatar iceman2434

added forum to urls and views

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