Fakultas Ilmu Komputer UI

Commit 941043c5 authored by Rayza Arasj Mahardhika's avatar Rayza Arasj Mahardhika
Browse files

implement about page

parent 95744644
......@@ -7,3 +7,12 @@ def home_page(request):
'<h1>Welcome to Rayza\'s Homepage</h1>' +
'</html>'
)
def about_page(request):
return HttpResponse(
'<html>' +
'<title>Rayza\'s About Page</title>' +
'<h1>Hello, my name is Rayza Arasj Mahardhika</h1>' +
'<p>I\'m 21 years old</p>' +
'</html>'
)
......@@ -15,9 +15,10 @@ Including another URLconf
"""
from django.contrib import admin
from django.urls import path
from lists.views import home_page
from lists.views import home_page, about_page
urlpatterns = [
# path('admin/', admin.site.urls),
path('', home_page, name='home')
path('', home_page, name='home'),
path('about/', about_page, name='about')
]
Supports Markdown
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