Commit 6b51bf36 authored by Joei Yucoco's avatar Joei Yucoco

Created functions in views.py and urls.py that maps them to each other

parent 87a71373
No preview for this file type
from django.shortcuts import render
from django.urls import path
from .views import index
urlpatterns = [
path('', index, name='index'),
]
app_name = "Homepage"
# Create your views here.
from django.shortcuts import render
from django.http import HttpResponse
def index(request):
return HttpResponse('Welcome to Joei’s Music Library!')
# Create your views here.
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