Commit 747c2e8f authored by Washington99's avatar Washington99

App creations finished

Apps have been initialized and containes numbers 1 and 2 of the lab specifications. Missing model implementations.
parent 4c00af09
# -*- coding: utf-8 -*-
"""
Created on Mon Feb 13 20:49:08 2023
@author: user
"""
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.shortcuts import render
from django.http import HttpResponse
# Create your views here. # Create your views here.
def index(request):
return HttpResponse(
"""
Hi! I'm Thris. I like to listen to anime songs or Japanese song
in general. I'm also an avid gamer hence I often listen to some of my
favorite games' osts and bgms like in arknights or DmC. I've also
been pulled into the rabbit hole that is vtuber as I've been listening
to Hoshimachi Suisei and Mori Calliope's music.
"""
)
\ No newline at end of file
# -*- coding: utf-8 -*-
"""
Created on Mon Feb 13 20:57:19 2023
@author: user
"""
from django.urls import path
from .views import index
urlpatterns = [
path('', index, name='index'),
]
# This might be needed, depending on your Django version
app_name = "contact"
\ 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.
def index(request):
return HttpResponse(
"""
You can contact me via,
email: thristan.raotraot@obf.ateneo.edu
"""
)
\ No newline at end of file
# -*- coding: utf-8 -*-
"""
Created on Mon Feb 13 20:37:48 2023
@author: user
"""
from django.urls import path
from .views import index
urlpatterns = [
path('', index, name='index'),
]
app_name = "homepage"
\ No newline at end of file
...@@ -41,6 +41,9 @@ INSTALLED_APPS = [ ...@@ -41,6 +41,9 @@ INSTALLED_APPS = [
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'homepage',
'about',
'contact'
] ]
MIDDLEWARE = [ MIDDLEWARE = [
......
...@@ -13,9 +13,13 @@ Including another URLconf ...@@ -13,9 +13,13 @@ Including another URLconf
1. Import the include() function: from django.urls import include, path 1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) 2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
""" """
from django.contrib import admin from django.contrib import admin
from django.urls import path from django.urls import path, include
urlpatterns = [ urlpatterns = [
path('admin/', admin.site.urls), path('admin/', admin.site.urls),
path('homepage/', include('homepage.urls', namespace="homepage")),
path('about/', include('about.urls', namespace="about")),
path('contact/', include('contact.urls', namespace="contact"))
] ]
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