Commit 5d651c6c authored by Elaiza Bolislis's avatar Elaiza Bolislis

Created an about page for the music library that displays a brief description...

Created an about page for the music library that displays a brief description about me and my music preferences.
parent 26b446f7
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"
from django.http import HttpResponse
def index(request):
return HttpResponse('''Elaiza Bolislis is a second-year Bachelor of Science in Computer Science student
at Ateneo de Manila University. As someone who loves music, she'll listen to any genre
as long as it pleases her ears and matches her mood for the day.
Hence, Elaiza's music preferences may range from OPM, Pop, K-pop, Anime OSTs, Classical
Music, Alternative Pop, Rock, R&B, and more!''')
......@@ -41,6 +41,7 @@ INSTALLED_APPS = [
'django.contrib.messages',
'django.contrib.staticfiles',
'homepage',
'about',
]
MIDDLEWARE = [
......
......@@ -18,5 +18,6 @@ from django.urls import include, path
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('homepage.urls', namespace="homepage"))
path('homepage/', include('homepage.urls', namespace="homepage")),
path('about/', include('about.urls', namespace="about"))
]
\ 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