Commit 434f1e29 authored by Brendan Fausto's avatar Brendan Fausto

Homepage finished & integrated to the project

parent 878474b9
......@@ -43,6 +43,7 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'homepage'
]
MIDDLEWARE = [
......
"""brendanfausto_music URL Configuration
"""brendanfausto_music URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/4.1/topics/http/urls/
......@@ -18,4 +18,5 @@ from django.urls import path
urlpatterns = [
path('admin/', admin.site.urls),
path('homepage/', include('homepage.urls', namespace="homepage"))
]
# homepage/urls.py
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
from django.http import HttpResponse
# Create your views here.
# appname/views.py
def index(request):
return HttpResponse('Welcome to Brendan\'s music library!')
\ 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