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

Homepage finished & integrated to the project

parent 878474b9
...@@ -43,6 +43,7 @@ INSTALLED_APPS = [ ...@@ -43,6 +43,7 @@ INSTALLED_APPS = [
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'homepage'
] ]
MIDDLEWARE = [ MIDDLEWARE = [
......
"""brendanfausto_music URL Configuration """brendanfausto_music URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see: The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/4.1/topics/http/urls/ https://docs.djangoproject.com/en/4.1/topics/http/urls/
...@@ -17,5 +17,6 @@ from django.contrib import admin ...@@ -17,5 +17,6 @@ from django.contrib import admin
from django.urls import path from django.urls import path
urlpatterns = [ urlpatterns = [
path('admin/', admin.site.urls), 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.shortcuts import render
from django.http import HttpResponse
# Create your views here. # 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