Commit 1583af83 authored by Alliyah Marcelo's avatar Alliyah Marcelo

Added homepage, about, and contact for music library application.

parent 50b00136
......@@ -3,4 +3,4 @@ from django.apps import AppConfig
class HomepageConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'Homepage'
name = 'homepage'
from django.urls import path
from .views import index
urlpatterns = [
path('', index, name='index'),
]
app_name = "Homepage"
\ No newline at end of file
app_name = "homepage"
\ No newline at end of file
......@@ -2,6 +2,5 @@ from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse('Welcome to Alliyah’s Music Library!')
\ No newline at end of file
return HttpResponse("Welcome to Alliyah's Music Library!")
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class AboutConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'about'
from django.db import models
# Create your models here.
from django.test import TestCase
# Create your tests here.
from django.urls import path
from .views import index
urlpatterns = [
path('', index, name='index'),
]
app_name = "about"
\ No newline at end of file
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse("Hi! I'm Alliyah. I like listening to a variety of music genres, but I usually listen to pop, indie, and rock the most.")
\ No newline at end of file
......@@ -41,6 +41,8 @@ INSTALLED_APPS = [
'django.contrib.messages',
'django.contrib.staticfiles',
'homepage',
'about',
'contact',
]
MIDDLEWARE = [
......
......@@ -18,5 +18,7 @@ from django.urls import include, path
urlpatterns = [
path('homepage/', include('homepage.urls', namespace="homepage")),
path('admin/', admin.site.urls),
path('about/', include('about.urls', namespace="about")),
path('contact/', include('contact.urls', namespace="contact")),
path('admin/', admin.site.urls),
]
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class ContactConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'contact'
from django.db import models
# Create your models here.
from django.test import TestCase
# Create your tests here.
from django.urls import path
from .views import index
urlpatterns = [
path('', index, name='index'),
]
app_name = "contact"
\ No newline at end of file
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse("You can contact me at: alliyah.marcelo@obf.ateneo.edu.")
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