Commit 99e68be0 authored by Nics De Vega's avatar Nics De Vega

Added about app, updated project urls and views

parent d63df52b
Pipeline #2646 canceled with stages
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
def index(request):
return HttpResponse(
'Hello! This was created by Nics, an avid Hozier fan! <br><br>'
+ 'If Hozier has a million fans I am one of them. <br>'
+ 'If Hozier has ten fans I am one of them. <br>'
+ 'If Hozier has no fans, that means I am no longer walking on this earth.<br>'
+ 'If the World is against Hozier, I am against the World.<br>'
+ 'I love Hozier till my last breath.'
)
\ No newline at end of file
...@@ -39,7 +39,8 @@ INSTALLED_APPS = [ ...@@ -39,7 +39,8 @@ INSTALLED_APPS = [
'django.contrib.sessions', 'django.contrib.sessions',
'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, include ...@@ -19,4 +19,5 @@ 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('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