Commit 788a1ea6 authored by Sharmaine Chua's avatar Sharmaine Chua

implemented the apps: homepage, about, contact

parent 450e91a2
from django.urls import path
from .views import index
urlpatterns = [
path('', index, name='index'),
]
app_name = "about"
from django.shortcuts import render
# Create your views here.
from django.http import HttpResponse
def index(request):
return HttpResponse('About Me! \nHi! I am Sharmaine, a sophomore computer science student. I love listening to R&B or K-pop. \nNice to meet you :)')
from django.urls import path
from .views import index
urlpatterns = [
path('', index, name='index'),
]
app_name = "contact"
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse('Contact me here! Phone Number: 09123456789 Email: sharmaine.chua@obf.ateneo.edu')
from django.urls import path
from .views import index
urlpatterns = [
path('', index, name='index'),
]
app_name = "homepage"
\ No newline at end of file
from django.shortcuts import render
# Create your views here.
from django.http import HttpResponse
def index(request):
return HttpResponse("Welcome to Sharmaine's Music Library!")
......@@ -14,8 +14,11 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from django.urls import include, path
urlpatterns = [
path('homepage/', include('homepage.urls', namespace="homepage")),
path('about/', include('about.urls', namespace="about")),
path('contact/', include('contact.urls', namespace="contact")),
path('admin/', admin.site.urls),
]
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