Commit cae5998d authored by Charles Lim's avatar Charles Lim

Created the homepage view and the views Python file

parent e95bb3e2
...@@ -16,6 +16,9 @@ Including another URLconf ...@@ -16,6 +16,9 @@ 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
urlpatterns = [ urlpatterns = [
path('homepage/',homepage, name='homepage'),
path('admin/', admin.site.urls), path('admin/', admin.site.urls),
] ]
from django.http import HttpResponse
# Shows the webpage for the path /homepage
def homepage(request):
return HttpResponse('Welcome to Widget!')
\ 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