Commit c166b10d authored by John Riz Daniel Ramos's avatar John Riz Daniel Ramos

About Implementation

parent 4cac8f89
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.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse('Hi I\'m Daniel! I\'d say that my music taste isn\'t really refined. I listen to whatever music that "sounds good", which means it can range anywhere from Carly Rae Jepsen to Genshin Impact OSTs.')
...@@ -42,6 +42,7 @@ INSTALLED_APPS = [ ...@@ -42,6 +42,7 @@ INSTALLED_APPS = [
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'homepage', 'homepage',
'about',
] ]
MIDDLEWARE = [ MIDDLEWARE = [
......
...@@ -19,4 +19,5 @@ from django.urls import path ...@@ -19,4 +19,5 @@ from django.urls import path
urlpatterns = [ urlpatterns = [
path('admin/', admin.site.urls), path('admin/', admin.site.urls),
path('homepage/', include('homepage.urls', namespace="homepage")), path('homepage/', include('homepage.urls', namespace="homepage")),
path('about/', include('about.urls', namespace="about")),
] ]
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